According to Bridging the GAP: Bluetooth LE Security Part 3,
Each time you clear your peripheral’s bonds, and open it up to a new pairing, you should re-generate your IRK. Why? iOS will not pair to your peripheral if there is already a record for your peripheral under “My Devices” in iOS Bluetooth settings. Generating a new IRK is sort of like labeling your peripheral as a brand new device with a new BD_ADDR. This will allow users to pair to your device a 2nd time without needing to go into Bluetooth settings and manually “forget” your peripheral.
This does have the side effect of having your peripheral listed multiple times under My Devices, once for each pairing and bond.
How would I go about regenerating the IRK using the NXP SDK for the QN9020?
Can someone provide me with a example of this?