提交 37fec384 编写于 作者: M Mohamed Abbas 提交者: John W. Linville

iwl3945: use changed in iwl3945_mac_config

In function iwl3945_mac_config use changed flag to call only
the affected functions.
Signed-off-by: NMohamed Abbas <mohamed.abbas@intel.com>
Signed-off-by: NReinette Chatre <reinette.chatre@intel.com>
Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
上级 019fb97d
...@@ -3773,15 +3773,19 @@ static int iwl3945_mac_config(struct ieee80211_hw *hw, u32 changed) ...@@ -3773,15 +3773,19 @@ static int iwl3945_mac_config(struct ieee80211_hw *hw, u32 changed)
} }
#endif #endif
if (conf->radio_enabled && iwl_radio_kill_sw_enable_radio(priv)) { if (changed & IEEE80211_CONF_CHANGE_RADIO_ENABLED) {
IWL_DEBUG_MAC80211(priv, "leave - RF-KILL - waiting for uCode\n"); if (conf->radio_enabled &&
goto out; iwl_radio_kill_sw_enable_radio(priv)) {
} IWL_DEBUG_MAC80211(priv, "leave - RF-KILL - "
"waiting for uCode\n");
goto out;
}
if (!conf->radio_enabled) { if (!conf->radio_enabled) {
iwl_radio_kill_sw_disable_radio(priv); iwl_radio_kill_sw_disable_radio(priv);
IWL_DEBUG_MAC80211(priv, "leave - radio disabled\n"); IWL_DEBUG_MAC80211(priv, "leave - radio disabled\n");
goto out; goto out;
}
} }
if (iwl_is_rfkill(priv)) { if (iwl_is_rfkill(priv)) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册