SWRU271I October 2010 – January 2020 CC2540 , CC2540T , CC2541 , CC2541-Q1 , CC2640R2F
Just Works pairing encrypts without MITM authentication and is vulnerable to MITM attacks. For Just Works pairing without bonding, configure the GAPBondMgr as follows:
For an overview of this process for peripheral device, see Figure 5-5.
The GAPBondMgr pairing states are passed to the application callback when required during the pairing process. GAPBOND_PAIRING_STATE_STARTED is passed when sent or received by the stack. GAPBOND_PAIRING_STATE_COMPLETE is sent when the pairing completes. A Just Works pairing requires the pair-state callback. For more information, see Section F.4.