mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-25 00:11:13 +00:00
wpa_supplicant: fix regressions introduced by the ibss-rsn changes
SVN-Revision: 31087
This commit is contained in:
parent
d654ad2ae9
commit
d5833ff3f3
@ -3,7 +3,7 @@ wpa_supplicant_setup_vif() {
|
|||||||
local driver="$2"
|
local driver="$2"
|
||||||
local key="$key"
|
local key="$key"
|
||||||
local options="$3"
|
local options="$3"
|
||||||
local freq
|
local freq=""
|
||||||
[ -n "$4" ] && freq="frequency=$4"
|
[ -n "$4" ] && freq="frequency=$4"
|
||||||
|
|
||||||
# wpa_supplicant should use wext for mac80211 cards
|
# wpa_supplicant should use wext for mac80211 cards
|
||||||
@ -25,7 +25,7 @@ wpa_supplicant_setup_vif() {
|
|||||||
config_set "$vif" bridge "$bridge"
|
config_set "$vif" bridge "$bridge"
|
||||||
}
|
}
|
||||||
|
|
||||||
local mode ifname wds
|
local mode ifname wds modestr=""
|
||||||
config_get mode "$vif" mode
|
config_get mode "$vif" mode
|
||||||
config_get ifname "$vif" ifname
|
config_get ifname "$vif" ifname
|
||||||
config_get_bool wds "$vif" wds 0
|
config_get_bool wds "$vif" wds 0
|
||||||
@ -33,6 +33,7 @@ wpa_supplicant_setup_vif() {
|
|||||||
echo "wpa_supplicant_setup_vif($ifname): Refusing to bridge $mode mode interface"
|
echo "wpa_supplicant_setup_vif($ifname): Refusing to bridge $mode mode interface"
|
||||||
return 1
|
return 1
|
||||||
}
|
}
|
||||||
|
[ "$mode" = "adhoc" ] && modestr="mode=1"
|
||||||
|
|
||||||
case "$enc" in
|
case "$enc" in
|
||||||
*none*)
|
*none*)
|
||||||
@ -126,7 +127,7 @@ wpa_supplicant_setup_vif() {
|
|||||||
cat > /var/run/wpa_supplicant-$ifname.conf <<EOF
|
cat > /var/run/wpa_supplicant-$ifname.conf <<EOF
|
||||||
ctrl_interface=/var/run/wpa_supplicant-$ifname
|
ctrl_interface=/var/run/wpa_supplicant-$ifname
|
||||||
network={
|
network={
|
||||||
$mode
|
$modestr
|
||||||
scan_ssid=1
|
scan_ssid=1
|
||||||
ssid="$ssid"
|
ssid="$ssid"
|
||||||
$bssid
|
$bssid
|
||||||
|
Loading…
Reference in New Issue
Block a user