summaryrefslogtreecommitdiff
path: root/package
diff options
context:
space:
mode:
authorJohn Crispin <john@openwrt.org>2014-01-12 12:07:11 +0000
committerJohn Crispin <john@openwrt.org>2014-01-12 12:07:11 +0000
commit2f9048d8d38a7747f1bb3b7be7509b5e8d7132c2 (patch)
tree0d7322906561eb4c1c49a34536c66ce5f2c64e6c /package
parentf58b424c9e808cb31a1174d17e61a571d60b966a (diff)
downloadmtk-20170518-2f9048d8d38a7747f1bb3b7be7509b5e8d7132c2.zip
mtk-20170518-2f9048d8d38a7747f1bb3b7be7509b5e8d7132c2.tar.gz
mtk-20170518-2f9048d8d38a7747f1bb3b7be7509b5e8d7132c2.tar.bz2
hostapd: fix frequency setting for IBSS/RSN
Introduced by ("netifd: add wireless configuration support and port mac80211 to the new framework") Reported-by: René van Weert <rene@sowifi.com> Signed-off-by: Antonio Quartulli <antonio@meshcoding.com> SVN-Revision: 39231
Diffstat (limited to 'package')
-rw-r--r--package/network/services/hostapd/files/netifd.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/package/network/services/hostapd/files/netifd.sh b/package/network/services/hostapd/files/netifd.sh
index dd22565..b2c437d 100644
--- a/package/network/services/hostapd/files/netifd.sh
+++ b/package/network/services/hostapd/files/netifd.sh
@@ -447,12 +447,14 @@ wpa_supplicant_add_network() {
local wpa_key_mgmt="WPA-PSK"
local scan_ssid="1"
+ local freq
[[ "$_w_mode" = "adhoc" ]] && {
append network_data "mode=1" "$N$T"
- [ -n "$fixed_frequency" ] || {
+ [ -n "$channel" ] && {
+ freq="$(get_freq "$phy" "$channel")"
append network_data "fixed_freq=1" "$N$T"
- append network_data "frequency=$fixed_frequency" "$N$T"
+ append network_data "frequency=$freq" "$N$T"
}
scan_ssid=0