Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F152928559
D3760.id9007.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1004 B
Referenced Files
None
Subscribers
None
D3760.id9007.diff
View Options
Index: sys/dev/wpi/if_wpi.c
===================================================================
--- sys/dev/wpi/if_wpi.c
+++ sys/dev/wpi/if_wpi.c
@@ -2731,6 +2731,7 @@
wh = mtod(m, struct ieee80211_frame *);
type = wh->i_fc[0] & IEEE80211_FC0_TYPE_MASK;
ismcast = IEEE80211_IS_MULTICAST(wh->i_addr1);
+ swcrypt = 1;
/* Select EDCA Access Category and TX ring for this frame. */
if (IEEE80211_QOS_HAS_SEQ(wh)) {
@@ -2844,7 +2845,7 @@
tx->id = wn->id;
}
- if (k != NULL && !swcrypt) {
+ if (!swcrypt) {
switch (k->wk_cipher->ic_cipher) {
case IEEE80211_CIPHER_AES_CCM:
tx->security = WPI_CIPHER_CCMP;
@@ -2894,6 +2895,7 @@
wh = mtod(m, struct ieee80211_frame *);
type = wh->i_fc[0] & IEEE80211_FC0_TYPE_MASK;
+ swcrypt = 1;
ac = params->ibp_pri & 3;
@@ -2952,7 +2954,7 @@
tx->timeout = htole16(2);
}
- if (k != NULL && !swcrypt) {
+ if (!swcrypt) {
switch (k->wk_cipher->ic_cipher) {
case IEEE80211_CIPHER_AES_CCM:
tx->security = WPI_CIPHER_CCMP;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Apr 19, 3:25 AM (13 h, 14 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
31718844
Default Alt Text
D3760.id9007.diff (1004 B)
Attached To
Mode
D3760: wpi(4): fix 'maybe uninitialized' warnings
Attached
Detach File
Event Timeline
Log In to Comment