mirror of https://github.com/hak5/openwrt-owl.git
mac80211: fix ad-hoc network setup with netifd (#14564)
Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 38993owl
parent
4155016637
commit
ee2cd0354c
|
@ -271,8 +271,7 @@ mac80211_setup_adhoc() {
|
||||||
mcval=
|
mcval=
|
||||||
[ -n "$mcast_rate" ] && hostapd_add_rate mcval "$mcast_rate"
|
[ -n "$mcast_rate" ] && hostapd_add_rate mcval "$mcast_rate"
|
||||||
|
|
||||||
iw dev "$ifname" ibss join "$ssid" $freq $htmode \
|
iw dev "$ifname" ibss join "$ssid" $freq $htmode fixed-freq $bssid \
|
||||||
${fixed:+fixed-freq} $bssid \
|
|
||||||
${beacon_int:+beacon-interval $beacon_int} \
|
${beacon_int:+beacon-interval $beacon_int} \
|
||||||
${brstr:+basic-rates $brstr} \
|
${brstr:+basic-rates $brstr} \
|
||||||
${mcval:+mcast-rate $mcval} \
|
${mcval:+mcast-rate $mcval} \
|
||||||
|
@ -309,7 +308,7 @@ mac80211_setup_vif() {
|
||||||
;;
|
;;
|
||||||
adhoc)
|
adhoc)
|
||||||
wireless_vif_parse_encryption
|
wireless_vif_parse_encryption
|
||||||
if [ "$wpa" -gt 0 ]; then
|
if [ "$wpa" -gt 0 -o "$auto_channel" -gt 0 ]; then
|
||||||
mac80211_setup_supplicant || failed=1
|
mac80211_setup_supplicant || failed=1
|
||||||
else
|
else
|
||||||
mac80211_setup_adhoc
|
mac80211_setup_adhoc
|
||||||
|
|
Loading…
Reference in New Issue