mirror of
https://github.com/openwrt/openwrt.git
synced 2025-01-19 03:06:35 +00:00
parent
b680f088ba
commit
4dcba42342
@ -317,12 +317,11 @@ enable_mac80211() {
|
|||||||
[ -n "$fixed" -a -n "$channel" ] && iw dev "$ifname" set channel "$channel"
|
[ -n "$fixed" -a -n "$channel" ] && iw dev "$ifname" set channel "$channel"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# txpower is not yet implemented in iw
|
|
||||||
config_get vif_txpower "$vif" txpower
|
config_get vif_txpower "$vif" txpower
|
||||||
# use vif_txpower (from wifi-iface) to override txpower (from
|
# use vif_txpower (from wifi-iface) to override txpower (from
|
||||||
# wifi-device) if the latter doesn't exist
|
# wifi-device) if the latter doesn't exist
|
||||||
txpower="${txpower:-$vif_txpower}"
|
txpower="${txpower:-$vif_txpower}"
|
||||||
[ -z "$txpower" ] || iwconfig "$ifname" txpower "${txpower%%.*}"
|
[ -z "$txpower" ] || iw dev "$ifname" set txpower fixed "${txpower%%.*}00"
|
||||||
done
|
done
|
||||||
|
|
||||||
local start_hostapd=
|
local start_hostapd=
|
||||||
|
Loading…
Reference in New Issue
Block a user