mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-12-25 15:06:47 +02:00
madwifi: fix static bssid setting for ad-hoc mode
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@7067 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
2064758dc2
commit
c5bab4ae7e
@ -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…
Reference in New Issue
Block a user