Skip to content
Snippets Groups Projects
Unverified Commit 279a4091 authored by Matthias Schiffer's avatar Matthias Schiffer
Browse files

gluon-core: split get_wlan_mac_from_driver() out of get_wlan_mac()

parent 806af270
No related branches found
No related tags found
No related merge requests found
......@@ -151,7 +151,7 @@ function get_mac(index)
return generate_mac(3*(index-1))
end
function get_wlan_mac(radio, index, vif)
function get_wlan_mac_from_driver(radio, vif)
local primary = sysconfig.primary_mac:lower()
local i = 1
......@@ -164,6 +164,13 @@ function get_wlan_mac(radio, index, vif)
i = i + 1
end
end
end
function get_wlan_mac(radio, index, vif)
local addr = get_wlan_mac_from_driver(radio, vif)
if addr then
return addr
end
return generate_mac(3*(index-1) + (vif-1))
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment