]> oss.titaniummirror.com Git - tinyos-2.x.git/commitdiff
incoming beacon payload size was caculated wrongly. fixed.
authorjanhauer <janhauer>
Fri, 22 May 2009 08:56:32 +0000 (08:56 +0000)
committerjanhauer <janhauer>
Fri, 22 May 2009 08:56:32 +0000 (08:56 +0000)
tos/lib/mac/tkn154/PibP.nc
tos/lib/mac/tkn154/ScanP.nc

index cb6dc92fda599300b1af7ef0951235f2e871ae66..2f55e72a72f4da1b789b7ce61db79a7a9c7235bd 100644 (file)
@@ -939,7 +939,7 @@ implementation
     uint8_t *mhr = MHR(frame);
     uint8_t len = ((ieee154_header_t*) frame->header)->length & FRAMECTL_LENGTH_MASK;
     if ((mhr[MHR_INDEX_FC1] & FC1_FRAMETYPE_MASK) == FC1_FRAMETYPE_BEACON) {
-      uint8_t *payload = call Frame.getPayload(frame);
+      uint8_t *payload = call BeaconFrame.getBeaconPayload(frame);
       len = len - (payload - (uint8_t *) frame->data);
     } 
     return len;
index 72a04b6c9668065cc581a64f03215046322fc19d..4fb18acacd655db5a3aa6b6bd83296e575394a4c 100644 (file)
@@ -359,10 +359,9 @@ implementation
 
       // PASSIVE_SCAN / ACTIVE_SCAN:
       // A beacon frame containing a non-empty payload is always signalled
-      // to the next higher layer (regardless of the value of macAutoRequest),
-      // but it is unclear whether it should in addition be added to the 
-      // PAN Descriptor list when macAutoRequest is set to TRUE. This is,
-      // anyway, what the implementation currently does ... 
+      // to the next higher layer (regardless of the value of macAutoRequest);
+      // when macAutoRequest is set to TRUE, then the beacon is always 
+      // stored in the PAN Descriptor list (see 7.1.11.2.1 - Table 68)
 
       if (!call MLME_GET.macAutoRequest())
         return signal MLME_BEACON_NOTIFY.indication (frame);