From bc233ef4904edbd646be4f8aa99d3a4fdc003af6 Mon Sep 17 00:00:00 2001 From: nbd Date: Tue, 9 Mar 2010 17:35:59 +0000 Subject: wpa_supplicant: fix bridging settings for wds git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20088 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- package/hostapd/files/wpa_supplicant.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/package/hostapd/files/wpa_supplicant.sh b/package/hostapd/files/wpa_supplicant.sh index 97a00829d..a9f8ca132 100644 --- a/package/hostapd/files/wpa_supplicant.sh +++ b/package/hostapd/files/wpa_supplicant.sh @@ -14,6 +14,14 @@ wpa_supplicant_setup_vif() { config_get key "$vif" key } + local net_cfg bridge + config_get bridge "$vif" bridge + [ -z "$bridge" ] && { + net_cfg="$(find_net_config "$vif")" + [ -z "$net_cfg" ] || bridge="$(bridge_interface "$net_cfg")" + config_set "$vif" bridge "$bridge" + } + case "$enc" in *none*) key_mgmt='NONE' -- cgit v1.2.3