mac: don't change the phy pdu
This commit is contained in:
+1
-3
@@ -74,9 +74,7 @@ void phy_in (pmt::pmt_t msg) {
|
|||||||
const char *mpdu = reinterpret_cast<const char *>(pmt::blob_data(blob));
|
const char *mpdu = reinterpret_cast<const char *>(pmt::blob_data(blob));
|
||||||
pmt::pmt_t msdu = pmt::make_blob(mpdu + 24, pmt::blob_length(blob) - 24 - 4);
|
pmt::pmt_t msdu = pmt::make_blob(mpdu + 24, pmt::blob_length(blob) - 24 - 4);
|
||||||
|
|
||||||
// update msg
|
message_port_pub(pmt::mp("app out"), pmt::cons(pmt::car(msg), msdu));
|
||||||
pmt::set_cdr(msg, msdu);
|
|
||||||
message_port_pub(pmt::mp("app out"), msg);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void app_in (pmt::pmt_t msg) {
|
void app_in (pmt::pmt_t msg) {
|
||||||
|
|||||||
Reference in New Issue
Block a user