diff options
author | Johannes Berg <johannes.berg@intel.com> | 2014-01-20 17:29:34 -0500 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2014-02-04 15:48:21 -0500 |
commit | 631ad703ba3a585e96acbfd2ac8c0f0fee1ad99b (patch) | |
tree | 8c65d36d787a5ef4e2aa6e9ac7306e22349dfcb2 /drivers/net/wireless/iwlwifi/dvm | |
parent | c1cf6d4e6f17406c4fd7b0f4fae779fa61666cc3 (diff) |
mac80211: make rate control ops const
Change the code to allow making all the rate control ops
const, nothing ever needs to change them. Also change all
drivers to make use of this and mark the ops const.
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/dvm')
-rw-r--r-- | drivers/net/wireless/iwlwifi/dvm/rs.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/wireless/iwlwifi/dvm/rs.c b/drivers/net/wireless/iwlwifi/dvm/rs.c index 0977d93b529d..c4dded8d8091 100644 --- a/drivers/net/wireless/iwlwifi/dvm/rs.c +++ b/drivers/net/wireless/iwlwifi/dvm/rs.c | |||
@@ -3319,7 +3319,8 @@ static void rs_rate_init_stub(void *priv_r, struct ieee80211_supported_band *sba | |||
3319 | struct ieee80211_sta *sta, void *priv_sta) | 3319 | struct ieee80211_sta *sta, void *priv_sta) |
3320 | { | 3320 | { |
3321 | } | 3321 | } |
3322 | static struct rate_control_ops rs_ops = { | 3322 | |
3323 | static const struct rate_control_ops rs_ops = { | ||
3323 | .module = NULL, | 3324 | .module = NULL, |
3324 | .name = RS_NAME, | 3325 | .name = RS_NAME, |
3325 | .tx_status = rs_tx_status, | 3326 | .tx_status = rs_tx_status, |