aboutsummaryrefslogtreecommitdiffstats
path: root/include/net/mac80211.h
diff options
context:
space:
mode:
authorSujith Manoharan <c_manoha@qca.qualcomm.com>2014-12-10 10:56:11 -0500
committerJohannes Berg <johannes.berg@intel.com>2014-12-12 07:48:43 -0500
commit5cf16616e152dd5c274a65954c77f64892d025a8 (patch)
tree1ce531ca046ecf90ae561df50ea14fed6da0eb9f /include/net/mac80211.h
parent6b127c71fbdd3daacfd8b9f80b8e6ebfb70a889e (diff)
mac80211: Fix accounting of multicast frames
Since multicast frames are marked as no-ack, using IEEE80211_TX_STAT_ACK to check if they have been successfully transmitted by the driver is incorrect since a driver can choose to ignore transmission status for no-ack frames. This results in incorrect accounting for such frames. To fix this issue, this patch introduces a new flag that can be used by drivers to indicate error-free transmission of no-ack frames. Signed-off-by: Sujith Manoharan <c_manoha@qca.qualcomm.com> [add a note about not setting the flag for non-no-ack frames] Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'include/net/mac80211.h')
-rw-r--r--include/net/mac80211.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/net/mac80211.h b/include/net/mac80211.h
index b36e60d4c518..b24ef577aed9 100644
--- a/include/net/mac80211.h
+++ b/include/net/mac80211.h
@@ -505,6 +505,11 @@ struct ieee80211_bss_conf {
505 * @IEEE80211_TX_CTL_DONTFRAG: Don't fragment this packet even if it 505 * @IEEE80211_TX_CTL_DONTFRAG: Don't fragment this packet even if it
506 * would be fragmented by size (this is optional, only used for 506 * would be fragmented by size (this is optional, only used for
507 * monitor injection). 507 * monitor injection).
508 * @IEEE80211_TX_STAT_NOACK_TRANSMITTED: A frame that was marked with
509 * IEEE80211_TX_CTL_NO_ACK has been successfully transmitted without
510 * any errors (like issues specific to the driver/HW).
511 * This flag must not be set for frames that don't request no-ack
512 * behaviour with IEEE80211_TX_CTL_NO_ACK.
508 * 513 *
509 * Note: If you have to add new flags to the enumeration, then don't 514 * Note: If you have to add new flags to the enumeration, then don't
510 * forget to update %IEEE80211_TX_TEMPORARY_FLAGS when necessary. 515 * forget to update %IEEE80211_TX_TEMPORARY_FLAGS when necessary.
@@ -540,6 +545,7 @@ enum mac80211_tx_info_flags {
540 IEEE80211_TX_STATUS_EOSP = BIT(28), 545 IEEE80211_TX_STATUS_EOSP = BIT(28),
541 IEEE80211_TX_CTL_USE_MINRATE = BIT(29), 546 IEEE80211_TX_CTL_USE_MINRATE = BIT(29),
542 IEEE80211_TX_CTL_DONTFRAG = BIT(30), 547 IEEE80211_TX_CTL_DONTFRAG = BIT(30),
548 IEEE80211_TX_STAT_NOACK_TRANSMITTED = BIT(31),
543}; 549};
544 550
545#define IEEE80211_TX_CTL_STBC_SHIFT 23 551#define IEEE80211_TX_CTL_STBC_SHIFT 23