Don't need the ESSID or IWCONFIG in BootManager.
authorDaniel Hokka Zakrisson <dhokka@cs.princeton.edu>
Wed, 5 Dec 2007 19:37:37 +0000 (19:37 +0000)
committerDaniel Hokka Zakrisson <dhokka@cs.princeton.edu>
Wed, 5 Dec 2007 19:37:37 +0000 (19:37 +0000)
Write the MODE as well.

source/steps/ReadNodeConfiguration.py
source/steps/WriteNetworkConfig.py

index 59b5250..def8bae 100644 (file)
@@ -448,13 +448,6 @@ def __parse_configuration_file( vars, log, file_contents ):
             if name == "DISCONNECTED_OPERATION":
                 vars['DISCONNECTED_OPERATION']= value.strip()
 
-            if name == "WLAN_SSID":
-                vars['ssid']= value.strip()
-
-            if name == "WLAN_IWCONFIG":
-                vars['iwconfig']= value.strip()
-
-
     except IndexError, e:
         log.write( "Unable to parse configuration file\n" )
         return 0
index 4e8518a..4d7f6fc 100644 (file)
@@ -186,8 +186,10 @@ def Run( vars, log ):
                         continue
                     if setting['name'].upper() == "SSID":
                         f.write("ESSID=%s\n" % setting['value'])
-                    elif sett['name'].upper() == "IWCONFIG":
+                    elif setting['name'].upper() == "IWCONFIG":
                         f.write("IWCONFIG=%s\n" % setting['value'])
+                    elif setting['name'].upper() == "MODE":
+                        f.write("MODE=%s\n" % setting['value'])
 
             f.close()