Skip to content

Commit

Permalink
fixed physical ap
Browse files Browse the repository at this point in the history
  • Loading branch information
ramonfontes committed Nov 15, 2016
1 parent f03f5a7 commit b68ece8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions mininet/net.py
Original file line number Diff line number Diff line change
Expand Up @@ -772,8 +772,7 @@ def configureAP(self):
wifiparam.setdefault('rsn_pairwise', self.rsn_pairwise)
wifiparam.setdefault('wpa_passphrase', self.wpa_passphrase)
wifiparam.setdefault('wep_key0', self.wep_key0)
if 'phywlan' not in ap.params:
wifiparam.setdefault('wlan', wlan)
wifiparam.setdefault('wlan', wlan)

cls = AccessPoint
cls.init_(ap, **wifiparam)
Expand Down
3 changes: 1 addition & 2 deletions mininet/node.py
Original file line number Diff line number Diff line change
Expand Up @@ -1346,8 +1346,7 @@ def start_(self, ap, country_code=None, auth_algs=None, wpa=None, wlan=None,
if 'phywlan' not in ap.params:
cmd = cmd + ("interface=%s" % ap.params['wlan'][wlan]) # the interface used by the AP
else:
wlan = ap.params.get('phywlan')
cmd = cmd + ("interface=%s" % wlan) # the interface used by the AP
cmd = cmd + ("interface=%s" % ap.params.get('phywlan')) # the interface used by the AP
cmd = cmd + ("\ndriver=nl80211")
cmd = cmd + ("\nssid=%s" % ap.params['ssid'][0]) # the name of the AP

Expand Down

0 comments on commit b68ece8

Please sign in to comment.