Skip to content

Commit

Permalink
do don't auto connect open wifi again.
Browse files Browse the repository at this point in the history
  • Loading branch information
zxystd committed Aug 21, 2020
1 parent 5103657 commit c859319
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion itl80211/openbsd/net80211/ieee80211_node.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 ? '!' : ' '));
Expand Down
3 changes: 3 additions & 0 deletions itlwm/itlwm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
3 changes: 3 additions & 0 deletions itlwmx/itlwmx.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit c859319

Please sign in to comment.