Changeset View
Changeset View
Standalone View
Standalone View
head/sys/net80211/ieee80211_var.h
Show First 20 Lines • Show All 918 Lines • ▼ Show 20 Lines | |||||
/* | /* | ||||
* Calculate VHT channel promotion flags for a channel. | * Calculate VHT channel promotion flags for a channel. | ||||
* XXX belongs in ieee80211_vht.h but needs IEEE80211_FVHT_* | * XXX belongs in ieee80211_vht.h but needs IEEE80211_FVHT_* | ||||
*/ | */ | ||||
static __inline int | static __inline int | ||||
ieee80211_vhtchanflags(const struct ieee80211_channel *c) | ieee80211_vhtchanflags(const struct ieee80211_channel *c) | ||||
{ | { | ||||
if (IEEE80211_IS_CHAN_VHT80_80(c)) | if (IEEE80211_IS_CHAN_VHT80P80(c)) | ||||
return IEEE80211_FVHT_USEVHT80P80; | return IEEE80211_FVHT_USEVHT80P80; | ||||
if (IEEE80211_IS_CHAN_VHT160(c)) | if (IEEE80211_IS_CHAN_VHT160(c)) | ||||
return IEEE80211_FVHT_USEVHT160; | return IEEE80211_FVHT_USEVHT160; | ||||
if (IEEE80211_IS_CHAN_VHT80(c)) | if (IEEE80211_IS_CHAN_VHT80(c)) | ||||
return IEEE80211_FVHT_USEVHT80; | return IEEE80211_FVHT_USEVHT80; | ||||
if (IEEE80211_IS_CHAN_VHT40(c)) | if (IEEE80211_IS_CHAN_VHT40(c)) | ||||
return IEEE80211_FVHT_USEVHT40; | return IEEE80211_FVHT_USEVHT40; | ||||
if (IEEE80211_IS_CHAN_VHT(c)) | if (IEEE80211_IS_CHAN_VHT(c)) | ||||
▲ Show 20 Lines • Show All 156 Lines • Show Last 20 Lines |