From 00a6a9c6625a8eef5cc8a1d49345f2bd01ccb091 Mon Sep 17 00:00:00 2001 From: Bastian Bloessl Date: Tue, 14 Apr 2015 13:18:00 +0200 Subject: [PATCH] mac: don't change the phy pdu --- lib/ofdm_mac.cc | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/ofdm_mac.cc b/lib/ofdm_mac.cc index c763fc6..527de37 100644 --- a/lib/ofdm_mac.cc +++ b/lib/ofdm_mac.cc @@ -74,9 +74,7 @@ void phy_in (pmt::pmt_t msg) { const char *mpdu = reinterpret_cast(pmt::blob_data(blob)); pmt::pmt_t msdu = pmt::make_blob(mpdu + 24, pmt::blob_length(blob) - 24 - 4); - // update msg - pmt::set_cdr(msg, msdu); - message_port_pub(pmt::mp("app out"), msg); + message_port_pub(pmt::mp("app out"), pmt::cons(pmt::car(msg), msdu)); } void app_in (pmt::pmt_t msg) {