From: Amitkumar Karwar Date: Wed, 26 Jan 2011 15:25:20 +0000 (+0100) Subject: ieee80211: correct IEEE80211_ADDBA_PARAM_BUF_SIZE_MASK macro X-Git-Tag: 1.9.3~9 X-Git-Url: https://jxself.org/git/?a=commitdiff_plain;h=d05b07b785962e46bf342917e4450732dab3709e;p=carl9170fw.git ieee80211: correct IEEE80211_ADDBA_PARAM_BUF_SIZE_MASK macro 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 Cc: stable@kernel.org Reviewed-by: Johannes Berg Signed-off-by: John W. Linville Signed-off-by: Christian Lamparter --- diff --git a/include/linux/ieee80211.h b/include/linux/ieee80211.h index e60b271..4fd6532 100644 --- a/include/linux/ieee80211.h +++ b/include/linux/ieee80211.h @@ -989,7 +989,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