Skip to content
Snippets Groups Projects
Commit fc946534 authored by nbd's avatar nbd
Browse files

mac80211: fix ad-hoc network setup with netifd (#14564)


Signed-off-by: default avatarFelix Fietkau <nbd@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38993 3c298f89-4303-0410-b956-a3cf2f4a3e73
parent 7e0b5dc8
No related branches found
No related tags found
No related merge requests found
......@@ -271,8 +271,7 @@ mac80211_setup_adhoc() {
mcval=
[ -n "$mcast_rate" ] && hostapd_add_rate mcval "$mcast_rate"
iw dev "$ifname" ibss join "$ssid" $freq $htmode \
${fixed:+fixed-freq} $bssid \
iw dev "$ifname" ibss join "$ssid" $freq $htmode fixed-freq $bssid \
${beacon_int:+beacon-interval $beacon_int} \
${brstr:+basic-rates $brstr} \
${mcval:+mcast-rate $mcval} \
......@@ -309,7 +308,7 @@ mac80211_setup_vif() {
;;
adhoc)
wireless_vif_parse_encryption
if [ "$wpa" -gt 0 ]; then
if [ "$wpa" -gt 0 -o "$auto_channel" -gt 0 ]; then
mac80211_setup_supplicant || failed=1
else
mac80211_setup_adhoc
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment