X-Git-Url: https://oss.titaniummirror.com/gitweb/?a=blobdiff_plain;f=tos%2Flib%2Fmac%2Ftkn154%2FRadioControlImplP.nc;h=afafb8ccfbdde5103492ee244663be4ce808d682;hb=2d7854932f7589657e485cfca01a0a6863587967;hp=57dc48ac0b899c70cd718f4b1e0f79ae615d7f18;hpb=efdd675247b5f699e8acfc2ccac1d71d31fcd1be;p=tinyos-2.x.git diff --git a/tos/lib/mac/tkn154/RadioControlImplP.nc b/tos/lib/mac/tkn154/RadioControlImplP.nc index 57dc48ac..afafb8cc 100644 --- a/tos/lib/mac/tkn154/RadioControlImplP.nc +++ b/tos/lib/mac/tkn154/RadioControlImplP.nc @@ -78,9 +78,14 @@ implementation event message_t* PhyRx.received(message_t *msg, const ieee154_timestamp_t *timestamp) { uint8_t *mhr = MHR(msg); + + dbg("RadioControlImplP", "Received frame, DSN: %lu, type: 0x%lu\n", + (uint32_t) mhr[MHR_INDEX_SEQNO], (uint32_t) mhr[MHR_INDEX_FC1] & FC1_FRAMETYPE_MASK); + if (((mhr[1] & FC2_FRAME_VERSION_MASK) > FC2_FRAME_VERSION_1) && (!call RadioPromiscuousMode.get())) return msg; + #ifndef IEEE154_SECURITY_ENABLED if ((mhr[0] & FC1_SECURITY_ENABLED) && (!call RadioPromiscuousMode.get()))