mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-20 03:04:01 +08:00
[PATCH] ieee80211: Fix CCMP decryption problem when QoS is enabled
Use the correct STYPE for Qos data. Signed-off-by: Zhu Yi <yi.zhu@intel.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:
parent
f13b83580a
commit
0df7861240
@ -131,7 +131,7 @@ static void ccmp_init_blocks(struct crypto_tfm *tfm,
|
|||||||
a4_included = ((fc & (IEEE80211_FCTL_TODS | IEEE80211_FCTL_FROMDS)) ==
|
a4_included = ((fc & (IEEE80211_FCTL_TODS | IEEE80211_FCTL_FROMDS)) ==
|
||||||
(IEEE80211_FCTL_TODS | IEEE80211_FCTL_FROMDS));
|
(IEEE80211_FCTL_TODS | IEEE80211_FCTL_FROMDS));
|
||||||
qc_included = ((WLAN_FC_GET_TYPE(fc) == IEEE80211_FTYPE_DATA) &&
|
qc_included = ((WLAN_FC_GET_TYPE(fc) == IEEE80211_FTYPE_DATA) &&
|
||||||
(WLAN_FC_GET_STYPE(fc) & 0x08));
|
(WLAN_FC_GET_STYPE(fc) & IEEE80211_STYPE_QOS_DATA));
|
||||||
aad_len = 22;
|
aad_len = 22;
|
||||||
if (a4_included)
|
if (a4_included)
|
||||||
aad_len += 6;
|
aad_len += 6;
|
||||||
|
Loading…
Reference in New Issue
Block a user