diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/net/mac80211.h | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/include/net/mac80211.h b/include/net/mac80211.h index 559422fc0943..1e8db8ae6159 100644 --- a/include/net/mac80211.h +++ b/include/net/mac80211.h | |||
@@ -1962,4 +1962,34 @@ rate_lowest_index(struct ieee80211_supported_band *sband, | |||
1962 | int ieee80211_rate_control_register(struct rate_control_ops *ops); | 1962 | int ieee80211_rate_control_register(struct rate_control_ops *ops); |
1963 | void ieee80211_rate_control_unregister(struct rate_control_ops *ops); | 1963 | void ieee80211_rate_control_unregister(struct rate_control_ops *ops); |
1964 | 1964 | ||
1965 | static inline bool | ||
1966 | conf_is_ht20(struct ieee80211_conf *conf) | ||
1967 | { | ||
1968 | return conf->ht.channel_type == NL80211_CHAN_HT20; | ||
1969 | } | ||
1970 | |||
1971 | static inline bool | ||
1972 | conf_is_ht40_minus(struct ieee80211_conf *conf) | ||
1973 | { | ||
1974 | return conf->ht.channel_type == NL80211_CHAN_HT40MINUS; | ||
1975 | } | ||
1976 | |||
1977 | static inline bool | ||
1978 | conf_is_ht40_plus(struct ieee80211_conf *conf) | ||
1979 | { | ||
1980 | return conf->ht.channel_type == NL80211_CHAN_HT40PLUS; | ||
1981 | } | ||
1982 | |||
1983 | static inline bool | ||
1984 | conf_is_ht40(struct ieee80211_conf *conf) | ||
1985 | { | ||
1986 | return conf_is_ht40_minus(conf) || conf_is_ht40_plus(conf); | ||
1987 | } | ||
1988 | |||
1989 | static inline bool | ||
1990 | conf_is_ht(struct ieee80211_conf *conf) | ||
1991 | { | ||
1992 | return conf->ht.channel_type != NL80211_CHAN_NO_HT; | ||
1993 | } | ||
1994 | |||
1965 | #endif /* MAC80211_H */ | 1995 | #endif /* MAC80211_H */ |