|
@@ -4797,9 +4797,11 @@ static int mwl8k_config(struct ieee80211_hw *hw, u32 changed)
|
|
|
if (rc)
|
|
if (rc)
|
|
|
goto out;
|
|
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)
|
|
if (conf->power_level > 18)
|
|
|
conf->power_level = 18;
|
|
conf->power_level = 18;
|