Skip to content

Commit

Permalink
check whether ap_intf.associatedStations has self
Browse files Browse the repository at this point in the history
  • Loading branch information
ramonfontes committed May 13, 2020
1 parent 79defbb commit d08c777
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mn_wifi/link.py
Original file line number Diff line number Diff line change
Expand Up @@ -431,7 +431,8 @@ def setDisconnected(self, ap_intf):
self.rssi = 0
self.channel = 0
self.associatedTo = None
ap_intf.associatedStations.remove(self)
if self in ap_intf.associatedStations:
ap_intf.associatedStations.remove(self)

def wep_connect(self, passwd, ap_intf):
self.iwdev_pexec('{} connect {} key d:0:{}'.format(
Expand Down

0 comments on commit d08c777

Please sign in to comment.