Compare commits
3 Commits
Author | SHA1 | Date | |
---|---|---|---|
98bd7bab1a | |||
08d24632a3 | |||
7c1b0f7ced |
@ -2,7 +2,7 @@ country_code=GB
|
||||
interface={IFACE}
|
||||
ssid={SSID}
|
||||
hw_mode=g
|
||||
channel=7
|
||||
channel={CHAN}
|
||||
auth_algs=1
|
||||
wpa=2
|
||||
wpa_passphrase={PASS}
|
||||
|
@ -344,7 +344,7 @@ class Network(object):
|
||||
Deduce the channel to have for the AP in order to prevent
|
||||
kind of jamming between the two wifi interfaces.
|
||||
"""
|
||||
|
||||
if self.iface_out[0] == "w":
|
||||
# Get the channel of the connected interface
|
||||
sh = sp.Popen(["iw", self.iface_out, "info"],
|
||||
stdout=sp.PIPE, stderr=sp.PIPE).communicate()
|
||||
@ -353,3 +353,5 @@ class Network(object):
|
||||
|
||||
# Return a good candidate.
|
||||
return "11" if int(chn) < 7 else "1"
|
||||
else:
|
||||
return "1"
|
||||
|
Reference in New Issue
Block a user