]> oss.titaniummirror.com Git - tinyos-2.x.git/blobdiff - apps/tests/tkn154/TestStartSync/device/TestDeviceC.nc
- re-designed the radio driver interfaces, restructured/improved the CC2420 radio...
[tinyos-2.x.git] / apps / tests / tkn154 / TestStartSync / device / TestDeviceC.nc
index 93713b8a1a602dbd382b3fba743209e27e175480..c11193a2871571ee223bc36dda18127045ade218 100644 (file)
@@ -58,7 +58,7 @@ module TestDeviceC
   void startApp();
 
   event void Boot.booted() {
-    call MLME_RESET.request(TRUE, BEACON_ENABLED_PAN);
+    call MLME_RESET.request(TRUE);
   }
   
   event void MLME_RESET.confirm(ieee154_status_t status)
@@ -69,13 +69,14 @@ module TestDeviceC
 
   void startApp()
   {
-    ieee154_phyChannelsSupported_t supportedChannels;
+    ieee154_phyChannelsSupported_t scanChannels;
     uint8_t scanDuration = BEACON_ORDER;
 
     // set the short address to whatever was passed 
     // as a parameter to make system ("make install,X")
     call MLME_SET.macShortAddress(TOS_NODE_ID); 
-    supportedChannels = call MLME_GET.phyChannelsSupported();
+    scanChannels = call MLME_GET.phyChannelsSupported();
+    //scanChannels = (uint32_t) 1 << RADIO_CHANNEL;
 
     // setting the macAutoRequest attribute to TRUE means
     // that during the scan beacons will not be signalled
@@ -83,7 +84,7 @@ module TestDeviceC
     call MLME_SET.macAutoRequest(TRUE);
     call MLME_SCAN.request  (
         PASSIVE_SCAN,           // ScanType
-        supportedChannels,      // ScanChannels
+        scanChannels,           // ScanChannels
         scanDuration,           // ScanDuration
         0x00,                   // ChannelPage
         0,                      // EnergyDetectListNumEntries