add country code option for hostapd (patch from #4675)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@14608 3c298f89-4303-0410-b956-a3cf2f4a3e73master
parent
52a95ed537
commit
fec8c083e7
|
@ -76,6 +76,7 @@ hostapd_setup_vif() {
|
||||||
config_get device "$vif" device
|
config_get device "$vif" device
|
||||||
config_get channel "$device" channel
|
config_get channel "$device" channel
|
||||||
config_get hwmode "$device" hwmode
|
config_get hwmode "$device" hwmode
|
||||||
|
config_get country "$device" country
|
||||||
case "$hwmode" in
|
case "$hwmode" in
|
||||||
11a) hwmode=a;;
|
11a) hwmode=a;;
|
||||||
11b) hwmode=b;;
|
11b) hwmode=b;;
|
||||||
|
@ -96,6 +97,7 @@ ssid=$ssid
|
||||||
debug=0
|
debug=0
|
||||||
wpa=$wpa
|
wpa=$wpa
|
||||||
${crypto:+wpa_pairwise=$crypto}
|
${crypto:+wpa_pairwise=$crypto}
|
||||||
|
${country:+country_code=$country}
|
||||||
$hostapd_cfg
|
$hostapd_cfg
|
||||||
EOF
|
EOF
|
||||||
hostapd -P /var/run/wifi-$ifname.pid -B /var/run/hostapd-$ifname.conf
|
hostapd -P /var/run/wifi-$ifname.pid -B /var/run/hostapd-$ifname.conf
|
||||||
|
|
Loading…
Reference in New Issue