]> oss.titaniummirror.com Git - tinyos-2.x.git/commitdiff
Software acknowledge broadcast packets like hardware does.
authorrincon <rincon>
Thu, 6 Sep 2007 19:20:18 +0000 (19:20 +0000)
committerrincon <rincon>
Thu, 6 Sep 2007 19:20:18 +0000 (19:20 +0000)
tos/chips/cc2420/receive/CC2420ReceiveP.nc

index 27eda27951e010b0ebc20390c247d84b070a222e..b82e893513b89fd4004dfa6a4576308f1637a66e 100644 (file)
@@ -261,7 +261,8 @@ implementation {
        */
       if(call CC2420Config.isAutoAckEnabled() && !call CC2420Config.isHwAutoAckDefault()) {
         if (((( header->fcf >> IEEE154_FCF_ACK_REQ ) & 0x01) == 1)
-            && (header->dest == call CC2420Config.getShortAddr())
+            && ((header->dest == call CC2420Config.getShortAddr())
+                || (header->dest == AM_BROADCAST_ADDR))
             && ((( header->fcf >> IEEE154_FCF_FRAME_TYPE ) & 7) == IEEE154_TYPE_DATA)) {
           // CSn flippage cuts off our FIFO; SACK and begin reading again
           call CSN.set();