]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
Fix WDS STA reassociation
authorFelix Fietkau <nbd@openwrt.org>
Tue, 9 Nov 2010 01:44:02 +0000 (02:44 +0100)
committerJouni Malinen <j@w1.fi>
Tue, 9 Nov 2010 14:00:09 +0000 (16:00 +0200)
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

src/ap/ieee802_11.c

index 241240fca5317e8e70d420856a9b5504de6a021b..4a98ddebba2a134efd366dfea7ade322fc9bddf4 100644 (file)
@@ -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,