Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 631ad703 authored by Johannes Berg's avatar Johannes Berg
Browse files

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: default avatarJohannes Berg <johannes.berg@intel.com>
parent c1cf6d4e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1466,7 +1466,7 @@ static void ath_rate_free_sta(void *priv, struct ieee80211_sta *sta,
	kfree(rate_priv);
}

static struct rate_control_ops ath_rate_ops = {
static const struct rate_control_ops ath_rate_ops = {
	.module = NULL,
	.name = "ath9k_rate_control",
	.tx_status = ath_tx_status,
+1 −1
Original line number Diff line number Diff line
@@ -891,7 +891,7 @@ il3945_rs_rate_init_stub(void *il_r, struct ieee80211_supported_band *sband,
{
}

static struct rate_control_ops rs_ops = {
static const struct rate_control_ops rs_ops = {
	.module = NULL,
	.name = RS_NAME,
	.tx_status = il3945_rs_tx_status,
+1 −1
Original line number Diff line number Diff line
@@ -2807,7 +2807,7 @@ il4965_rs_rate_init_stub(void *il_r, struct ieee80211_supported_band *sband,
{
}

static struct rate_control_ops rs_4965_ops = {
static const struct rate_control_ops rs_4965_ops = {
	.module = NULL,
	.name = IL4965_RS_NAME,
	.tx_status = il4965_rs_tx_status,
+2 −1
Original line number Diff line number Diff line
@@ -3319,7 +3319,8 @@ static void rs_rate_init_stub(void *priv_r, struct ieee80211_supported_band *sba
			      struct ieee80211_sta *sta, void *priv_sta)
{
}
static struct rate_control_ops rs_ops = {

static const struct rate_control_ops rs_ops = {
	.module = NULL,
	.name = RS_NAME,
	.tx_status = rs_tx_status,
+2 −1
Original line number Diff line number Diff line
@@ -2815,7 +2815,8 @@ static void rs_rate_init_stub(void *mvm_r,
			      struct ieee80211_sta *sta, void *mvm_sta)
{
}
static struct rate_control_ops rs_mvm_ops = {

static const struct rate_control_ops rs_mvm_ops = {
	.module = NULL,
	.name = RS_NAME,
	.tx_status = rs_tx_status,
Loading