From: Felix Fietkau Date: Tue, 9 Nov 2010 01:44:02 +0000 (+0100) Subject: Fix WDS STA reassociation X-Git-Tag: hostap-1-bp~875 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7826ceae919b4d36bdc391f216d0139ed5276ded;p=thirdparty%2Fhostap.git 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 --- diff --git a/src/ap/ieee802_11.c b/src/ap/ieee802_11.c index 241240fca..4a98ddebb 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,