config_get vifs "$device" vifs
config_get txpower "$device" txpower
config_get country "$device" country
config_get vifs "$device" vifs
config_get txpower "$device" txpower
config_get country "$device" country
+ config_get distance "$device" distance
find_mac80211_phy "$device" || return 0
config_get phy "$device" phy
local i=0
find_mac80211_phy "$device" || return 0
config_get phy "$device" phy
local i=0
+ [ -n "$distance" ] && iw phy "$phy" set distance "$distance"
+
export channel fixed
# convert channel to frequency
local freq="$(get_freq "$phy" "${fixed:+$channel}")"
export channel fixed
# convert channel to frequency
local freq="$(get_freq "$phy" "${fixed:+$channel}")"