Author: nbd Date: 2014-07-15 12:30:08 +0200 (Tue, 15 Jul 2014) New Revision: 41665
Modified: trunk/package/network/services/hostapd/files/netifd.sh Log: hostapd: add a require_mode option in wifi-device sections to select the minimum hardware mode that the AP requires from clients Signed-off-by: Felix Fietkau <[email protected]> Modified: trunk/package/network/services/hostapd/files/netifd.sh =================================================================== --- trunk/package/network/services/hostapd/files/netifd.sh 2014-07-15 09:29:21 UTC (rev 41664) +++ trunk/package/network/services/hostapd/files/netifd.sh 2014-07-15 10:30:08 UTC (rev 41665) @@ -52,6 +52,7 @@ config_add_string country config_add_boolean country_ie doth + config_add_string require_mode hostapd_add_log_config } @@ -63,7 +64,7 @@ local base="${config%%.conf}" local base_cfg= - json_get_vars country country_ie beacon_int doth + json_get_vars country country_ie beacon_int doth require_mode hostapd_set_log_options base_cfg @@ -83,6 +84,11 @@ for br in $basic_rate_list; do hostapd_add_basic_rate brlist "$br" done + case "$require_mode" in + g) brlist="60 120 240" ;; + n) append base_cfg "require_ht=1" "$N";; + ac) append base_cfg "require_vht=1" "$N";; + esac [ -n "$brlist" ] && append base_cfg "basic_rates=$brlist" "$N" [ -n "$beacon_int" ] && append base_cfg "beacon_int=$beacon_int" "$N" _______________________________________________ openwrt-commits mailing list [email protected] https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-commits
