linux – bluetooth link encrytion under bluetooth 4 .2 and 5.x

This is a follow up question regarding the answer located here: “https://security.stackexchange.com/questions/225504/bluetooth-5-is-a-pass-key-enough?newreg=e242a76b3e404c1f87c2d6e99850cd9c”, namely, in Linux does the encryption of the bluetooth link using bluetooth 4.2 or 5.x depend on the version of the kernel – and whether or not the kernel includes the cryptographic module?