]> oss.titaniummirror.com Git - tinyos-2.x.git/blobdiff - tos/lib/mac/tkn154/BeaconRequestRxP.nc
Fixed a typo (macPanID was read incorrectly)
[tinyos-2.x.git] / tos / lib / mac / tkn154 / BeaconRequestRxP.nc
index d9ae1e90af46def1666541354010ff3292870166..dec823a145ae9ce4f6b61529957e9fd9dcee56ab 100644 (file)
@@ -94,7 +94,7 @@ implementation
     m_beaconFrame.header->mhr[MHR_INDEX_FC1] = FC1_FRAMETYPE_BEACON;
     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;
+    *((nxle_uint16_t*) &m_beaconFrame.header->mhr[offset]) = call MLME_GET.macPANId();
     offset += sizeof(ieee154_macPANId_t);
     if (isShortAddr) {
       *((nxle_uint16_t*) &m_beaconFrame.header->mhr[offset]) = shortAddress;