Ticket #4675: hostapd-country.diff

File hostapd-country.diff, 635 bytes (added by thomas@…, 9 years ago)

patch against trunk

  • package/hostapd/files/hostapd.sh

     
    7676        config_get device "$vif" device 
    7777        config_get channel "$device" channel 
    7878        config_get hwmode "$device" hwmode 
     79        config_get country "$device" country 
    7980        case "$hwmode" in 
    8081                11a) hwmode=a;; 
    8182                11b) hwmode=b;; 
     
    9697debug=0 
    9798wpa=$wpa 
    9899${crypto:+wpa_pairwise=$crypto} 
     100${country:+country_code=$country} 
    99101$hostapd_cfg 
    100102EOF 
    101103        hostapd -P /var/run/wifi-$ifname.pid -B /var/run/hostapd-$ifname.conf