Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F112540191
D49055.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
D49055.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
@@ -242,7 +242,7 @@
rxs = ieee80211_get_rx_params_ptr(m);
- if ((rxs != NULL) && (rxs->c_pktflags & IEEE80211_RX_F_IV_STRIP))
+ if ((rxs != NULL) && (rxs->c_pktflags & IEEE80211_RX_F_IV_STRIP) != 0)
goto finish;
/*
@@ -297,14 +297,15 @@
/*
* XXX TODO: see if MMIC_STRIP also covers CCMP MIC trailer.
+ * Well no as it's a MIC not MMIC but we re-use the same flag for now.
*/
- if (! ((rxs != NULL) && (rxs->c_pktflags & IEEE80211_RX_F_MMIC_STRIP)))
+ if ((rxs == NULL) || (rxs->c_pktflags & IEEE80211_RX_F_MMIC_STRIP) == 0)
m_adj(m, -ccmp.ic_trailer);
/*
* Ok to update rsc now.
*/
- if (! ((rxs != NULL) && (rxs->c_pktflags & IEEE80211_RX_F_IV_STRIP))) {
+ if ((rxs == NULL) || (rxs->c_pktflags & IEEE80211_RX_F_IV_STRIP) == 0) {
/*
* Do not go backwards in the IEEE80211_KEY_NOREPLAY cases
* or in case hardware has checked but frames are arriving
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Mar 20, 2:04 PM (21 h, 7 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
16740437
Default Alt Text
D49055.diff (1 KB)
Attached To
Mode
D49055: net80211: crypto: ccmp: simplify and style(9)
Attached
Detach File
Event Timeline
Log In to Comment