madwifi: fix static bssid setting for ad-hoc mode

SVN-Revision: 7067
lede-17.01
Felix Fietkau 2007-04-29 20:50:42 +00:00
parent 9507f89800
commit 269c00418c
1 changed files with 3 additions and 3 deletions

View File

@ -142,15 +142,15 @@ enable_atheros() {
config_get addr "$vif" bssid
iwpriv "$ifname" wds_add "$addr"
;;
*)
config_get ssid "$vif" ssid
;;
adhoc)
config_get addr "$vif" bssid
[ -z "$addr" ] || {
iwconfig "$ifname" ap "$addr"
}
;;
*)
config_get ssid "$vif" ssid
;;
esac
[ "$mode" = "sta" ] && {