diff options
Diffstat (limited to 'net/mac80211/rate.c')
-rw-r--r-- | net/mac80211/rate.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/mac80211/rate.c b/net/mac80211/rate.c index d53355b011f5..8544e2eb570e 100644 --- a/net/mac80211/rate.c +++ b/net/mac80211/rate.c | |||
@@ -103,7 +103,7 @@ ieee80211_rate_control_ops_get(const char *name) | |||
103 | const struct rate_control_ops *ops; | 103 | const struct rate_control_ops *ops; |
104 | const char *alg_name; | 104 | const char *alg_name; |
105 | 105 | ||
106 | kparam_block_sysfs_write(ieee80211_default_rc_algo); | 106 | kernel_param_lock(THIS_MODULE); |
107 | if (!name) | 107 | if (!name) |
108 | alg_name = ieee80211_default_rc_algo; | 108 | alg_name = ieee80211_default_rc_algo; |
109 | else | 109 | else |
@@ -117,7 +117,7 @@ ieee80211_rate_control_ops_get(const char *name) | |||
117 | /* try built-in one if specific alg requested but not found */ | 117 | /* try built-in one if specific alg requested but not found */ |
118 | if (!ops && strlen(CONFIG_MAC80211_RC_DEFAULT)) | 118 | if (!ops && strlen(CONFIG_MAC80211_RC_DEFAULT)) |
119 | ops = ieee80211_try_rate_control_ops_get(CONFIG_MAC80211_RC_DEFAULT); | 119 | ops = ieee80211_try_rate_control_ops_get(CONFIG_MAC80211_RC_DEFAULT); |
120 | kparam_unblock_sysfs_write(ieee80211_default_rc_algo); | 120 | kernel_param_unlock(THIS_MODULE); |
121 | 121 | ||
122 | return ops; | 122 | return ops; |
123 | } | 123 | } |