Corrected of MCC field interpretation

This commit is contained in:
Piotr Krysik 2015-11-22 08:07:02 +01:00
parent 25cb6cdf30
commit 34935e9b05
1 changed files with 1 additions and 1 deletions

View File

@ -90,7 +90,7 @@ namespace gr {
info.id = be16toh(header->arfcn); //take arfcn
info.pwr_db = header->signal_dbm;
info.lac = (msg_elements[6]<<8)+msg_elements[7]; //take lac
info.mcc = ((msg_elements[3] & 0xF) * 100) + (((msg_elements[3] & 0xF0) >> 4) * 10) + ((msg_elements[3] & 0xF)); // take mcc
info.mcc = ((msg_elements[3] & 0xF) * 100) + (((msg_elements[3] & 0xF0) >> 4) * 10) + ((msg_elements[4] & 0xF)); // take mcc
info.mnc = (msg_elements[5] & 0xF) * 10 + (msg_elements[5]>>4); //take mnc
boost::mutex::scoped_lock lock(extract_mutex);