mirror of https://github.com/aredn/aredn.git
Calculate physical device by hand (#1676)
This commit is contained in:
parent
ff31b89e1d
commit
e9c503e8d0
|
@ -264,8 +264,9 @@ f:close()
|
||||||
local radiomode = "none"
|
local radiomode = "none"
|
||||||
local wlan = aredn.hardware.get_iface_name("wifi")
|
local wlan = aredn.hardware.get_iface_name("wifi")
|
||||||
local phy = "none"
|
local phy = "none"
|
||||||
if wlan:match("^wlan(%d+)$") then
|
local wlanid = wlan:match("^wlan(%d+)$")
|
||||||
phy = iwinfo.nl80211.phyname(wlan)
|
if wlanid then
|
||||||
|
phy = "phy" .. wlanid
|
||||||
radiomode = "adhoc"
|
radiomode = "adhoc"
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue