diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/net/mac80211.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/include/net/mac80211.h b/include/net/mac80211.h index d98fac54577b..a861259c3050 100644 --- a/include/net/mac80211.h +++ b/include/net/mac80211.h | |||
@@ -2094,6 +2094,29 @@ static inline int rate_supported(struct ieee80211_sta *sta, | |||
2094 | return (sta == NULL || sta->supp_rates[band] & BIT(index)); | 2094 | return (sta == NULL || sta->supp_rates[band] & BIT(index)); |
2095 | } | 2095 | } |
2096 | 2096 | ||
2097 | /** | ||
2098 | * rate_control_send_low - helper for drivers for management/no-ack frames | ||
2099 | * | ||
2100 | * Rate control algorithms that agree to use the lowest rate to | ||
2101 | * send management frames and NO_ACK data with the respective hw | ||
2102 | * retries should use this in the beginning of their mac80211 get_rate | ||
2103 | * callback. If true is returned the rate control can simply return. | ||
2104 | * If false is returned we guarantee that sta and sta and priv_sta is | ||
2105 | * not null. | ||
2106 | * | ||
2107 | * Rate control algorithms wishing to do more intelligent selection of | ||
2108 | * rate for multicast/broadcast frames may choose to not use this. | ||
2109 | * | ||
2110 | * @sta: &struct ieee80211_sta pointer to the target destination. Note | ||
2111 | * that this may be null. | ||
2112 | * @priv_sta: private rate control structure. This may be null. | ||
2113 | * @txrc: rate control information we sholud populate for mac80211. | ||
2114 | */ | ||
2115 | bool rate_control_send_low(struct ieee80211_sta *sta, | ||
2116 | void *priv_sta, | ||
2117 | struct ieee80211_tx_rate_control *txrc); | ||
2118 | |||
2119 | |||
2097 | static inline s8 | 2120 | static inline s8 |
2098 | rate_lowest_index(struct ieee80211_supported_band *sband, | 2121 | rate_lowest_index(struct ieee80211_supported_band *sband, |
2099 | struct ieee80211_sta *sta) | 2122 | struct ieee80211_sta *sta) |