mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-06 22:56:46 +07:00
mwl8k: Do not call mwl8k_cmd_set_rf_channel unconditionally
Avoid calling mwl8k_cmd_set_rf_channel unconditionally by checking IEEE80211_CONF_CHANGE_CHANNEL. Signed-off-by: Yogesh Ashok Powar <yogeshp@marvell.com> Signed-off-by: Nishant Sarmukadam <nishants@marvell.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:
parent
e882efc96d
commit
0f4316b97d
@ -4797,9 +4797,11 @@ static int mwl8k_config(struct ieee80211_hw *hw, u32 changed)
|
||||
if (rc)
|
||||
goto out;
|
||||
|
||||
rc = mwl8k_cmd_set_rf_channel(hw, conf);
|
||||
if (rc)
|
||||
goto out;
|
||||
if (changed & IEEE80211_CONF_CHANGE_CHANNEL) {
|
||||
rc = mwl8k_cmd_set_rf_channel(hw, conf);
|
||||
if (rc)
|
||||
goto out;
|
||||
}
|
||||
|
||||
if (conf->power_level > 18)
|
||||
conf->power_level = 18;
|
||||
|
Loading…
Reference in New Issue
Block a user