[PATCH] Print decimal MCC and MNC unless format is incorrect.

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/.

jolly andreas at eversberg.eu
Tue Oct 30 09:34:54 UTC 2012


☎ wrote:
> Hello.
>
> Right now MCC and MNC value in ./mobile app are printed as hex but without 0x - this
> is confusing and inconsistent.
>
> Attached patch fix that although I'm still puzzled why value printed by "show
> subscriber 1" looks like hex representation - see example below (with patch applied).
>
> Note that 0x385 == 901 and 0x046 == 70
>
> I suspect misuse of gsm48_decode_lai()\gsm48_encode_lai() but unable to pinpoint
> location yet.
>   
hi max,

you are right, the problem is not the print function, it is the decoding
function. it has changed this summer at libosmocore. (commit a9250b9e) i
just commited a fix for that to master branch. we must use hexadecimal
decoding, because a network code of 70 is not equal a network code of 070.

best regards,

andreas





More information about the baseband-devel mailing list