Changeset View
Changeset View
Standalone View
Standalone View
head/sys/net80211/ieee80211_var.h
Show First 20 Lines • Show All 718 Lines • ▼ Show 20 Lines | #define IEEE80211_FHT_BITS \ | ||||
"\27AMSDU_TX\30AMSDU_RX\31USEHT40\32PUREN\33SHORTGI20\34SHORTGI40" \ | "\27AMSDU_TX\30AMSDU_RX\31USEHT40\32PUREN\33SHORTGI20\34SHORTGI40" \ | ||||
"\35HTCOMPAT\36RIFS\37STBC_TX\40STBC_RX" | "\35HTCOMPAT\36RIFS\37STBC_TX\40STBC_RX" | ||||
#define IEEE80211_FVEN_BITS "\20" | #define IEEE80211_FVEN_BITS "\20" | ||||
#define IEEE80211_FVHT_VHT 0x000000001 /* CONF: VHT supported */ | #define IEEE80211_FVHT_VHT 0x000000001 /* CONF: VHT supported */ | ||||
#define IEEE80211_FVHT_USEVHT40 0x000000002 /* CONF: Use VHT40 */ | #define IEEE80211_FVHT_USEVHT40 0x000000002 /* CONF: Use VHT40 */ | ||||
#define IEEE80211_FVHT_USEVHT80 0x000000004 /* CONF: Use VHT80 */ | #define IEEE80211_FVHT_USEVHT80 0x000000004 /* CONF: Use VHT80 */ | ||||
#define IEEE80211_FVHT_USEVHT80P80 0x000000008 /* CONF: Use VHT 80+80 */ | #define IEEE80211_FVHT_USEVHT160 0x000000008 /* CONF: Use VHT160 */ | ||||
#define IEEE80211_FVHT_USEVHT160 0x000000010 /* CONF: Use VHT160 */ | #define IEEE80211_FVHT_USEVHT80P80 0x000000010 /* CONF: Use VHT 80+80 */ | ||||
#define IEEE80211_FVHT_MASK \ | |||||
(IEEE80211_FVHT_VHT | IEEE80211_FVHT_USEVHT40 | \ | |||||
IEEE80211_FVHT_USEVHT80 | IEEE80211_FVHT_USEVHT160 | \ | |||||
IEEE80211_FVHT_USEVHT80P80) | |||||
#define IEEE80211_VFHT_BITS \ | #define IEEE80211_VFHT_BITS \ | ||||
"\20\1VHT\2VHT40\3VHT80\4VHT80P80\5VHT160" | "\20\1VHT\2VHT40\3VHT80\4VHT160\5VHT80P80" | ||||
#define IEEE80211_COM_DETACHED 0x00000001 /* ieee80211_ifdetach called */ | #define IEEE80211_COM_DETACHED 0x00000001 /* ieee80211_ifdetach called */ | ||||
#define IEEE80211_COM_REF_ADD 0x00000002 /* add / remove reference */ | #define IEEE80211_COM_REF_ADD 0x00000002 /* add / remove reference */ | ||||
#define IEEE80211_COM_REF_M 0xfffffffe /* reference counter bits */ | #define IEEE80211_COM_REF_M 0xfffffffe /* reference counter bits */ | ||||
#define IEEE80211_COM_REF_S 1 | #define IEEE80211_COM_REF_S 1 | ||||
#define IEEE80211_COM_REF_MAX (IEEE80211_COM_REF_M >> IEEE80211_COM_REF_S) | #define IEEE80211_COM_REF_MAX (IEEE80211_COM_REF_M >> IEEE80211_COM_REF_S) | ||||
int ic_printf(struct ieee80211com *, const char *, ...) __printflike(2, 3); | int ic_printf(struct ieee80211com *, const char *, ...) __printflike(2, 3); | ||||
▲ Show 20 Lines • Show All 176 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_VHT160(c)) | |||||
return IEEE80211_FVHT_USEVHT160; | |||||
if (IEEE80211_IS_CHAN_VHT80_80(c)) | if (IEEE80211_IS_CHAN_VHT80_80(c)) | ||||
return IEEE80211_FVHT_USEVHT80P80; | return IEEE80211_FVHT_USEVHT80P80; | ||||
if (IEEE80211_IS_CHAN_VHT160(c)) | |||||
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)) | ||||
return IEEE80211_FVHT_VHT; | return IEEE80211_FVHT_VHT; | ||||
return (0); | return (0); | ||||
} | } | ||||
▲ Show 20 Lines • Show All 153 Lines • Show Last 20 Lines |