Changeset 41665


Ignore:
Timestamp:
2014-07-15T12:30:08+02:00 (4 years ago)
Author:
nbd
Message:

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 <nbd@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/package/network/services/hostapd/files/netifd.sh

    r41012 r41665  
    5353        config_add_string country 
    5454        config_add_boolean country_ie doth 
     55        config_add_string require_mode 
    5556 
    5657        hostapd_add_log_config 
     
    6465        local base_cfg= 
    6566 
    66         json_get_vars country country_ie beacon_int doth 
     67        json_get_vars country country_ie beacon_int doth require_mode 
    6768 
    6869        hostapd_set_log_options base_cfg 
     
    8485                hostapd_add_basic_rate brlist "$br" 
    8586        done 
     87        case "$require_mode" in 
     88                g) brlist="60 120 240" ;; 
     89                n) append base_cfg "require_ht=1" "$N";; 
     90                ac) append base_cfg "require_vht=1" "$N";; 
     91        esac 
    8692        [ -n "$brlist" ] && append base_cfg "basic_rates=$brlist" "$N" 
    8793        [ -n "$beacon_int" ] && append base_cfg "beacon_int=$beacon_int" "$N" 
Note: See TracChangeset for help on using the changeset viewer.