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

Commit 37fec384 authored by Mohamed Abbas's avatar Mohamed Abbas Committed by John W. Linville
Browse files

iwl3945: use changed in iwl3945_mac_config



In function iwl3945_mac_config use changed flag to call only
the affected functions.

Signed-off-by: default avatarMohamed Abbas <mohamed.abbas@intel.com>
Signed-off-by: default avatarReinette Chatre <reinette.chatre@intel.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 019fb97d
Loading
Loading
Loading
Loading
+12 −8
Original line number Diff line number Diff line
@@ -3773,8 +3773,11 @@ static int iwl3945_mac_config(struct ieee80211_hw *hw, u32 changed)
	}
#endif

	if (conf->radio_enabled && iwl_radio_kill_sw_enable_radio(priv)) {
		IWL_DEBUG_MAC80211(priv, "leave - RF-KILL - waiting for uCode\n");
	if (changed & IEEE80211_CONF_CHANGE_RADIO_ENABLED) {
		if (conf->radio_enabled &&
		    iwl_radio_kill_sw_enable_radio(priv)) {
			IWL_DEBUG_MAC80211(priv, "leave - RF-KILL - "
						 "waiting for uCode\n");
			goto out;
		}

@@ -3783,6 +3786,7 @@ static int iwl3945_mac_config(struct ieee80211_hw *hw, u32 changed)
			IWL_DEBUG_MAC80211(priv, "leave - radio disabled\n");
			goto out;
		}
	}

	if (iwl_is_rfkill(priv)) {
		IWL_DEBUG_MAC80211(priv, "leave - RF kill\n");