Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F107067058
D42560.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
2 KB
Referenced Files
None
Subscribers
None
D42560.diff
View Options
diff --git a/sys/net80211/ieee80211_proto.c b/sys/net80211/ieee80211_proto.c
--- a/sys/net80211/ieee80211_proto.c
+++ b/sys/net80211/ieee80211_proto.c
@@ -2506,6 +2506,13 @@
nstate = vap->iv_nstate;
arg = vap->iv_nstate_arg;
+ IEEE80211_DPRINTF(vap, IEEE80211_MSG_STATE,
+ "%s:%d: running state update %s -> %s (%d)\n",
+ __func__, __LINE__,
+ ieee80211_state_name[vap->iv_state],
+ ieee80211_state_name[vap->iv_nstate],
+ npending);
+
if (vap->iv_flags_ext & IEEE80211_FEXT_REINIT) {
/*
* We have been requested to drop back to the INIT before
@@ -2673,29 +2680,30 @@
* until this is completed.
*/
IEEE80211_DPRINTF(vap, IEEE80211_MSG_STATE,
- "%s: %s -> %s (%s) transition discarded\n",
- __func__,
+ "%s:%d: %s -> %s (%s) transition discarded\n",
+ __func__, __LINE__,
ieee80211_state_name[vap->iv_state],
ieee80211_state_name[nstate],
ieee80211_state_name[vap->iv_nstate]);
return -1;
} else if (vap->iv_state != vap->iv_nstate) {
-#if 0
/* Warn if the previous state hasn't completed. */
IEEE80211_DPRINTF(vap, IEEE80211_MSG_STATE,
- "%s: pending %s -> %s transition lost\n", __func__,
+ "%s:%d: pending %s -> %s (now to %s) transition lost\n",
+ __func__, __LINE__,
ieee80211_state_name[vap->iv_state],
- ieee80211_state_name[vap->iv_nstate]);
-#else
- /* XXX temporarily enable to identify issues */
- if_printf(vap->iv_ifp,
- "%s: pending %s -> %s transition lost\n",
- __func__, ieee80211_state_name[vap->iv_state],
- ieee80211_state_name[vap->iv_nstate]);
-#endif
+ ieee80211_state_name[vap->iv_nstate],
+ ieee80211_state_name[nstate]);
}
}
+ IEEE80211_DPRINTF(vap, IEEE80211_MSG_STATE,
+ "%s:%d: starting state update %s -> %s (%s)\n",
+ __func__, __LINE__,
+ ieee80211_state_name[vap->iv_state],
+ ieee80211_state_name[vap->iv_nstate],
+ ieee80211_state_name[nstate]);
+
nrunning = nscanning = 0;
/* XXX can track this state instead of calculating */
TAILQ_FOREACH(vp, &ic->ic_vaps, iv_next) {
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Jan 10, 2:31 PM (15 h, 2 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15743373
Default Alt Text
D42560.diff (2 KB)
Attached To
Mode
D42560: net80211: improve logging about state transitions lost
Attached
Detach File
Event Timeline
Log In to Comment