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

Function getvhtadjustflags

freebsd/net80211/ieee80211_node.c:725–750  ·  view source on GitHub ↗

* Calculate VHT channel promotion flags for all vaps. * This assumes ni_chan have been setup for each vap. */

Source from the content-addressed store, hash-verified

723 * This assumes ni_chan have been setup for each vap.
724 */
725static int
726getvhtadjustflags(struct ieee80211com *ic)
727{
728 struct ieee80211vap *vap;
729 int flags;
730
731 flags = 0;
732 /* XXX locking */
733 TAILQ_FOREACH(vap, &ic->ic_vaps, iv_next) {
734 if (vap->iv_state < IEEE80211_S_RUN)
735 continue;
736 switch (vap->iv_opmode) {
737 case IEEE80211_M_WDS:
738 case IEEE80211_M_STA:
739 case IEEE80211_M_AHDEMO:
740 case IEEE80211_M_HOSTAP:
741 case IEEE80211_M_IBSS:
742 case IEEE80211_M_MBSS:
743 flags |= ieee80211_vhtchanflags(vap->iv_bss->ni_chan);
744 break;
745 default:
746 break;
747 }
748 }
749 return flags;
750}
751
752/*
753 * Check if the current channel needs to change based on whether

Callers 2

ieee80211_sync_curchanFunction · 0.85
ieee80211_setupcurchanFunction · 0.85

Calls 1

ieee80211_vhtchanflagsFunction · 0.85

Tested by

no test coverage detected