diff options
Diffstat (limited to 'include/net')
-rw-r--r-- | include/net/mac80211.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/include/net/mac80211.h b/include/net/mac80211.h index ce7cb1b5d453..d98fac54577b 100644 --- a/include/net/mac80211.h +++ b/include/net/mac80211.h | |||
@@ -2110,6 +2110,17 @@ rate_lowest_index(struct ieee80211_supported_band *sband, | |||
2110 | return 0; | 2110 | return 0; |
2111 | } | 2111 | } |
2112 | 2112 | ||
2113 | static inline | ||
2114 | bool rate_usable_index_exists(struct ieee80211_supported_band *sband, | ||
2115 | struct ieee80211_sta *sta) | ||
2116 | { | ||
2117 | unsigned int i; | ||
2118 | |||
2119 | for (i = 0; i < sband->n_bitrates; i++) | ||
2120 | if (rate_supported(sta, sband->band, i)) | ||
2121 | return true; | ||
2122 | return false; | ||
2123 | } | ||
2113 | 2124 | ||
2114 | int ieee80211_rate_control_register(struct rate_control_ops *ops); | 2125 | int ieee80211_rate_control_register(struct rate_control_ops *ops); |
2115 | void ieee80211_rate_control_unregister(struct rate_control_ops *ops); | 2126 | void ieee80211_rate_control_unregister(struct rate_control_ops *ops); |