From: Rajkumar Manoharan Date: Sat, 23 Oct 2010 05:29:57 +0000 (+0530) Subject: mac80211: Fix ibss station got expired immediately X-Git-Tag: firefly_0821_release~9833^2~79^2^2~231 X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=c58411f76a86233f53bd5e0bdfd5a4fec05a15fa;p=firefly-linux-kernel-4.4.55.git mac80211: Fix ibss station got expired immediately commit c8716d9dc13c7f6ee92f2bfc6cc3b723b417bff8 upstream. Station addition in ieee80211_ibss_rx_queued_mgmt is not updating sta->last_rx which is causing station expiry in ieee80211_ibss_work path. So sta addition and deletion happens repeatedly. Signed-off-by: Rajkumar Manoharan Signed-off-by: John W. Linville Signed-off-by: Greg Kroah-Hartman --- diff --git a/net/mac80211/ibss.c b/net/mac80211/ibss.c index c691780725a7..45c99f096c7b 100644 --- a/net/mac80211/ibss.c +++ b/net/mac80211/ibss.c @@ -435,6 +435,7 @@ struct sta_info *ieee80211_ibss_add_sta(struct ieee80211_sub_if_data *sdata, if (!sta) return NULL; + sta->last_rx = jiffies; set_sta_flags(sta, WLAN_STA_AUTHORIZED); /* make sure mandatory rates are always added */