From: Amitkumar Karwar Date: Wed, 12 Jan 2011 00:14:24 +0000 (-0800) Subject: ieee80211: correct IEEE80211_ADDBA_PARAM_BUF_SIZE_MASK macro X-Git-Tag: v2.6.36.4~22 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=b2420c31459a69d90a89e1b2e7484bcea930fb35;p=karo-tx-linux.git ieee80211: correct IEEE80211_ADDBA_PARAM_BUF_SIZE_MASK macro commit 8d661f1e462d50bd83de87ee628aaf820ce3c66c upstream. It is defined in include/linux/ieee80211.h. As per IEEE spec. bit6 to bit15 in block ack parameter represents buffer size. So the bitmask should be 0xFFC0. Signed-off-by: Amitkumar Karwar Signed-off-by: Bing Zhao Reviewed-by: Johannes Berg Signed-off-by: John W. Linville Signed-off-by: Greg Kroah-Hartman --- diff --git a/include/linux/ieee80211.h b/include/linux/ieee80211.h index 97b2eae6a22c..731854ccb840 100644 --- a/include/linux/ieee80211.h +++ b/include/linux/ieee80211.h @@ -959,7 +959,7 @@ struct ieee80211_ht_info { /* block-ack parameters */ #define IEEE80211_ADDBA_PARAM_POLICY_MASK 0x0002 #define IEEE80211_ADDBA_PARAM_TID_MASK 0x003C -#define IEEE80211_ADDBA_PARAM_BUF_SIZE_MASK 0xFFA0 +#define IEEE80211_ADDBA_PARAM_BUF_SIZE_MASK 0xFFC0 #define IEEE80211_DELBA_PARAM_TID_MASK 0xF000 #define IEEE80211_DELBA_PARAM_INITIATOR_MASK 0x0800