]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - net/mac80211/rate.h
Merge branch 'for-3.5' of git://linux-nfs.org/~bfields/linux
[karo-tx-linux.git] / net / mac80211 / rate.h
index fbb1efdc4d04152237648c0faf48a887a4eab65d..6e4fd32c66171345c399f9eb765809d974068e34 100644 (file)
@@ -17,6 +17,7 @@
 #include <net/mac80211.h>
 #include "ieee80211_i.h"
 #include "sta_info.h"
+#include "driver-ops.h"
 
 struct rate_control_ref {
        struct ieee80211_local *local;
@@ -63,8 +64,7 @@ static inline void rate_control_rate_init(struct sta_info *sta)
 
 static inline void rate_control_rate_update(struct ieee80211_local *local,
                                    struct ieee80211_supported_band *sband,
-                                   struct sta_info *sta, u32 changed,
-                                   enum nl80211_channel_type oper_chan_type)
+                                   struct sta_info *sta, u32 changed)
 {
        struct rate_control_ref *ref = local->rate_ctrl;
        struct ieee80211_sta *ista = &sta->sta;
@@ -72,7 +72,8 @@ static inline void rate_control_rate_update(struct ieee80211_local *local,
 
        if (ref && ref->ops->rate_update)
                ref->ops->rate_update(ref->priv, sband, ista,
-                                     priv_sta, changed, oper_chan_type);
+                                     priv_sta, changed);
+       drv_sta_rc_update(local, sta->sdata, &sta->sta, changed);
 }
 
 static inline void *rate_control_alloc_sta(struct rate_control_ref *ref,