only write MIB to PCAP if cell search was successful

This commit is contained in:
Andre Puschmann 2019-09-18 15:22:45 +02:00
parent 7ad2b217df
commit 99a6d49e78
1 changed files with 3 additions and 1 deletions

View File

@ -391,7 +391,9 @@ void sync::run_thread()
* The function search_p.run() will not return until the search finishes
*/
cell_search_ret = search_p.run(&cell, mib);
stack->bch_decoded_ok(mib.data(), mib.size() / 8);
if (cell_search_ret == search::CELL_FOUND) {
stack->bch_decoded_ok(mib.data(), mib.size() / 8);
}
phy_state.state_exit();
break;
case sync_state::SFN_SYNC: