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 wlan = aredn.hardware.get_iface_name("wifi")
|
||||
local phy = "none"
|
||||
if wlan:match("^wlan(%d+)$") then
|
||||
phy = iwinfo.nl80211.phyname(wlan)
|
||||
local wlanid = wlan:match("^wlan(%d+)$")
|
||||
if wlanid then
|
||||
phy = "phy" .. wlanid
|
||||
radiomode = "adhoc"
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue