Skip to content

Commit

Permalink
iwlwifi: remove useless node_addr assignments
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Johannes Berg authored and Reinette Chatre committed Jun 6, 2010
1 parent 467429b commit 041fa0c
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
2 changes: 0 additions & 2 deletions drivers/net/wireless/iwlwifi/iwl-agn.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down
2 changes: 0 additions & 2 deletions drivers/net/wireless/iwlwifi/iwl-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit 041fa0c

Please sign in to comment.