Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F133170685
D49030.id151102.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D49030.id151102.diff
View Options
diff --git a/sys/net80211/ieee80211_crypto_ccmp.c b/sys/net80211/ieee80211_crypto_ccmp.c
--- a/sys/net80211/ieee80211_crypto_ccmp.c
+++ b/sys/net80211/ieee80211_crypto_ccmp.c
@@ -602,6 +602,7 @@
static int
ccmp_decrypt(struct ieee80211_key *key, u_int64_t pn, struct mbuf *m, int hdrlen)
{
+ const struct ieee80211_rx_stats *rxs;
struct ccmp_ctx *ctx = key->wk_private;
struct ieee80211vap *vap = ctx->cc_vap;
struct ieee80211_frame *wh;
@@ -613,6 +614,10 @@
uint8_t *pos;
u_int space;
+ rxs = ieee80211_get_rx_params_ptr(m);
+ if ((rxs != NULL) && (rxs->c_pktflags & IEEE80211_RX_F_DECRYPTED) != 0)
+ return (1);
+
ctx->cc_vap->iv_stats.is_crypto_ccmp++;
wh = mtod(m, struct ieee80211_frame *);
@@ -675,6 +680,14 @@
space = m->m_len;
}
}
+
+ /*
+ * If the MIC (we use MMIC despite not being Micheal) was stripped
+ * by HW/driver we are done.
+ */
+ if ((rxs != NULL) && (rxs->c_pktflags & IEEE80211_RX_F_MMIC_STRIP) != 0)
+ return (1);
+
if (memcmp(mic, a, ccmp.ic_trailer) != 0) {
IEEE80211_NOTE_MAC(vap, IEEE80211_MSG_CRYPTO, wh->i_addr2,
"%s", "AES-CCM decrypt failed; MIC mismatch");
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Oct 24, 3:25 PM (1 h, 9 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
24095542
Default Alt Text
D49030.id151102.diff (1 KB)
Attached To
Mode
D49030: net80211: crypto: ccmp: fix more hardware offload bits
Attached
Detach File
Event Timeline
Log In to Comment