diff mbox

mac80211: IBSS, clear fast_sta when update rates

Message ID 1431337193-17472-1-git-send-email-janusz.dziedzic@tieto.com (mailing list archive)
State Changes Requested
Delegated to: Johannes Berg
Headers show

Commit Message

Janusz.Dziedzic@tieto.com May 11, 2015, 9:39 a.m. UTC
This is required to handle sta.wme correctly
after update rates (eg. when using HT/VHT) when
driver using IEEE80211_HW_SUPPORT_FAST_XMIT.

In other case fast tx path will not add QOS data and
in case of ath10k driver (rate control in the HW) only
legacy rates will be used.

Signed-off-by: Janusz Dziedzic <janusz.dziedzic@tieto.com>
---
 net/mac80211/ibss.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Johannes Berg May 11, 2015, 9:52 a.m. UTC | #1
On Mon, 2015-05-11 at 11:39 +0200, Janusz Dziedzic wrote:
> This is required to handle sta.wme correctly
> after update rates (eg. when using HT/VHT) when
> driver using IEEE80211_HW_SUPPORT_FAST_XMIT.

Wouldn't you want to check, so it can be re-assigned?

johannes

--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff --git a/net/mac80211/ibss.c b/net/mac80211/ibss.c
index bfef1b2..f76414e 100644
--- a/net/mac80211/ibss.c
+++ b/net/mac80211/ibss.c
@@ -1087,6 +1087,7 @@  static void ieee80211_update_sta_info(struct ieee80211_sub_if_data *sdata,
 		if (sta->sta.rx_nss != rx_nss)
 			changed |= IEEE80211_RC_NSS_CHANGED;
 
+		ieee80211_clear_fast_xmit(sta);
 		drv_sta_rc_update(local, sdata, &sta->sta, changed);
 	}