aboutsummaryrefslogtreecommitdiffstats
path: root/lib/receiver/receiver_impl.cc
diff options
context:
space:
mode:
authorptrkrysik <ptrkrysik@gmail.com>2014-11-12 22:50:18 +0100
committerptrkrysik <ptrkrysik@gmail.com>2014-11-12 22:50:18 +0100
commit6f6d46db013b3d68297c933374868b74bc7e7eba (patch)
tree9d09d73e02be127ca7458c2c954daafb0fa3231d /lib/receiver/receiver_impl.cc
parente518bbfedde679650e538edcab9bb46997985e52 (diff)
Corrected frame number
Diffstat (limited to 'lib/receiver/receiver_impl.cc')
-rw-r--r--lib/receiver/receiver_impl.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/receiver/receiver_impl.cc b/lib/receiver/receiver_impl.cc
index bc1c2e4..66c2491 100644
--- a/lib/receiver/receiver_impl.cc
+++ b/lib/receiver/receiver_impl.cc
@@ -823,10 +823,11 @@ void receiver_impl::send_burst(burst_counter burst_nr, const unsigned char * bur
tap_header->hdr_len = sizeof(gsmtap_hdr)/4;
tap_header->type = GSMTAP_TYPE_UM_BURST;
tap_header->timeslot = static_cast<uint8_t>(d_burst_nr.get_timeslot_nr());
- tap_header->frame_number = d_burst_nr.get_frame_nr();
+ tap_header->frame_number = htobe32(d_burst_nr.get_frame_nr());
tap_header->sub_type = static_cast<uint8_t>(b_type);
tap_header->arfcn = d_cell_allocation[input_nr];
tap_header->signal_dbm = static_cast<int8_t>(d_signal_dbm);
+ tap_header->snr_db = 0;
pmt::pmt_t header_blob=pmt::make_blob(tap_header.get(),sizeof(gsmtap_hdr));
pmt::pmt_t burst_binary_blob=pmt::make_blob(burst_binary,BURST_SIZE);
pmt::pmt_t msg = pmt::cons(header_blob, burst_binary_blob);