don't overwrite device default for fast frames closes #2321
authorTravis Kemen <thepeople@openwrt.org>
Wed, 28 Nov 2007 03:07:18 +0000 (03:07 +0000)
committerTravis Kemen <thepeople@openwrt.org>
Wed, 28 Nov 2007 03:07:18 +0000 (03:07 +0000)
SVN-Revision: 9609

package/madwifi/files/lib/wifi/madwifi.sh

index 41a25a400f4810adca71abc24ede4f2630c8200d..83f35ab64e64969d73873a4d5a23c20ceddd2a67 100755 (executable)
@@ -114,8 +114,10 @@ enable_atheros() {
                config_get_bool hidden "$vif" hidden 0
                iwpriv "$ifname" hide_ssid "$hidden"
 
-               config_get_bool ff "$vif" ff 0
-               iwpriv "$ifname" ff "$ff"
+               config_get ff "$vif" ff
+               if [ -n "$ff" ]; then
+                       iwpriv "$ifname" ff "$ff"
+               fi
 
                config_get wds "$vif" wds
                case "$wds" in