aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2010-11-09 14:03:05 (GMT)
committerJouni Malinen <j@w1.fi>2010-11-09 14:03:05 (GMT)
commit4a8c72959e3f889d4611660b1d9764515c815d86 (patch)
tree8e763e098ba57ecb3e29d8db4f428182b40c6f8c
parent7826ceae919b4d36bdc391f216d0139ed5276ded (diff)
downloadhostap-4a8c72959e3f889d4611660b1d9764515c815d86.zip
hostap-4a8c72959e3f889d4611660b1d9764515c815d86.tar.gz
hostap-4a8c72959e3f889d4611660b1d9764515c815d86.tar.bz2
nl80211: Fix AP VLAN handling for WDS STA reassociation
When a STA reassociates, the AP VLAN interface is still present, do not attempt to create it in that case.
-rw-r--r--src/drivers/driver_nl80211.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/drivers/driver_nl80211.c b/src/drivers/driver_nl80211.c
index 250bff4..0f2408b 100644
--- a/src/drivers/driver_nl80211.c
+++ b/src/drivers/driver_nl80211.c
@@ -4987,7 +4987,8 @@ static int i802_set_wds_sta(void *priv, const u8 *addr, int aid, int val)
wpa_printf(MSG_DEBUG, "nl80211: Set WDS STA addr=" MACSTR
" aid=%d val=%d name=%s", MAC2STR(addr), aid, val, name);
if (val) {
- if (nl80211_create_iface(drv, name, NL80211_IFTYPE_AP_VLAN,
+ if (!if_nametoindex(name) &&
+ nl80211_create_iface(drv, name, NL80211_IFTYPE_AP_VLAN,
NULL, 1) < 0)
return -1;
linux_set_iface_flags(drv->ioctl_sock, name, 1);