iwlwifi: mvm: Avoid deferring non bufferable frames

Use bcast station for all non bufferable frames on AP and AD-HOC.

The host is no longer aware of STAs PS status because of buffer
station offload, so we can't rely on mac80211 to toggle on
IEEE80211_TX_CTL_NO_PS_BUFFER bit.

A possible issue with buffering such frames, beside the obvious spec
violation, is when a station disconnects while in PS but the AP isn't
aware of that. In such scenarios the AP won't be able to send probe
responses or auth frames so the STA won't be able to reconnect and
the AP will have a queue hang.

Fixes: 3e56eadfb6 ("iwlwifi: mvm: implement AP/GO uAPSD support")
Signed-off-by: David Spinadel <david.spinadel@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
This commit is contained in:
David Spinadel 2017-08-17 17:28:22 +03:00 committed by Luca Coelho
parent 075d8a75da
commit eb045e6e03

View File

@ -810,10 +810,11 @@ static void iwl_mvm_mac_tx(struct ieee80211_hw *hw,
!test_bit(IWL_MVM_STATUS_ROC_AUX_RUNNING, &mvm->status)) !test_bit(IWL_MVM_STATUS_ROC_AUX_RUNNING, &mvm->status))
goto drop; goto drop;
/* treat non-bufferable MMPDUs as broadcast if sta is sleeping */ /* treat non-bufferable MMPDUs on AP interfaces as broadcast */
if (unlikely(info->flags & IEEE80211_TX_CTL_NO_PS_BUFFER && if ((info->control.vif->type == NL80211_IFTYPE_AP ||
ieee80211_is_mgmt(hdr->frame_control) && info->control.vif->type == NL80211_IFTYPE_ADHOC) &&
!ieee80211_is_bufferable_mmpdu(hdr->frame_control))) ieee80211_is_mgmt(hdr->frame_control) &&
!ieee80211_is_bufferable_mmpdu(hdr->frame_control))
sta = NULL; sta = NULL;
if (sta) { if (sta) {