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

Function demote11b

freebsd/net80211/ieee80211_scan_sta.c:792–806  ·  view source on GitHub ↗

* Demote any supplied 11g channel to 11b. There should * always be an 11b channel but we check anyway... */

Source from the content-addressed store, hash-verified

790 * always be an 11b channel but we check anyway...
791 */
792static struct ieee80211_channel *
793demote11b(struct ieee80211vap *vap, struct ieee80211_channel *chan)
794{
795 struct ieee80211_channel *c;
796
797 if (IEEE80211_IS_CHAN_ANYG(chan) &&
798 vap->iv_des_mode == IEEE80211_MODE_AUTO) {
799 c = ieee80211_find_channel(vap->iv_ic, chan->ic_freq,
800 (chan->ic_flags &~ (IEEE80211_CHAN_PUREG | IEEE80211_CHAN_G)) |
801 IEEE80211_CHAN_B);
802 if (c != NULL)
803 chan = c;
804 }
805 return chan;
806}
807
808static int
809maxrate(const struct ieee80211_scan_entry *se)

Callers 5

match_bssFunction · 0.85
sta_pick_bssFunction · 0.85
sta_roam_checkFunction · 0.85
adhoc_pick_bssFunction · 0.85
mesh_pick_bssFunction · 0.85

Calls 1

ieee80211_find_channelFunction · 0.85

Tested by

no test coverage detected