Changeset 40690


Ignore:
Timestamp:
2014-05-03T23:14:48+02:00 (4 years ago)
Author:
nbd
Message:

hostapd: add an option for 802.11h (enabled by default)

Signed-off-by: Felix Fietkau <nbd@…>

File:
1 edited

Legend:

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

    r40497 r40690  
    5252 
    5353        config_add_string country 
    54         config_add_boolean country_ie 
     54        config_add_boolean country_ie doth 
    5555 
    5656        hostapd_add_log_config 
     
    6464        local base_cfg= 
    6565 
    66         json_get_vars country country_ie beacon_int 
     66        json_get_vars country country_ie beacon_int doth 
    6767 
    6868        hostapd_set_log_options base_cfg 
    6969 
    7070        set_default country_ie 1 
     71        set_default doth 1 
     72 
    7173        [ -n "$country" ] && { 
    7274                append base_cfg "country_code=$country" "$N" 
     75 
    7376                [ "$country_ie" -gt 0 ] && append base_cfg "ieee80211d=1" "$N" 
     77                [ "$hwmode" = "a" -a "$doth" -gt 0 ] && append base_cfg "ieee80211h=1" "$N" 
    7478        } 
    7579        [ -n "$hwmode" ] && append base_cfg "hw_mode=$hwmode" "$N" 
Note: See TracChangeset for help on using the changeset viewer.