madwifi: remove wds type of wifi-iface without essid, imho it never worked properly and is unsupported now, regular ap/sta with option wds 1 is preferred
SVN-Revision: 12055
This commit is contained in:
parent
214cac6482
commit
1201ed1baa
1 changed files with 6 additions and 11 deletions
|
@ -18,14 +18,13 @@ scan_atheros() {
|
||||||
append $mode "$vif"
|
append $mode "$vif"
|
||||||
;;
|
;;
|
||||||
wds)
|
wds)
|
||||||
config_get addr "$vif" bssid
|
|
||||||
config_get ssid "$vif" ssid
|
config_get ssid "$vif" ssid
|
||||||
[ -z "$addr" -a -n "$ssid" ] && {
|
[ -z "$ssid" ] && continue
|
||||||
config_set "$vif" wds 1
|
|
||||||
config_set "$vif" mode sta
|
config_set "$vif" wds 1
|
||||||
mode="sta"
|
config_set "$vif" mode sta
|
||||||
addr="$ssid"
|
mode="sta"
|
||||||
}
|
addr="$ssid"
|
||||||
${addr:+append $mode "$vif"}
|
${addr:+append $mode "$vif"}
|
||||||
;;
|
;;
|
||||||
*) echo "$device($vif): Invalid mode, ignored."; continue;;
|
*) echo "$device($vif): Invalid mode, ignored."; continue;;
|
||||||
|
@ -150,10 +149,6 @@ enable_atheros() {
|
||||||
esac
|
esac
|
||||||
|
|
||||||
case "$mode" in
|
case "$mode" in
|
||||||
wds)
|
|
||||||
config_get addr "$vif" bssid
|
|
||||||
iwpriv "$ifname" wds_add "$addr"
|
|
||||||
;;
|
|
||||||
adhoc|ahdemo)
|
adhoc|ahdemo)
|
||||||
config_get addr "$vif" bssid
|
config_get addr "$vif" bssid
|
||||||
[ -z "$addr" ] || {
|
[ -z "$addr" ] || {
|
||||||
|
|
Loading…
Reference in a new issue