From: Maharaja Kennadyrajan <mkenna@codeaurora.org>
To: ath11k@lists.infradead.org
Cc: Maharaja Kennadyrajan <mkenna@codeaurora.org>
Subject: [PATCH] ath11k: Removed MICHAEL_MIC_LEN and use IEEE80211_CCMP_MIC_LEN
Date: Wed, 12 Jun 2019 16:19:08 +0530 [thread overview]
Message-ID: <1560336554-14420-1-git-send-email-mkenna@codeaurora.org> (raw)
Removed the macro MICHAEL_MIC_LEN and use IEEE80211_CCMP_MIC_LEN
in the ath11k_dp_rx_h_undecap_raw() in dp_rx.c.
Signed-off-by: Maharaja Kennadyrajan <mkenna@codeaurora.org>
---
drivers/net/wireless/ath/ath11k/dp_rx.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/drivers/net/wireless/ath/ath11k/dp_rx.c b/drivers/net/wireless/ath/ath11k/dp_rx.c
index 84e4dd147ff0..d68db3f57200 100644
--- a/drivers/net/wireless/ath/ath11k/dp_rx.c
+++ b/drivers/net/wireless/ath/ath11k/dp_rx.c
@@ -1453,8 +1453,6 @@ static void ath11k_dp_rx_h_undecap_nwifi(struct ath11k *ar,
ether_addr_copy(ieee80211_get_SA(hdr), sa);
}
-#define MICHAEL_MIC_LEN 8
-
static void ath11k_dp_rx_h_undecap_raw(struct ath11k *ar, struct sk_buff *msdu,
enum hal_encrypt_type enctype,
struct ieee80211_rx_status *status,
@@ -1501,7 +1499,7 @@ static void ath11k_dp_rx_h_undecap_raw(struct ath11k *ar, struct sk_buff *msdu,
if ((status->flag & RX_FLAG_MMIC_STRIPPED) &&
!ieee80211_has_morefrags(hdr->frame_control) &&
enctype == HAL_ENCRYPT_TYPE_TKIP_MIC)
- skb_trim(msdu, msdu->len - MICHAEL_MIC_LEN);
+ skb_trim(msdu, msdu->len - IEEE80211_CCMP_MIC_LEN);
/* Head */
if (status->flag & RX_FLAG_IV_STRIPPED) {
--
2.21.0
_______________________________________________
ath11k mailing list
ath11k@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/ath11k
next reply other threads:[~2019-06-12 10:47 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-06-12 10:49 Maharaja Kennadyrajan [this message]
2019-06-12 10:49 ` [PATCH] ath11k: Removed unnecessary spaces before 'else if' Maharaja Kennadyrajan
2019-06-17 8:48 ` Kalle Valo
2019-06-12 10:49 ` [PATCH 0/2] Added prefix in dp_tx.c and dp_rx.c files Maharaja Kennadyrajan
2019-06-12 10:49 ` [PATCH 1/2] ath11k: Added 'ath11k' as prefix to the struct dp_htt_wbm_tx_status Maharaja Kennadyrajan
2019-06-17 8:49 ` Kalle Valo
2019-06-12 10:49 ` [PATCH 2/2] ath11k: Added prefix to all the functions in dp_tx.c file Maharaja Kennadyrajan
2019-06-12 10:49 ` [PATCH] ath11k: Avoid unnecessary WARN_ON() in ath11k_dp_tx_complete_msdu() Maharaja Kennadyrajan
2019-06-17 8:50 ` Kalle Valo
2019-06-12 10:49 ` [PATCH] ath11k: Use firmware_request_nowarn to load firmware Maharaja Kennadyrajan
2019-06-17 8:50 ` Kalle Valo
2019-06-17 8:47 ` [PATCH] ath11k: Removed MICHAEL_MIC_LEN and use IEEE80211_CCMP_MIC_LEN Kalle Valo
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1560336554-14420-1-git-send-email-mkenna@codeaurora.org \
--to=mkenna@codeaurora.org \
--cc=ath11k@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.