commit | bdccc1b1444a8692697bd8a293cc89c90ef2d832 | [log] [tgz] |
---|---|---|
author | Neels Hofmeyr <nhofmeyr@sysmocom.de> | Tue Mar 15 13:28:10 2016 +0100 |
committer | Holger Hans Peter Freyther <holger@moiji-mobile.com> | Tue Mar 15 14:30:41 2016 +0100 |
tree | 3078de6f8ef1c7941ef1853b7b4447ce6969f8ce | |
parent | da7bf4d55a896034320aa4466b9644083093acd1 [diff] |
gsm48: factor out MCC+MNC BCD parsing for re-use in UMTS For 3G, I need a BCD composer/parser similar to gsm48_generate_lai()/ gsm48_decode_lai(). Those functions also handle a trivial extra member (lac) which I don't need in this way for 3G. So create new functions to take on the MCC+MNC BCD handling and call those from gsm48_generate_lai() and gsm48_decode_lai(). In this way, the 3G code in openbsc can use only the BCD functionality without code duplication.