mirror of
https://git.openwrt.org/openwrt/openwrt.git
synced 2024-11-18 22:43:53 +01:00
mac80211: fix encryption fallback for sta mode, add frequency/bssid selection support
SVN-Revision: 18025
This commit is contained in:
parent
60d9f8044c
commit
d5ca84ad0f
@ -231,14 +231,12 @@ enable_mac80211() {
|
||||
iw dev "$ifname" ibss join "$ssid" $freq ${fixed:+fixed-freq} $bssid
|
||||
;;
|
||||
sta|mesh)
|
||||
config_get bssid "$vif" bssid
|
||||
case "$enc" in
|
||||
*)
|
||||
iw dev "$ifname" connect "$ssid"
|
||||
;;
|
||||
wep)
|
||||
if [ -e "$keymgmt" ]; then
|
||||
[ -n "$keystring" ] &&
|
||||
iw dev "$ifname" connect "$ssid" key "$keystring"
|
||||
iw dev "$ifname" connect "$ssid" ${fixed:+$freq} $bssid key "$keystring"
|
||||
else
|
||||
if eval "type wpa_supplicant_setup_vif" 2>/dev/null >/dev/null; then
|
||||
wpa_supplicant_setup_vif "$vif" wext || {
|
||||
@ -260,6 +258,9 @@ enable_mac80211() {
|
||||
}
|
||||
fi
|
||||
;;
|
||||
*)
|
||||
iw dev "$ifname" connect "$ssid" ${fixed:+$freq} $bssid
|
||||
;;
|
||||
esac
|
||||
|
||||
;;
|
||||
|
Loading…
Reference in New Issue
Block a user