Re: iwlwifi scan question
From: Ian Schram <hidden>
Date: 2007-09-29 13:08:34
Subsystem:
the rest · Maintainer:
Linus Torvalds
Johannes Berg wrote:
When iwlwifi scans in firmware, which MAC address does it use? What if you've added multiple virtual interfaces as you said you could support? johannes
I couldn't follow all the rest of this thread but i think the patch below is what you were initially after. I'll also send this patch to ipw3945-devel mailinglist, so it can take the same route as my other patches. Signed-off-by: Ian Schram <redacted>
diff --git a/origin/iwl3945-base.c b/origin/iwl3945-base.c
index 90ad47f..0cdfbd7 100644
--- a/origin/iwl3945-base.c
+++ b/origin/iwl3945-base.c@@ -6915,7 +6915,7 @@ static int iwl_mac_add_interface(struct ieee80211_hw *hw, spin_lock_irqsave(&priv->lock, flags); priv->interface_id = conf->if_id; - + memcpy(priv->mac_addr,conf->mac_addr, ETH_ALEN); spin_unlock_irqrestore(&priv->lock, flags); mutex_lock(&priv->mutex);
diff --git a/origin/iwl4965-base.c b/origin/iwl4965-base.c
index e40c159..c3d0845 100644
--- a/origin/iwl4965-base.c
+++ b/origin/iwl4965-base.c@@ -7305,7 +7305,7 @@ static int iwl_mac_add_interface(struct ieee80211_hw *hw, spin_lock_irqsave(&priv->lock, flags); priv->interface_id = conf->if_id; - + memcpy(priv->mac_addr,conf->mac_addr, ETH_ALEN); spin_unlock_irqrestore(&priv->lock, flags); mutex_lock(&priv->mutex);