openbsd_wlan: Print state changes if bootverbose is enabled.
This will make debugging in nightly syslogs a bit easier when things do not work as expected.
This commit is contained in:
@@ -1062,7 +1062,11 @@ ieee80211_newstate(struct ieee80211com *ic, enum ieee80211_state nstate,
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
ostate = ic->ic_state;
|
ostate = ic->ic_state;
|
||||||
|
#ifdef __FreeBSD_version
|
||||||
|
if (bootverbose || ifp->if_flags & IFF_DEBUG)
|
||||||
|
#else
|
||||||
if (ifp->if_flags & IFF_DEBUG)
|
if (ifp->if_flags & IFF_DEBUG)
|
||||||
|
#endif
|
||||||
printf("%s: %s -> %s\n", ifp->if_xname,
|
printf("%s: %s -> %s\n", ifp->if_xname,
|
||||||
ieee80211_state_name[ostate], ieee80211_state_name[nstate]);
|
ieee80211_state_name[ostate], ieee80211_state_name[nstate]);
|
||||||
ic->ic_state = nstate; /* state transition */
|
ic->ic_state = nstate; /* state transition */
|
||||||
|
|||||||
Reference in New Issue
Block a user