diff --git a/itl80211/openbsd/net80211/ieee80211_node.c b/itl80211/openbsd/net80211/ieee80211_node.c index b9cddba5b..defee16e3 100644 --- a/itl80211/openbsd/net80211/ieee80211_node.c +++ b/itl80211/openbsd/net80211/ieee80211_node.c @@ -1127,7 +1127,7 @@ ieee80211_match_bss(struct ieee80211com *ic, struct ieee80211_node *ni, fail |= IEEE80211_NODE_ASSOCFAIL_WPA_PROTO; } - if (ic->ic_if.if_flags & IFF_DEBUG) { + if (ic->ic_if.if_flags & IFF_DEBUG && ieee80211_debug) { DPRINTF(("%s: %c %s%c", ic->ic_if.if_xname, fail ? '-' : '+', ether_sprintf(ni->ni_bssid), fail & IEEE80211_NODE_ASSOCFAIL_BSSID ? '!' : ' ')); diff --git a/itlwm/itlwm.cpp b/itlwm/itlwm.cpp index fa7c4fb4b..90c1e4d9c 100644 --- a/itlwm/itlwm.cpp +++ b/itlwm/itlwm.cpp @@ -370,6 +370,9 @@ bool itlwm::start(IOService *provider) } iterator->release(); } + if (TAILQ_EMPTY(&com.sc_ic.ic_ess)) { + com.sc_ic.ic_flags |= IEEE80211_F_AUTO_JOIN; + } registerService(); fNetIf->registerService(); return true; diff --git a/itlwmx/itlwmx.cpp b/itlwmx/itlwmx.cpp index 79cd67b66..e87f550bf 100644 --- a/itlwmx/itlwmx.cpp +++ b/itlwmx/itlwmx.cpp @@ -394,6 +394,9 @@ bool itlwmx::start(IOService *provider) } iterator->release(); } + if (TAILQ_EMPTY(&com.sc_ic.ic_ess)) { + com.sc_ic.ic_flags |= IEEE80211_F_AUTO_JOIN; + } registerService(); fNetIf->registerService(); return true;