aboutsummaryrefslogtreecommitdiffstats
path: root/package/hostapd/files
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2010-03-09 17:35:59 +0000
committerFelix Fietkau <nbd@openwrt.org>2010-03-09 17:35:59 +0000
commit0c1854f84372f2c81237ff3801c9e7d9ebc4950c (patch)
treeffe41dde535e94abec651e26f2b4ab2c86b20182 /package/hostapd/files
parent26eeba54b70874058bec1d6704863e07f8dfcaa9 (diff)
downloadmaster-187ad058-0c1854f84372f2c81237ff3801c9e7d9ebc4950c.tar.gz
master-187ad058-0c1854f84372f2c81237ff3801c9e7d9ebc4950c.tar.bz2
master-187ad058-0c1854f84372f2c81237ff3801c9e7d9ebc4950c.zip
wpa_supplicant: fix bridging settings for wds
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20088 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/hostapd/files')
-rw-r--r--package/hostapd/files/wpa_supplicant.sh8
1 files changed, 8 insertions, 0 deletions
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'