[PATCH 3/4] SIM/USIM: Add function to get the MNC length from the SIM/USIM

Jouni Malinen j
Sun Jan 22 10:50:58 PST 2012


On Sun, Jan 22, 2012 at 06:48:16PM +0100, Marcel Holtmann wrote:
> this is not going to work. You can have operators that can mix and match
> 2 and 3 digit MNC as they please (within the same network).

Great. Well, I can use the 3-digit MNC as a default and add exceptions
as needed, I'd guess. The only SIM card that I found without the MNC
length field was for MCC=244 and all networks in Finland use 2-digit MNC
as far as I can tell..

> The field is
> most likely present, but the SIM filesystem access might be broken.

I don't think that that would have been the case in my tests. I used the
same reader for all the SIM cards and the AF_AD contents from the
Elisa/Kolumbus card returned three octets of data while the other cards
returned four octets.

-- 
Jouni Malinen                                            PGP id EFC895FA



More information about the Hostap mailing list