]> oss.titaniummirror.com Git - tinyos-2.x.git/blobdiff - tos/chips/cc2420/control/CC2420ControlP.nc
* Removed hardware address recognition to monitor its affect on unit tests, low power...
[tinyos-2.x.git] / tos / chips / cc2420 / control / CC2420ControlP.nc
index 4ea1382e44e753d18bb8d1bdd49e4ff780c23742..7d44f731d551661581dc0f344e54f346185cecd6 100644 (file)
@@ -437,11 +437,14 @@ implementation {
 
   /**
    * Write the MDMCTRL0 register
+   * Disabling hardware address recognition improves acknowledgment success
+   * rate and low power communications reliability by causing the local node
+   * to do work while the real destination node of the packet is acknowledging.
    */
   void writeMdmctrl0() {
     atomic {
       call MDMCTRL0.write( ( 1 << CC2420_MDMCTRL0_RESERVED_FRAME_MODE ) |
-          ( addressRecognition << CC2420_MDMCTRL0_ADR_DECODE ) |
+          ( 0 << CC2420_MDMCTRL0_ADR_DECODE ) |
           ( 2 << CC2420_MDMCTRL0_CCA_HYST ) |
           ( 3 << CC2420_MDMCTRL0_CCA_MOD ) |
           ( 1 << CC2420_MDMCTRL0_AUTOCRC ) |