diff options
author | Saravana <saravanad@posedge.com> | 2012-11-28 07:59:38 -0500 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2012-11-29 09:33:05 -0500 |
commit | 003e676af5044c2168dafbb49c7b8d61dd68cc60 (patch) | |
tree | df109c33b23c9013d400af440dadc83fccd4a040 /net/mac80211/sta_info.h | |
parent | 91b8c050b2a2ed3a1277de53d90e1899f28225e8 (diff) |
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, | |||
554 | void sta_set_rate_info_tx(struct sta_info *sta, | 554 | void sta_set_rate_info_tx(struct sta_info *sta, |
555 | const struct ieee80211_tx_rate *rate, | 555 | const struct ieee80211_tx_rate *rate, |
556 | struct rate_info *rinfo); | 556 | struct rate_info *rinfo); |
557 | void sta_set_rate_info_rx(struct sta_info *sta, | ||
558 | struct rate_info *rinfo); | ||
557 | void ieee80211_sta_expire(struct ieee80211_sub_if_data *sdata, | 559 | void ieee80211_sta_expire(struct ieee80211_sub_if_data *sdata, |
558 | unsigned long exp_time); | 560 | unsigned long exp_time); |
559 | 561 | ||