I learned that paring is consist of 3 phase (Exchange of Pairing Information, Authentication, Key distrbution) and TK, STK are generated at the phase of Authentication and reamainder of keys are generated at the phase of Key distrbution when connection is encrypted by using the STK.
So deos enabling SEC_PARAM_MITM(Man In The Middle protection) means that SoftDevice generate TK, STK?
So deos enabling SEC_PARAM_LESC means that SoftDevice distribute LTK, IRK, CSRK?
But it is possible to piar when SEC_PARAM_MITM=0, SEC_PARAM_LESC=1, although TK, STK is not generated so connection is not encrypted by using the STK.
Am I misunderstanding?