Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F167155142
D58854.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
856 B
Referenced Files
None
Subscribers
None
D58854.diff
View Options
diff --git a/sys/net80211/ieee80211_crypto.c b/sys/net80211/ieee80211_crypto.c
--- a/sys/net80211/ieee80211_crypto.c
+++ b/sys/net80211/ieee80211_crypto.c
@@ -674,6 +674,24 @@
struct ieee80211vap *vap = ni->ni_vap;
struct ieee80211_frame *wh;
+ /*
+ * Explicitly check whether we're doing WEP and allow
+ * the use of the default TX key.
+ */
+ if ((ni->ni_authmode == IEEE80211_AUTH_OPEN) &&
+ ((vap->iv_flags & IEEE80211_F_PRIVACY) != 0) &&
+ (vap->iv_def_txkey != IEEE80211_KEYIX_NONE)) {
+ struct ieee80211_key *k;
+ /*
+ * Check to see if the TX key is a WEP cipher key.
+ * Only allow transmit using it here if it's
+ * a WEP key.
+ */
+ k = &vap->iv_nw_keys[vap->iv_def_txkey];
+ if (k->wk_cipher->ic_cipher == IEEE80211_CIPHER_WEP)
+ return (k);
+ }
+
/*
* Multicast traffic always uses the multicast key.
*
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Aug 20, 1:20 PM (14 h, 21 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
36810832
Default Alt Text
D58854.diff (856 B)
Attached To
Mode
D58854: net80211: fix WEP transmit
Attached
Detach File
Event Timeline
Log In to Comment