Hi,

This patch adds require_ht parameter support to mac80211 uci config.

After applying this patch, the require_ht parameter can be used in the 
wifi-device section like this:

> config wifi-device 'radio0'
>         option type 'mac80211'
>         option channel '13'
>         option macaddr '90:f6:52:ab:cd:ef'
>         option hwmode '11ng'
>         option htmode 'HT40-'
>         list ht_capab 'LDPC'
>         list ht_capab 'SHORT-GI-20'
>         list ht_capab 'SHORT-GI-40'
>         list ht_capab 'TX-STBC'
>         list ht_capab 'RX-STBC1'
>         list ht_capab 'DSSS_CCK-40'
>         option require_ht '1'
>         option txpower '20'
>         option country 'IT'
>         option disabled '0'

It cannot be used in wifi-iface sections, as the parameter applies to the whole 
radio and not to single VIFs.

Signed-off-by: Vittorio Gambaletta <[email protected]>
---

--- trunk/package/mac80211/files/lib/wifi/mac80211.sh   2013-05-15 
11:36:10.000000000 +0200
+++ trunk/package/mac80211/files/lib/wifi/mac80211.sh   2013-05-30 
16:41:49.209220897 +0200
@@ -40,6 +40,8 @@
                                ht_capab="$ht_capab[$cap]"
                        done
                        [ -n "$ht_capab" ] && append base_cfg 
"ht_capab=$ht_capab" "$N"
+                       config_get_bool require_ht "$device" require_ht 0
+                       [ "$require_ht" -gt 0 ] && append base_cfg 
"require_ht=1" "$N"
                }
        }
 
_______________________________________________
openwrt-devel mailing list
[email protected]
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to