My DECT nr+ PT supports connecting to either of a set of networks, which of course have different integrity and cipher keys.
While scanning for cluster beacons, I can receive the 24MSB of the network ID and then make a decision on the key to use, but the key is set in control_configure already before scanning. I can only run control_configure again successfully if I deactivate control_functional_mode, and when I activate it again, the information that the MAC layer stores internally during mac_network_scan is lost, mac_association therefore fails, and I have to mac_network_scan with the new keys, even though no new information is expected.
Is there a shorter way to update the keys to allow association without another round of waiting for the beacon, or is that the penalty that has to be taken for not guessing the network to connect to correctly?