daemon: renamed network variables to not be named in a private way, since they were being used externally
This commit is contained in:
parent
30291a8438
commit
11d8bb0674
3 changed files with 26 additions and 26 deletions
|
@ -408,8 +408,8 @@ class BasicRangeModel(WirelessModel):
|
|||
a = min(iface, iface2)
|
||||
b = max(iface, iface2)
|
||||
|
||||
with self.wlan._linked_lock:
|
||||
linked = self.wlan.linked(a, b)
|
||||
with self.wlan.linked_lock:
|
||||
linked = self.wlan.is_linked(a, b)
|
||||
if d > self.range:
|
||||
if linked:
|
||||
logger.debug("was linked, unlinking")
|
||||
|
@ -508,10 +508,10 @@ class BasicRangeModel(WirelessModel):
|
|||
:return: all link data
|
||||
"""
|
||||
all_links = []
|
||||
with self.wlan._linked_lock:
|
||||
for a in self.wlan._linked:
|
||||
for b in self.wlan._linked[a]:
|
||||
if self.wlan._linked[a][b]:
|
||||
with self.wlan.linked_lock:
|
||||
for a in self.wlan.linked:
|
||||
for b in self.wlan.linked[a]:
|
||||
if self.wlan.linked[a][b]:
|
||||
all_links.append(self.create_link_data(a, b, flags))
|
||||
return all_links
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue