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>
This commit is contained in:
@@ -1031,7 +1031,7 @@ minstrel_ht_free(void *priv)
|
||||
mac80211_minstrel.free(priv);
|
||||
}
|
||||
|
||||
static struct rate_control_ops mac80211_minstrel_ht = {
|
||||
static const struct rate_control_ops mac80211_minstrel_ht = {
|
||||
.name = "minstrel_ht",
|
||||
.tx_status = minstrel_ht_tx_status,
|
||||
.get_rate = minstrel_ht_get_rate,
|
||||
|
Reference in New Issue
Block a user