projects
/
openwrt
/
staging
/
chunkeey.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
900aaa9
)
mac80211: fix handling of frag and rts options, thanks stintel!
author
Jo-Philipp Wich
<jow@openwrt.org>
Thu, 22 Jul 2010 16:01:17 +0000
(16:01 +0000)
committer
Jo-Philipp Wich
<jow@openwrt.org>
Thu, 22 Jul 2010 16:01:17 +0000
(16:01 +0000)
SVN-Revision: 22355
package/mac80211/files/lib/wifi/mac80211.sh
patch
|
blob
|
history
diff --git
a/package/mac80211/files/lib/wifi/mac80211.sh
b/package/mac80211/files/lib/wifi/mac80211.sh
index a963db81ba2e95727064ffa87bd3bb27c8cc405b..f022e262d94c7655e5b755a43e009c54339717c2 100644
(file)
--- a/
package/mac80211/files/lib/wifi/mac80211.sh
+++ b/
package/mac80211/files/lib/wifi/mac80211.sh
@@
-214,6
+214,8
@@
enable_mac80211() {
config_get txpower "$device" txpower
config_get country "$device" country
config_get distance "$device" distance
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
find_mac80211_phy "$device" || return 0
config_get phy "$device" phy
local i=0
@@
-227,6
+229,8
@@
enable_mac80211() {
}
[ -n "$distance" ] && iw phy "$phy" set distance "$distance"
}
[ -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
export channel fixed
# convert channel to frequency
@@
-318,16
+322,6
@@
enable_mac80211() {
# wifi-device) if the latter doesn't exist
txpower="${txpower:-$vif_txpower}"
[ -z "$txpower" ] || iwconfig "$ifname" txpower "${txpower%%.*}"
# 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=
done
local start_hostapd=