Loading drivers/net/wireless/iwlegacy/commands.h +0 −8 Original line number Diff line number Diff line Loading @@ -1347,14 +1347,6 @@ struct il_rx_mpdu_res_start { #define TX_CMD_SEC_SHIFT 6 #define TX_CMD_SEC_KEY128 0x08 /* * security overhead sizes */ #define WEP_IV_LEN 4 #define WEP_ICV_LEN 4 #define CCMP_MIC_LEN 8 #define TKIP_ICV_LEN 4 /* * C_TX = 0x1c (command) */ Loading drivers/net/wireless/iwlwifi/dvm/commands.h +0 −8 Original line number Diff line number Diff line Loading @@ -1224,14 +1224,6 @@ struct iwl_rx_mpdu_res_start { #define TX_CMD_SEC_SHIFT 6 #define TX_CMD_SEC_KEY128 0x08 /* * security overhead sizes */ #define WEP_IV_LEN 4 #define WEP_ICV_LEN 4 #define CCMP_MIC_LEN 8 #define TKIP_ICV_LEN 4 /* * REPLY_TX = 0x1c (command) */ Loading drivers/net/wireless/iwlwifi/pcie/tx.c +3 −3 Original line number Diff line number Diff line Loading @@ -224,13 +224,13 @@ static void iwl_pcie_txq_update_byte_cnt_tbl(struct iwl_trans *trans, switch (sec_ctl & TX_CMD_SEC_MSK) { case TX_CMD_SEC_CCM: len += CCMP_MIC_LEN; len += IEEE80211_CCMP_MIC_LEN; break; case TX_CMD_SEC_TKIP: len += TKIP_ICV_LEN; len += IEEE80211_TKIP_ICV_LEN; break; case TX_CMD_SEC_WEP: len += WEP_IV_LEN + WEP_ICV_LEN; len += IEEE80211_WEP_IV_LEN + IEEE80211_WEP_ICV_LEN; break; } Loading include/linux/ieee80211.h +9 −0 Original line number Diff line number Diff line Loading @@ -1829,6 +1829,15 @@ enum ieee80211_key_len { WLAN_KEY_LEN_AES_CMAC = 16, }; #define IEEE80211_WEP_IV_LEN 4 #define IEEE80211_WEP_ICV_LEN 4 #define IEEE80211_CCMP_HDR_LEN 8 #define IEEE80211_CCMP_MIC_LEN 8 #define IEEE80211_CCMP_PN_LEN 6 #define IEEE80211_TKIP_IV_LEN 8 #define IEEE80211_TKIP_ICV_LEN 4 #define IEEE80211_CMAC_PN_LEN 6 /* Public action codes */ enum ieee80211_pub_actioncode { WLAN_PUB_ACTION_EXT_CHANSW_ANN = 4, Loading net/mac80211/aes_ccm.c +3 −3 Original line number Diff line number Diff line Loading @@ -85,7 +85,7 @@ void ieee80211_aes_ccm_encrypt(struct crypto_cipher *tfm, u8 *scratch, *cpos++ = *pos++ ^ e[i]; } for (i = 0; i < CCMP_MIC_LEN; i++) for (i = 0; i < IEEE80211_CCMP_MIC_LEN; i++) mic[i] = b[i] ^ s_0[i]; } Loading Loading @@ -123,7 +123,7 @@ int ieee80211_aes_ccm_decrypt(struct crypto_cipher *tfm, u8 *scratch, crypto_cipher_encrypt_one(tfm, a, a); } for (i = 0; i < CCMP_MIC_LEN; i++) { for (i = 0; i < IEEE80211_CCMP_MIC_LEN; i++) { if ((mic[i] ^ s_0[i]) != a[i]) return -1; } Loading @@ -138,7 +138,7 @@ struct crypto_cipher *ieee80211_aes_key_setup_encrypt(const u8 key[]) tfm = crypto_alloc_cipher("aes", 0, CRYPTO_ALG_ASYNC); if (!IS_ERR(tfm)) crypto_cipher_setkey(tfm, key, ALG_CCMP_KEY_LEN); crypto_cipher_setkey(tfm, key, WLAN_KEY_LEN_CCMP); return tfm; } Loading Loading
drivers/net/wireless/iwlegacy/commands.h +0 −8 Original line number Diff line number Diff line Loading @@ -1347,14 +1347,6 @@ struct il_rx_mpdu_res_start { #define TX_CMD_SEC_SHIFT 6 #define TX_CMD_SEC_KEY128 0x08 /* * security overhead sizes */ #define WEP_IV_LEN 4 #define WEP_ICV_LEN 4 #define CCMP_MIC_LEN 8 #define TKIP_ICV_LEN 4 /* * C_TX = 0x1c (command) */ Loading
drivers/net/wireless/iwlwifi/dvm/commands.h +0 −8 Original line number Diff line number Diff line Loading @@ -1224,14 +1224,6 @@ struct iwl_rx_mpdu_res_start { #define TX_CMD_SEC_SHIFT 6 #define TX_CMD_SEC_KEY128 0x08 /* * security overhead sizes */ #define WEP_IV_LEN 4 #define WEP_ICV_LEN 4 #define CCMP_MIC_LEN 8 #define TKIP_ICV_LEN 4 /* * REPLY_TX = 0x1c (command) */ Loading
drivers/net/wireless/iwlwifi/pcie/tx.c +3 −3 Original line number Diff line number Diff line Loading @@ -224,13 +224,13 @@ static void iwl_pcie_txq_update_byte_cnt_tbl(struct iwl_trans *trans, switch (sec_ctl & TX_CMD_SEC_MSK) { case TX_CMD_SEC_CCM: len += CCMP_MIC_LEN; len += IEEE80211_CCMP_MIC_LEN; break; case TX_CMD_SEC_TKIP: len += TKIP_ICV_LEN; len += IEEE80211_TKIP_ICV_LEN; break; case TX_CMD_SEC_WEP: len += WEP_IV_LEN + WEP_ICV_LEN; len += IEEE80211_WEP_IV_LEN + IEEE80211_WEP_ICV_LEN; break; } Loading
include/linux/ieee80211.h +9 −0 Original line number Diff line number Diff line Loading @@ -1829,6 +1829,15 @@ enum ieee80211_key_len { WLAN_KEY_LEN_AES_CMAC = 16, }; #define IEEE80211_WEP_IV_LEN 4 #define IEEE80211_WEP_ICV_LEN 4 #define IEEE80211_CCMP_HDR_LEN 8 #define IEEE80211_CCMP_MIC_LEN 8 #define IEEE80211_CCMP_PN_LEN 6 #define IEEE80211_TKIP_IV_LEN 8 #define IEEE80211_TKIP_ICV_LEN 4 #define IEEE80211_CMAC_PN_LEN 6 /* Public action codes */ enum ieee80211_pub_actioncode { WLAN_PUB_ACTION_EXT_CHANSW_ANN = 4, Loading
net/mac80211/aes_ccm.c +3 −3 Original line number Diff line number Diff line Loading @@ -85,7 +85,7 @@ void ieee80211_aes_ccm_encrypt(struct crypto_cipher *tfm, u8 *scratch, *cpos++ = *pos++ ^ e[i]; } for (i = 0; i < CCMP_MIC_LEN; i++) for (i = 0; i < IEEE80211_CCMP_MIC_LEN; i++) mic[i] = b[i] ^ s_0[i]; } Loading Loading @@ -123,7 +123,7 @@ int ieee80211_aes_ccm_decrypt(struct crypto_cipher *tfm, u8 *scratch, crypto_cipher_encrypt_one(tfm, a, a); } for (i = 0; i < CCMP_MIC_LEN; i++) { for (i = 0; i < IEEE80211_CCMP_MIC_LEN; i++) { if ((mic[i] ^ s_0[i]) != a[i]) return -1; } Loading @@ -138,7 +138,7 @@ struct crypto_cipher *ieee80211_aes_key_setup_encrypt(const u8 key[]) tfm = crypto_alloc_cipher("aes", 0, CRYPTO_ALG_ASYNC); if (!IS_ERR(tfm)) crypto_cipher_setkey(tfm, key, ALG_CCMP_KEY_LEN); crypto_cipher_setkey(tfm, key, WLAN_KEY_LEN_CCMP); return tfm; } Loading