diff --git a/sys/net80211/ieee80211_node.c b/sys/net80211/ieee80211_node.c index 3ee46df2a570..43f90f860a2d 100644 --- a/sys/net80211/ieee80211_node.c +++ b/sys/net80211/ieee80211_node.c @@ -851,6 +851,7 @@ ieee80211_sta_join1(struct ieee80211_node *selbs) * Check if old+new node have the same address in which * case we can reassociate when operating in sta mode. */ + /* XXX We'll not be in RUN anymore as iv_state got updated already? */ canreassoc = (obss != NULL && vap->iv_state == IEEE80211_S_RUN && IEEE80211_ADDR_EQ(obss->ni_macaddr, selbs->ni_macaddr)); @@ -896,8 +897,9 @@ ieee80211_sta_join1(struct ieee80211_node *selbs) * as a station. */ IEEE80211_DPRINTF(vap, IEEE80211_MSG_AUTH, - "%s %p<%s> -> AUTH, FC0_SUBTYPE_DEAUTH\n", - __func__, selbs, ether_sprintf(selbs->ni_macaddr)); + "%s %p<%s> %s -> AUTH, FC0_SUBTYPE_DEAUTH\n", + __func__, selbs, ether_sprintf(selbs->ni_macaddr), + ieee80211_state_name[vap->iv_state]); ieee80211_new_state(vap, IEEE80211_S_AUTH, IEEE80211_FC0_SUBTYPE_DEAUTH); }