mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2024-11-28 18:28:23 -05:00
Fix MNC length for Swisscom SIM cards
Swisscom SIM cards do not include MNC length within EF_AD, and end up using incorrect MNC length based on the 3-digit default. Hardcode MNC length of 2 for Switzerland, in the same manner as it was done for Finland. Signed-hostap: Andrejs Cainikovs <andrejs.cainikovs@sonymobile.com>
This commit is contained in:
parent
7e3f110b08
commit
fcf20528a0
@ -938,6 +938,8 @@ static int mnc_len_from_imsi(const char *imsi)
|
||||
mcc_str[3] = '\0';
|
||||
mcc = atoi(mcc_str);
|
||||
|
||||
if (mcc == 228)
|
||||
return 2; /* Networks in Switzerland use 2-digit MNC */
|
||||
if (mcc == 244)
|
||||
return 2; /* Networks in Finland use 2-digit MNC */
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user