[ar71xx] register GPIO buttons on the AP83 board
[openwrt.git] / package / hostapd / files / hostapd.sh
index 7a67cec..a6f5dba 100644 (file)
@@ -79,7 +79,10 @@ hostapd_setup_vif() {
                11a) agmode=a;;
                11b) agmode=b;;
                11g) agmode=g;;
-               *) agmode=;;
+               *)
+                       agmode=
+                       [ "$channel" -gt 14 ] && agmode=a
+               ;;
        esac
        cat > /var/run/hostapd-$ifname.conf <<EOF
 driver=$driver
@@ -93,6 +96,6 @@ wpa=$wpa
 wpa_pairwise=$crypto
 $hostapd_cfg
 EOF
-       hostapd -B /var/run/hostapd-$ifname.conf
+       hostapd -P /var/run/wifi-$ifname.pid -B /var/run/hostapd-$ifname.conf
 }
 
This page took 0.020135 seconds and 4 git commands to generate.