Changeset View
Changeset View
Standalone View
Standalone View
sys/net80211/ieee80211_regdomain.c
Show First 20 Lines • Show All 145 Lines • ▼ Show 20 Lines | ieee80211_add_channel_list_5ghz(chans, IEEE80211_CHAN_MAX, | ||||
bands, cbw_flags); | bands, cbw_flags); | ||||
ieee80211_add_channel_list_5ghz(chans, IEEE80211_CHAN_MAX, | ieee80211_add_channel_list_5ghz(chans, IEEE80211_CHAN_MAX, | ||||
nchans, def_chan_5ghz_band3, nitems(def_chan_5ghz_band3), | nchans, def_chan_5ghz_band3, nitems(def_chan_5ghz_band3), | ||||
bands, cbw_flags); | bands, cbw_flags); | ||||
} | } | ||||
if (isset(bands, IEEE80211_MODE_VHT_5GHZ)) { | if (isset(bands, IEEE80211_MODE_VHT_5GHZ)) { | ||||
cbw_flags |= NET80211_CBW_FLAG_HT40; /* Make sure this is set; or assert? */ | cbw_flags |= NET80211_CBW_FLAG_HT40; /* Make sure this is set; or assert? */ | ||||
cbw_flags |= NET80211_CBW_FLAG_VHT80; | cbw_flags |= NET80211_CBW_FLAG_VHT80; | ||||
if (_IEEE80211_MASKSHIFT(ic->ic_vhtcaps, | if (IEEE80211_VHTCAP_SUPP_CHAN_WIDTH_IS_160MHZ(ic->ic_vhtcaps)) | ||||
IEEE80211_VHTCAP_SUPP_CHAN_WIDTH_MASK) >= 1) | |||||
cbw_flags |= NET80211_CBW_FLAG_VHT160; | cbw_flags |= NET80211_CBW_FLAG_VHT160; | ||||
if (_IEEE80211_MASKSHIFT(ic->ic_vhtcaps, | if (IEEE80211_VHTCAP_SUPP_CHAN_WIDTH_IS_160_80P80MHZ( | ||||
IEEE80211_VHTCAP_SUPP_CHAN_WIDTH_MASK) == 2) | ic->ic_vhtcaps)) | ||||
cbw_flags |= NET80211_CBW_FLAG_VHT80P80; | cbw_flags |= NET80211_CBW_FLAG_VHT80P80; | ||||
ieee80211_add_channel_list_5ghz(chans, IEEE80211_CHAN_MAX, | ieee80211_add_channel_list_5ghz(chans, IEEE80211_CHAN_MAX, | ||||
nchans, def_chan_5ghz_band1, nitems(def_chan_5ghz_band1), | nchans, def_chan_5ghz_band1, nitems(def_chan_5ghz_band1), | ||||
bands, cbw_flags); | bands, cbw_flags); | ||||
bz: I should commit these whitespace changes separately upfront as well. | |||||
ieee80211_add_channel_list_5ghz(chans, IEEE80211_CHAN_MAX, | ieee80211_add_channel_list_5ghz(chans, IEEE80211_CHAN_MAX, | ||||
nchans, def_chan_5ghz_band2, nitems(def_chan_5ghz_band2), | nchans, def_chan_5ghz_band2, nitems(def_chan_5ghz_band2), | ||||
bands, cbw_flags); | bands, cbw_flags); | ||||
ieee80211_add_channel_list_5ghz(chans, IEEE80211_CHAN_MAX, | ieee80211_add_channel_list_5ghz(chans, IEEE80211_CHAN_MAX, | ||||
nchans, def_chan_5ghz_band3, nitems(def_chan_5ghz_band3), | nchans, def_chan_5ghz_band3, nitems(def_chan_5ghz_band3), | ||||
bands, cbw_flags); | bands, cbw_flags); | ||||
} | } | ||||
if (rd != NULL) | if (rd != NULL) | ||||
▲ Show 20 Lines • Show All 303 Lines • Show Last 20 Lines |
I should commit these whitespace changes separately upfront as well.