11 #ifndef IEEE80211_RATE_H
12 #define IEEE80211_RATE_H
14 #include <linux/netdevice.h>
16 #include <linux/types.h>
32 static inline void rate_control_tx_status(
struct ieee80211_local *local,
44 ref->
ops->tx_status(ref->
priv, sband, ista, priv_sta, skb);
48 static inline void rate_control_rate_init(
struct sta_info *sta)
61 ref->
ops->rate_init(ref->
priv, sband, ista, priv_sta);
65 static inline void rate_control_rate_update(
struct ieee80211_local *local,
73 if (ref && ref->
ops->rate_update)
74 ref->
ops->rate_update(ref->
priv, sband, ista,
76 drv_sta_rc_update(local, sta->
sdata, &sta->
sta, changed);
83 return ref->
ops->alloc_sta(ref->
priv, sta, gfp);
86 static inline void rate_control_free_sta(
struct sta_info *sta)
92 ref->
ops->free_sta(ref->
priv, ista, priv_sta);
95 static inline void rate_control_add_sta_debugfs(
struct sta_info *sta)
97 #ifdef CONFIG_MAC80211_DEBUGFS
99 if (ref && sta->debugfs.dir && ref->
ops->add_sta_debugfs)
105 static inline void rate_control_remove_sta_debugfs(
struct sta_info *sta)
107 #ifdef CONFIG_MAC80211_DEBUGFS
109 if (ref && ref->
ops->remove_sta_debugfs)
122 #ifdef CONFIG_MAC80211_RC_PID
135 #ifdef CONFIG_MAC80211_RC_MINSTREL
148 #ifdef CONFIG_MAC80211_RC_MINSTREL_HT