diff options
author | John Crispin <blogic@openwrt.org> | 2014-01-12 12:07:11 +0000 |
---|---|---|
committer | John Crispin <blogic@openwrt.org> | 2014-01-12 12:07:11 +0000 |
commit | f5325b8a0cc861979e60147c75e53d815adc1db1 (patch) | |
tree | 0ded2ea5bf5d3c2ae824b27523c2dd739b88b390 /package/network | |
parent | c537a63fcfa4cd00463d5466da694248c3229b42 (diff) | |
download | master-187ad058-f5325b8a0cc861979e60147c75e53d815adc1db1.tar.gz master-187ad058-f5325b8a0cc861979e60147c75e53d815adc1db1.tar.bz2 master-187ad058-f5325b8a0cc861979e60147c75e53d815adc1db1.zip |
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>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39231 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/network')
-rw-r--r-- | package/network/services/hostapd/files/netifd.sh | 6 |
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 dd2256578d..b2c437d824 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 |