Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F146772688
D55643.id173097.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
D55643.id173097.diff
View Options
diff --git a/sys/net80211/ieee80211_sta.c b/sys/net80211/ieee80211_sta.c
--- a/sys/net80211/ieee80211_sta.c
+++ b/sys/net80211/ieee80211_sta.c
@@ -1011,7 +1011,7 @@
vap->iv_stats.is_rx_bad_auth++;
return;
}
- if (status != 0) {
+ if (status != IEEE80211_STATUS_SUCCESS) {
IEEE80211_NOTE(vap, IEEE80211_MSG_DEBUG | IEEE80211_MSG_AUTH,
ni, "open auth failed (reason %d)", status);
vap->iv_stats.is_rx_auth_fail++;
@@ -1100,7 +1100,7 @@
IEEE80211_FREE(ni->ni_challenge, M_80211_NODE);
ni->ni_challenge = NULL;
}
- if (status != 0) {
+ if (status != IEEE80211_STATUS_SUCCESS) {
IEEE80211_NOTE_FRAME(vap,
IEEE80211_MSG_DEBUG | IEEE80211_MSG_AUTH, wh,
"shared key auth failed (reason %d)", status);
@@ -1766,7 +1766,12 @@
frm += 2;
status = le16toh(*(uint16_t *)frm);
frm += 2;
- if (status != 0) {
+ if (status != IEEE80211_STATUS_SUCCESS) {
+ /*
+ * See ieee80211_tx_mgt_cb() for state handling. This
+ * essentially provokes a timeout bouncing us back to
+ * State 1 instead of dealing with it properly.
+ */
IEEE80211_NOTE_MAC(vap, IEEE80211_MSG_ASSOC,
wh->i_addr2, "%sassoc failed (reason %d)",
ISREASSOC(subtype) ? "re" : "", status);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Mar 6, 11:39 AM (18 h, 17 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
29277855
Default Alt Text
D55643.id173097.diff (1 KB)
Attached To
Mode
D55643: net80211: sta: use IEEE80211_STATUS_SUCCESS instead of magic 0
Attached
Detach File
Event Timeline
Log In to Comment