mirror of
https://github.com/hak5/wifipineapple-openwrt.git
synced 2025-10-29 16:57:19 +00:00
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
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user