diff options
author | Saravana <saravanad@posedge.com> | 2012-11-28 18:29:38 +0530 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2012-11-29 15:33:05 +0100 |
commit | 003e676af5044c2168dafbb49c7b8d61dd68cc60 (patch) | |
tree | df109c33b23c9013d400af440dadc83fccd4a040 /net/mac80211/sta_info.h | |
parent | 91b8c050b2a2ed3a1277de53d90e1899f28225e8 (diff) | |
download | linux-003e676af5044c2168dafbb49c7b8d61dd68cc60.tar.gz linux-003e676af5044c2168dafbb49c7b8d61dd68cc60.tar.bz2 linux-003e676af5044c2168dafbb49c7b8d61dd68cc60.zip |
mac80211: re-organize the rx rate calculation logic
Currently the logic to fill a struct rate_info with
a STA's last RX rate is accessible only in the cfg.c.
As the RX rate calculation might be needed elsewhere,
split this out into a separate function.
Signed-off-by: Saravana <saravanad@posedge.com>
[fix various whitespace issues, reword commit log]
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/mac80211/sta_info.h')
-rw-r--r-- | net/mac80211/sta_info.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/net/mac80211/sta_info.h b/net/mac80211/sta_info.h index dce76939f526..1489bca9ea97 100644 --- a/net/mac80211/sta_info.h +++ b/net/mac80211/sta_info.h @@ -554,6 +554,8 @@ int sta_info_flush(struct ieee80211_local *local, void sta_set_rate_info_tx(struct sta_info *sta, const struct ieee80211_tx_rate *rate, struct rate_info *rinfo); +void sta_set_rate_info_rx(struct sta_info *sta, + struct rate_info *rinfo); void ieee80211_sta_expire(struct ieee80211_sub_if_data *sdata, unsigned long exp_time); |