iwlwifi: remove useless node_addr assignments
authorJohannes Berg <johannes.berg@intel.com>
Wed, 12 May 2010 10:33:08 +0000 (03:33 -0700)
committerReinette Chatre <reinette.chatre@intel.com>
Sun, 6 Jun 2010 06:13:03 +0000 (23:13 -0700)
iwl_connection_init_rx_config() will already
have set up the entire RXON command, so these
assignments are duplicate.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Reinette Chatre <reinette.chatre@intel.com>
drivers/net/wireless/iwlwifi/iwl-agn.c
drivers/net/wireless/iwlwifi/iwl-core.c

index f81f9d1769938bb2a87a924b37cf741a43b3b300..87ed28b13c2f101d2b6432841eb923f8dbf37470 100644 (file)
@@ -2444,8 +2444,6 @@ static void iwl_alive_start(struct iwl_priv *priv)
 
                if (priv->cfg->ops->hcmd->set_rxon_chain)
                        priv->cfg->ops->hcmd->set_rxon_chain(priv);
-
-               memcpy(priv->staging_rxon.node_addr, priv->mac_addr, ETH_ALEN);
        }
 
        /* Configure Bluetooth device coexistence support */
index 682342cf639406045f999c5c49826d2036ccfa30..3754762f68237c5de895c167d6f114fb32757fd2 100644 (file)
@@ -1880,8 +1880,6 @@ static int iwl_set_mode(struct iwl_priv *priv, struct ieee80211_vif *vif)
        if (priv->cfg->ops->hcmd->set_rxon_chain)
                priv->cfg->ops->hcmd->set_rxon_chain(priv);
 
-       memcpy(priv->staging_rxon.node_addr, priv->mac_addr, ETH_ALEN);
-
        return iwlcore_commit_rxon(priv);
 }