mac80211: fix RTS threshold not being set for mac80211 devices
authorFelix Fietkau <nbd@openwrt.org>
Wed, 9 Dec 2009 17:22:25 +0000 (17:22 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Wed, 9 Dec 2009 17:22:25 +0000 (17:22 +0000)
A typo prevented it from working, tested with ar71xx and ath9k.

Signed-off-by: Otto Solares <solca@guug.org>
SVN-Revision: 18719

package/mac80211/files/lib/wifi/mac80211.sh

index efceebbe4c1a0d90f6190e66fd748fa47fd2f0a6..6d144a95c9eda831ea07d0c493b4f0b76d719a53 100644 (file)
@@ -209,7 +209,7 @@ enable_mac80211() {
 
                config_get rts "$vif" rts
                if [ -n "$rts" ]; then
-                       iw phy "$phy" set rts "${frag%%.*}"
+                       iw phy "$phy" set rts "${rts%%.*}"
                fi
 
                ifconfig "$ifname" up