[Tinyos-2-commits] CVS: tinyos-2.x/tos/lib/mac/tkn154 BeaconRequestRxP.nc, 1.1, 1.2
Jan-Hinrich Hauer
janhauer at users.sourceforge.net
Mon May 18 10:16:27 PDT 2009
Update of /cvsroot/tinyos/tinyos-2.x/tos/lib/mac/tkn154
In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv26845/tos/lib/mac/tkn154
Modified Files:
BeaconRequestRxP.nc
Log Message:
Fixed a typo (macPanID was read incorrectly)
Index: BeaconRequestRxP.nc
===================================================================
RCS file: /cvsroot/tinyos/tinyos-2.x/tos/lib/mac/tkn154/BeaconRequestRxP.nc,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** BeaconRequestRxP.nc 18 May 2009 12:54:10 -0000 1.1
--- BeaconRequestRxP.nc 18 May 2009 17:16:25 -0000 1.2
***************
*** 95,99 ****
m_beaconFrame.header->mhr[MHR_INDEX_FC2] = isShortAddr ? FC2_SRC_MODE_SHORT : FC2_SRC_MODE_EXTENDED;
offset = MHR_INDEX_ADDRESS;
! *((nxle_uint16_t*) &m_beaconFrame.header->mhr[offset]) = PAN_ID;
offset += sizeof(ieee154_macPANId_t);
if (isShortAddr) {
--- 95,99 ----
m_beaconFrame.header->mhr[MHR_INDEX_FC2] = isShortAddr ? FC2_SRC_MODE_SHORT : FC2_SRC_MODE_EXTENDED;
offset = MHR_INDEX_ADDRESS;
! *((nxle_uint16_t*) &m_beaconFrame.header->mhr[offset]) = call MLME_GET.macPANId();
offset += sizeof(ieee154_macPANId_t);
if (isShortAddr) {
More information about the Tinyos-2-commits
mailing list