Fixed x86 GRUB config label
[librecmc/librecmc.git] / package / network / services / hostapd / patches / 001-4addr-fix-reconnecting-client-on-connection-lost.patch
1 From: Matthias May <matthias.may@neratec.com>
2 Date: Tue, 5 Jul 2016 15:00:43 +0200
3 Subject: [PATCH] 4addr: fix reconnecting client on connection lost
4
5 When a 4addr client suddenly looses its connection (no deauth/deassoc)
6 the AP still thinks it is connected.
7 If the client reconnects before the AP timeoutes the client, traffic
8 cannot flow.
9
10 Fix this by making sure the WLAN_STA_WDS flag is unset in the sta->flags
11 when the client completes association.
12
13 Signed-off-by: Matthias May <matthias.may@neratec.com>
14 ---
15
16 --- a/src/ap/ieee802_11.c
17 +++ b/src/ap/ieee802_11.c
18 @@ -2826,6 +2826,7 @@ static void handle_assoc_cb(struct hosta
19                 new_assoc = 0;
20         sta->flags |= WLAN_STA_ASSOC;
21         sta->flags &= ~WLAN_STA_WNM_SLEEP_MODE;
22 +       sta->flags &= ~WLAN_STA_WDS;
23         if ((!hapd->conf->ieee802_1x && !hapd->conf->wpa && !hapd->conf->osen) ||
24             sta->auth_alg == WLAN_AUTH_FT) {
25                 /*