Skip to content

Commit

Permalink
replace iw by iwconfig for no encrypt association
Browse files Browse the repository at this point in the history
  • Loading branch information
ramonfontes committed Nov 20, 2017
1 parent 44c884a commit dd5adfb
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions mininet/wifiLink.py
Original file line number Diff line number Diff line change
Expand Up @@ -228,10 +228,15 @@ def associate_noEncrypt(cls, sta, ap, wlan):
:param ap: access point
:param wlan: wlan ID
"""
debug('iw dev %s connect %s %s\n'
% (sta.params['wlan'][wlan], ap.params['ssid'][0], ap.params['mac'][0]))
sta.pexec('iw dev %s connect %s %s'
% (sta.params['wlan'][wlan], ap.params['ssid'][0], ap.params['mac'][0]))
#debug('iw dev %s connect %s %s\n'
# % (sta.params['wlan'][wlan], ap.params['ssid'][0], ap.params['mac'][0]))
#sta.pexec('iw dev %s connect %s %s'
# % (sta.params['wlan'][wlan], ap.params['ssid'][0], ap.params['mac'][0]))
#iwconfig is still necessary, since iw doesn't include essid like iwconfig does.
debug('iwconfig %s essid %s ap %s\n' % (
sta.params['wlan'][wlan], ap.params['ssid'][0], ap.params['mac'][0]))
sta.pexec('iwconfig %s essid %s ap %s' % (
sta.params['wlan'][wlan], ap.params['ssid'][0], ap.params['mac'][0]))

@classmethod
def associate_infra(cls, sta, ap, wlan):
Expand Down

0 comments on commit dd5adfb

Please sign in to comment.