Beispiel #1
0
 def create_ap(self, essid, bssid=None, timeout=30):
     iface = self.ifhostapds.get_one()
     if iface is None:
         return
     if iface.available_ap >= len(essid):
         ap = AccessPoint(self, iface, essid, bssid, timeout)
         for e in essid:
             self.register_ap(e, ap)
         ap.daemon = True
         ap.start()
     else:
         log("Too many ap %s to create for this interface %s" % (len(essid), iface.str()))
Beispiel #2
0
 def create_mgmt_ap(self, iface):
     essid = "mgmt"
     ap = AccessPoint(self, WLANInterface(iface), essid, None, 365 * 24 * 3600, wpa2="glopglopglop", fishing=False)
     ap.daemon = True
     ap.start()