Skip to content

Commit da629cf

Browse files
helmut-jacobjmberg-intel
authored andcommitted
mac80211: Don't buffer non-bufferable MMPDUs
Non-bufferable MMPDUs are sent out to STAs even while in PS mode (for example probe responses). Applying filtered frame handling for these doesn't seem to make much sense and will only create more air utilization when the STA wakes up. Hence, apply filtered frame handling only for bufferable MMPDUs. Discovered while testing an old VOIP phone that started probing for APs while in PS mode. The mac80211/ath9k AP where the STA is associated would reply with a probe response but the phone sometimes moved to a new channel already and couldn't ack the probe response anymore. In that case mac80211 applied filtered frame handling for the un-acked probe response. Signed-off-by: Helmut Schaa <helmut.schaa@googlemail.com> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
1 parent 2bc533b commit da629cf

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

‎net/mac80211/status.c‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,11 @@ static void ieee80211_handle_filtered_frame(struct ieee80211_local *local,
5151
struct ieee80211_hdr *hdr = (void *)skb->data;
5252
int ac;
5353

54+
if (info->flags & IEEE80211_TX_CTL_NO_PS_BUFFER) {
55+
ieee80211_free_txskb(&local->hw, skb);
56+
return;
57+
}
58+
5459
/*
5560
* This skb 'survived' a round-trip through the driver, and
5661
* hopefully the driver didn't mangle it too badly. However,

0 commit comments

Comments
 (0)