From: Felix Fietkau Date: Wed, 29 Oct 2008 16:27:06 +0000 (+0000) Subject: merge r13075-13076 to 8.09 X-Git-Url: http://git.openwrt.org/?p=openwrt%2Fsvn-archive%2Farchive.git;a=commitdiff_plain;h=e5fb07e83adf2a4a1a9682e7d1c4c50b32e245a9 merge r13075-13076 to 8.09 SVN-Revision: 13077 --- diff --git a/package/hostapd/files/hostapd.sh b/package/hostapd/files/hostapd.sh index 7a67cec949..1159c3b156 100644 --- a/package/hostapd/files/hostapd.sh +++ b/package/hostapd/files/hostapd.sh @@ -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 <ioctl_sock, SIOCSIFFLAGS, &ifr) != 0) { + perror("ioctl[SIOCSIFFLAGS]");