aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2010-11-09 01:44:02 (GMT)
committerJouni Malinen <j@w1.fi>2010-11-09 14:00:09 (GMT)
commit7826ceae919b4d36bdc391f216d0139ed5276ded (patch)
tree24906a6ad48fbcc4aa5deb96ad0879a7b8c0d9d6
parent3efb432952643c9fb901ece5e960db01b77daf64 (diff)
downloadhostap-7826ceae919b4d36bdc391f216d0139ed5276ded.zip
hostap-7826ceae919b4d36bdc391f216d0139ed5276ded.tar.gz
hostap-7826ceae919b4d36bdc391f216d0139ed5276ded.tar.bz2
Fix WDS STA reassociation
If the STA entry is present in hostapd, but not in the kernel driver, its WDS status needs to be restored when the STA reassociates
-rw-r--r--src/ap/ieee802_11.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/ap/ieee802_11.c b/src/ap/ieee802_11.c
index 241240f..4a98dde 100644
--- a/src/ap/ieee802_11.c
+++ b/src/ap/ieee802_11.c
@@ -1659,6 +1659,9 @@ static void handle_assoc_cb(struct hostapd_data *hapd,
"Could not add STA to kernel driver");
}
+ if (sta->flags & WLAN_STA_WDS)
+ hapd->drv.set_wds_sta(hapd, sta->addr, sta->aid, 1);
+
if (sta->eapol_sm == NULL) {
/*
* This STA does not use RADIUS server for EAP authentication,