]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/blob - releases/2.6.36.2/mac80211-fix-ibss-station-got-expired-immediately.patch
Fixes for 4.19
[thirdparty/kernel/stable-queue.git] / releases / 2.6.36.2 / mac80211-fix-ibss-station-got-expired-immediately.patch
1 From c8716d9dc13c7f6ee92f2bfc6cc3b723b417bff8 Mon Sep 17 00:00:00 2001
2 From: Rajkumar Manoharan <rmanoharan@atheros.com>
3 Date: Sat, 23 Oct 2010 10:59:57 +0530
4 Subject: mac80211: Fix ibss station got expired immediately
5
6 From: Rajkumar Manoharan <rmanoharan@atheros.com>
7
8 commit c8716d9dc13c7f6ee92f2bfc6cc3b723b417bff8 upstream.
9
10 Station addition in ieee80211_ibss_rx_queued_mgmt is not updating
11 sta->last_rx which is causing station expiry in ieee80211_ibss_work
12 path. So sta addition and deletion happens repeatedly.
13
14 Signed-off-by: Rajkumar Manoharan <rmanoharan@atheros.com>
15 Signed-off-by: John W. Linville <linville@tuxdriver.com>
16 Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
17
18 ---
19 net/mac80211/ibss.c | 1 +
20 1 file changed, 1 insertion(+)
21
22 --- a/net/mac80211/ibss.c
23 +++ b/net/mac80211/ibss.c
24 @@ -435,6 +435,7 @@ struct sta_info *ieee80211_ibss_add_sta(
25 if (!sta)
26 return NULL;
27
28 + sta->last_rx = jiffies;
29 set_sta_flags(sta, WLAN_STA_AUTHORIZED);
30
31 /* make sure mandatory rates are always added */