mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2025-02-02 19:11:06 +02:00
[backfire] merge r22355
git-svn-id: svn://svn.openwrt.org/openwrt/branches/backfire@22356 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
20769ac18b
commit
6ef6628ddb
@ -206,6 +206,8 @@ enable_mac80211() {
|
||||
config_get txpower "$device" txpower
|
||||
config_get country "$device" country
|
||||
config_get distance "$device" distance
|
||||
config_get frag "$device" frag
|
||||
config_get rts "$device" rts
|
||||
find_mac80211_phy "$device" || return 0
|
||||
config_get phy "$device" phy
|
||||
local i=0
|
||||
@ -219,6 +221,8 @@ enable_mac80211() {
|
||||
}
|
||||
|
||||
[ -n "$distance" ] && iw phy "$phy" set distance "$distance"
|
||||
[ -n "$frag" ] && iw phy "$phy" set frag "${frag%%.*}"
|
||||
[ -n "$rts" ] && iw phy "$phy" set rts "${rts%%.*}"
|
||||
|
||||
export channel fixed
|
||||
# convert channel to frequency
|
||||
@ -310,16 +314,6 @@ enable_mac80211() {
|
||||
# wifi-device) if the latter doesn't exist
|
||||
txpower="${txpower:-$vif_txpower}"
|
||||
[ -z "$txpower" ] || iwconfig "$ifname" txpower "${txpower%%.*}"
|
||||
|
||||
config_get frag "$vif" frag
|
||||
if [ -n "$frag" ]; then
|
||||
iw phy "$phy" set frag "${frag%%.*}"
|
||||
fi
|
||||
|
||||
config_get rts "$vif" rts
|
||||
if [ -n "$rts" ]; then
|
||||
iw phy "$phy" set rts "${rts%%.*}"
|
||||
fi
|
||||
done
|
||||
|
||||
local start_hostapd=
|
||||
|
Loading…
x
Reference in New Issue
Block a user