Interworking: Relax 3GPP info PLMN matching for MNC
authorJouni Malinen <jouni@qca.qualcomm.com>
Mon, 8 Jul 2013 13:53:05 +0000 (16:53 +0300)
committerJouni Malinen <j@w1.fi>
Mon, 8 Jul 2013 13:53:05 +0000 (16:53 +0300)
commit0b9d3b22c8b72f1008bcb9c94571cb4c8bbfb1c7
treed70adf5d668fc6051a99564604d86976b67e75d9
parentc7a67a77195464d667d6f482777a75325b6f3642
Interworking: Relax 3GPP info PLMN matching for MNC

3GPP TS 24.232 Annex A.3 allows network operator to advertise only two
digits of MNC even if MNC has three digits. Allow such matches in
network selection. In addition, allow three digit matches of MNC even if
MNC length was assumed to be two to avoid missing networks if MNC length
cannot be determined reliably. Remove the '-' separator from simulated
SIM/USIM cases to allow the new matching rules to work.

Fix the PLMN List information element parsing loop to use the length of
the PLMN List instead of the length of the full 3GPP Cellular Info to
avoid unexpected matches should a new element ever be added by 3GPP.

Finally, add more debug prints from PLMN matching to make the logs
easier to understand.

Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>
wpa_supplicant/interworking.c