summaryrefslogtreecommitdiffstats
path: root/sys/net80211/ieee80211_proto.c
diff options
context:
space:
mode:
authorthompsa <thompsa@FreeBSD.org>2009-05-03 18:29:04 +0000
committerthompsa <thompsa@FreeBSD.org>2009-05-03 18:29:04 +0000
commit3222e9c2cde262a2a5a46f45f0a1e06623f69433 (patch)
tree4c7575363c7145e739b610aaa08f35ef6a0a4d77 /sys/net80211/ieee80211_proto.c
parent98565a1214eb4106f0a1b76ff6696b9980497195 (diff)
downloadFreeBSD-src-3222e9c2cde262a2a5a46f45f0a1e06623f69433.zip
FreeBSD-src-3222e9c2cde262a2a5a46f45f0a1e06623f69433.tar.gz
Relax the condition for printing the lost state transition message. The new
state will be set before the EXT_STATEWAIT flag is cleared and its ok to transition again at that point.
Diffstat (limited to 'sys/net80211/ieee80211_proto.c')
-rw-r--r--sys/net80211/ieee80211_proto.c22
1 files changed, 12 insertions, 10 deletions
diff --git a/sys/net80211/ieee80211_proto.c b/sys/net80211/ieee80211_proto.c
index 98888d8..157dc5b 100644
--- a/sys/net80211/ieee80211_proto.c
+++ b/sys/net80211/ieee80211_proto.c
@@ -1722,19 +1722,21 @@ ieee80211_new_state_locked(struct ieee80211vap *vap,
* state changes until this is completed.
*/
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__,
- ieee80211_state_name[vap->iv_state],
- ieee80211_state_name[vap->iv_nstate]);
+ /* Warn if the previous state hasn't completed. */
+ IEEE80211_DPRINTF(vap, IEEE80211_MSG_STATE,
+ "%s: pending %s -> %s transition lost\n", __func__,
+ 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]);
+ /* 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
+ }
}
nrunning = nscanning = 0;
OpenPOWER on IntegriCloud