summaryrefslogtreecommitdiff
path: root/package/hostapd/files
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2008-10-29 15:52:58 +0000
committerFelix Fietkau <nbd@openwrt.org>2008-10-29 15:52:58 +0000
commit9161a7023556a0db76e3d56fde12bc8b3c30a3e1 (patch)
tree01c3d81007eabfe07d8fdb35559f8bfc132602be /package/hostapd/files
parent1b5de1c105a53f5c1f416ffde466e103debcf225 (diff)
downloadmtk-20170518-9161a7023556a0db76e3d56fde12bc8b3c30a3e1.zip
mtk-20170518-9161a7023556a0db76e3d56fde12bc8b3c30a3e1.tar.gz
mtk-20170518-9161a7023556a0db76e3d56fde12bc8b3c30a3e1.tar.bz2
fix hostapd a/g mode if only the channel is configured in the config
SVN-Revision: 13076
Diffstat (limited to 'package/hostapd/files')
-rw-r--r--package/hostapd/files/hostapd.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/package/hostapd/files/hostapd.sh b/package/hostapd/files/hostapd.sh
index 7a67cec..1159c3b 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 <<EOF
driver=$driver