local driver="$2"
local key="$key"
local options="$3"
- local freq
+ local freq=""
[ -n "$4" ] && freq="frequency=$4"
# wpa_supplicant should use wext for mac80211 cards
config_set "$vif" bridge "$bridge"
}
- local mode ifname wds
+ local mode ifname wds modestr=""
config_get mode "$vif" mode
config_get ifname "$vif" ifname
config_get_bool wds "$vif" wds 0
echo "wpa_supplicant_setup_vif($ifname): Refusing to bridge $mode mode interface"
return 1
}
+ [ "$mode" = "adhoc" ] && modestr="mode=1"
case "$enc" in
*none*)
cat > /var/run/wpa_supplicant-$ifname.conf <<EOF
ctrl_interface=/var/run/wpa_supplicant-$ifname
network={
- $mode
+ $modestr
scan_ssid=1
ssid="$ssid"
$bssid