Commit 7373f31c authored by Jérôme Pouiller's avatar Jérôme Pouiller Committed by Greg Kroah-Hartman

staging: wfx: fix frame reordering

When mac80211 debug is enabled, the trace below appears:

    [60744.340037] wlan0: Rx A-MPDU request on aa:bb:cc:97:60:24 tid 0 result -524

This imply that ___ieee80211_start_rx_ba_session will prematurely exit
and frame reordering won't be enabled.

Fixes: e5da5fbd ("staging: wfx: fix CCMP/TKIP replay protection")
Signed-off-by: default avatarJérôme Pouiller <jerome.pouiller@silabs.com>
Link: https://lore.kernel.org/r/20200825085828.399505-7-Jerome.Pouiller@silabs.comSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 049fde13
...@@ -680,15 +680,16 @@ int wfx_ampdu_action(struct ieee80211_hw *hw, ...@@ -680,15 +680,16 @@ int wfx_ampdu_action(struct ieee80211_hw *hw,
struct ieee80211_vif *vif, struct ieee80211_vif *vif,
struct ieee80211_ampdu_params *params) struct ieee80211_ampdu_params *params)
{ {
/* Aggregation is implemented fully in firmware, // Aggregation is implemented fully in firmware
* including block ack negotiation. Do not allow switch (params->action) {
* mac80211 stack to do anything: it interferes with case IEEE80211_AMPDU_RX_START:
* the firmware. case IEEE80211_AMPDU_RX_STOP:
*/ // Just acknowledge it to enable frame re-ordering
return 0;
/* Note that we still need this function stubbed. */ default:
// Leave the firmware doing its business for tx aggregation
return -ENOTSUPP; return -ENOTSUPP;
}
} }
int wfx_add_chanctx(struct ieee80211_hw *hw, int wfx_add_chanctx(struct ieee80211_hw *hw,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment