MCPcopy Create free account
hub / github.com/F-Stack/f-stack / ieee80211_reset_bss

Function ieee80211_reset_bss

freebsd/net80211/ieee80211_node.c:443–463  ·  view source on GitHub ↗

* Reset bss state on transition to the INIT state. * Clear any stations from the table (they have been * deauth'd) and reset the bss node (clears key, rate * etc. state). */

Source from the content-addressed store, hash-verified

441 * etc. state).
442 */
443void
444ieee80211_reset_bss(struct ieee80211vap *vap)
445{
446 struct ieee80211com *ic = vap->iv_ic;
447 struct ieee80211_node *ni, *obss;
448
449 ieee80211_node_table_reset(&ic->ic_sta, vap);
450 /* XXX multi-bss: wrong */
451 ieee80211_vap_reset_erp(vap);
452
453 ni = ieee80211_alloc_node(&ic->ic_sta, vap, vap->iv_myaddr);
454 KASSERT(ni != NULL, ("unable to setup initial BSS node"));
455 obss = vap->iv_bss;
456 vap->iv_bss = ieee80211_ref_node(ni);
457 if (obss != NULL) {
458 copy_bss(ni, obss);
459 ni->ni_intval = ic->ic_bintval;
460 ieee80211_free_node(obss);
461 } else
462 IEEE80211_ADDR_COPY(ni->ni_bssid, vap->iv_myaddr);
463}
464
465static int
466match_ssid(const struct ieee80211_node *ni,

Callers 6

sta_newstateFunction · 0.85
wds_newstateFunction · 0.85
adhoc_newstateFunction · 0.85
hostap_newstateFunction · 0.85
mesh_newstateFunction · 0.85

Calls 5

ieee80211_vap_reset_erpFunction · 0.85
ieee80211_alloc_nodeFunction · 0.85
ieee80211_ref_nodeFunction · 0.85
copy_bssFunction · 0.85

Tested by

no test coverage detected