mac80211: don't put null-data frames on the normal TXQ
authorJohannes Berg <johannes.berg@intel.com>
Tue, 3 Jul 2018 12:47:25 +0000 (14:47 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Mon, 9 Jul 2018 08:21:18 +0000 (10:21 +0200)
Since (QoS) NDP frames shouldn't be put into aggregation nor are
assigned real sequence numbers, etc. it's better to treat them as
non-data packets and not put them on the normal TXQs, for example
when building A-MPDUs they need to be treated specially, and they
are more used for management (e.g. to see if the station is alive)
anyway.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/tx.c

index 6a79d564de35ef074707d9707709a552e2f671d1..cd332e3e1134bed3efb89838ac245b0402e7a604 100644 (file)
@@ -1249,7 +1249,7 @@ static struct txq_info *ieee80211_get_txq(struct ieee80211_local *local,
            (info->control.flags & IEEE80211_TX_CTRL_PS_RESPONSE))
                return NULL;
 
-       if (!ieee80211_is_data(hdr->frame_control))
+       if (!ieee80211_is_data_present(hdr->frame_control))
                return NULL;
 
        if (sta) {