Search Linux Wireless

Re: iwlwifi scan question

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




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 <ischram@xxxxxxxxxx>

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);
-
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux