diff mbox

[RFC,3/5] ath9k_common: Add HTC field length if order bit is set.

Message ID 1289391829-8577-3-git-send-email-vnatarajan@atheros.com (mailing list archive)
State Not Applicable, archived
Headers show

Commit Message

Vivek Natarajan Nov. 10, 2010, 12:23 p.m. UTC
None
diff mbox

Patch

diff --git a/drivers/net/wireless/ath/ath9k/common.c b/drivers/net/wireless/ath/ath9k/common.c
index 48b07c3..2e56200 100644
--- a/drivers/net/wireless/ath/ath9k/common.c
+++ b/drivers/net/wireless/ath/ath9k/common.c
@@ -36,6 +36,8 @@  int ath9k_cmn_padpos(__le16 frame_control)
 	if (ieee80211_is_data_qos(frame_control)) {
 		padpos += IEEE80211_QOS_CTL_LEN;
 	}
+	if (ieee80211_has_order(frame_control))
+		padpos += IEEE80211_QOS_HTC_LEN;
 
 	return padpos;
 }