From: Felix Fietkau Date: Tue, 9 Mar 2010 17:35:59 +0000 (+0000) Subject: wpa_supplicant: fix bridging settings for wds X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=7fdbfef92f29dc77b9ea5973d232b12266f703f4;p=openwrt%2Fstaging%2Fluka.git wpa_supplicant: fix bridging settings for wds SVN-Revision: 20088 --- diff --git a/package/hostapd/files/wpa_supplicant.sh b/package/hostapd/files/wpa_supplicant.sh index 97a00829da..a9f8ca1322 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'