diff mbox

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

Message ID 50C1C7F5.6010808@posedge.com (mailing list archive)
State Not Applicable, archived
Headers show

Commit Message

Chaitanya Dec. 7, 2012, 10:41 a.m. UTC
Zero Len subframe makes sense only when driver supports the reporting
of zero len subframes.(to handle buggy drivers)

Signed-off-by: T Krushna Chaitanya <chaitanyatk@posedge.com>
--- 
 net/mac80211/rx.c |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)





--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff --git a/net/mac80211/rx.c b/net/mac80211/rx.c
index db343fa..654c22f 100644
--- a/net/mac80211/rx.c
+++ b/net/mac80211/rx.c
@@ -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)