Possible bug in "gsm48_decode_lai" code

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/baseband-devel@lists.osmocom.org/.

Andreas Eversberg andreas at eversberg.eu
Tue Dec 4 17:48:21 UTC 2012


Sylvain Munaut wrote:
> Now ... this look a little bit like a SNAFU.
hi sylvain,

i don't like having two functions with different results too. the 
problem is that osmocom-bb uses hex lai everywhere, and openbsc uses 
decimal lai. changing osmocom-bb would result in loosing support for 
3-digits-MNC. (02 is not 002 and neither 02x) harald mentioned to maybe 
change lai at openbsc in the future, so 3-digits-MNC are correctly 
supported there too. then i would suggest to use hex MCC also. also it 
would make sense to move the "input" and "print" functions for hex type 
MCC/MNC to libosmocore too.

regards,

andreas





More information about the baseband-devel mailing list