diff options
author | Felix Fietkau <nbd@openwrt.org> | 2010-03-09 17:35:59 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2010-03-09 17:35:59 +0000 |
commit | 7fdbfef92f29dc77b9ea5973d232b12266f703f4 (patch) | |
tree | ca782b94869d5e256dbb54244b8149ecc98eec8c | |
parent | 26e745e736534b1fed3827e49675c053da545a89 (diff) | |
download | mtk-20170518-7fdbfef92f29dc77b9ea5973d232b12266f703f4.zip mtk-20170518-7fdbfef92f29dc77b9ea5973d232b12266f703f4.tar.gz mtk-20170518-7fdbfef92f29dc77b9ea5973d232b12266f703f4.tar.bz2 |
wpa_supplicant: fix bridging settings for wds
SVN-Revision: 20088
-rw-r--r-- | package/hostapd/files/wpa_supplicant.sh | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/package/hostapd/files/wpa_supplicant.sh b/package/hostapd/files/wpa_supplicant.sh index 97a0082..a9f8ca1 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' |