aboutsummaryrefslogtreecommitdiffstats
path: root/include/net
diff options
context:
space:
mode:
Diffstat (limited to 'include/net')
-rw-r--r--include/net/mac80211.h11
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
2113static inline
2114bool 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
2114int ieee80211_rate_control_register(struct rate_control_ops *ops); 2125int ieee80211_rate_control_register(struct rate_control_ops *ops);
2115void ieee80211_rate_control_unregister(struct rate_control_ops *ops); 2126void ieee80211_rate_control_unregister(struct rate_control_ops *ops);