Skip to contentSkip to conversation

mac80211: Checking for zero Len subframe's only when driver supports the reporting of zero len subframes.

PATCH New Chaitanya 1 participant 1 message Dec 7, 2012 1 message not in the archive mac80211

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): 201212071036.qB7Aas8o001865@chaitanya-desktop

Chaitanya

author
#1 lore raw

PATCH 1/1 mac80211: Checking for zero Len subframe's only when driver supports the reporting of zero len subframes.

Zero Len subframe makes sense only when driver supports the reporting of zero len subframes.(to handle buggy drivers)

---

 net/mac80211/rx.c |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)
net/mac80211/rx.c +4 -3
index db343fa..654c22f 100644
@@ -281,10 +281,11 @@ ieee80211_add_rx_radiotap_header(struct ieee80211_local *local,
 			cpu_to_le32(1 << IEEE80211_RADIOTAP_AMPDU_STATUS);
 		put_unaligned_le32(status->ampdu_reference, pos);
 		pos += 4;
-		if (status->flag & RX_FLAG_AMPDU_REPORT_ZEROLEN)
+		if (status->flag & RX_FLAG_AMPDU_REPORT_ZEROLEN) {
 			flags |= IEEE80211_RADIOTAP_AMPDU_REPORT_ZEROLEN;
-		if (status->flag & RX_FLAG_AMPDU_IS_ZEROLEN)
-			flags |= IEEE80211_RADIOTAP_AMPDU_IS_ZEROLEN;
+			if (status->flag & RX_FLAG_AMPDU_IS_ZEROLEN)
+				flags |= IEEE80211_RADIOTAP_AMPDU_IS_ZEROLEN;
+		}
 		if (status->flag & RX_FLAG_AMPDU_LAST_KNOWN)
 			flags |= IEEE80211_RADIOTAP_AMPDU_LAST_KNOWN;
 		if (status->flag & RX_FLAG_AMPDU_IS_LAST)