mirror of
https://github.com/openwrt/openwrt.git
synced 2025-01-31 08:25:29 +00:00
madwifi: fix static bssid setting for ad-hoc mode
SVN-Revision: 7067
This commit is contained in:
parent
9507f89800
commit
269c00418c
@ -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" ] && {
|
||||
|
Loading…
x
Reference in New Issue
Block a user