Move interface name selection into main wifiscanner program
authorjaviplx <javiplx@gmail.com>
Tue, 3 May 2011 10:17:45 +0000 (10:17 +0000)
committerjaviplx <javiplx@gmail.com>
Tue, 3 May 2011 10:17:45 +0000 (10:17 +0000)
git-svn-id: file:///svnroot/wifihood/trunk@112 c51dfc6a-5949-4919-9c8e-f207a149c383

wifiscanner/wifimap/replay.py
wifiscanner/wifimap/scanner.py
wifiscanner/wifiscanner

index 1e8b594..6bf7c86 100644 (file)
@@ -10,7 +10,7 @@ conf = config.Configuration()
 
 class ReplayScanner ( gobject.GObject ) :
 
-    def __init__ ( self ) :
+    def __init__ ( self , ifname="wlan0" ) :
         gobject.GObject.__init__( self )
         self.scan_timeout = 0
         self.db = db.database( os.path.join( conf.homedir , "wifireplay.db" ) )
index 03389ba..41f2e5c 100644 (file)
@@ -19,7 +19,7 @@ class Scanner ( gps.GPSObject , wifiscan.WifiScanner ) :
 
     def __init__ ( self , ifname="wlan0" ) :
         gps.GPSObject.__init__( self )
-        wifiscan.WifiScanner.__init__( self )
+        wifiscan.WifiScanner.__init__( self , ifname )
         self.db = db.database( os.path.join( conf.homedir , conf.dbname ) )
 
         # Values to be set by wireless scans
index 7c6d3e4..cb2a452 100755 (executable)
@@ -67,7 +67,7 @@ class AbstractWifiscanner :
 
     def __init__ ( self ) :
 
-        _scanner = scanner()
+        _scanner = scanner( "wlan0" )
 
         self.connect("delete_event", gtk.main_quit, None)