From: Ian Schram <ischram@telenet.be>
To: Johannes Berg <johannes@sipsolutions.net>
Cc: Tomas Winkler <tomas.winkler@intel.com>,
linux-wireless <linux-wireless@vger.kernel.org>
Subject: Re: iwlwifi scan question
Date: Sat, 29 Sep 2007 15:08:32 +0200 [thread overview]
Message-ID: <46FE4E50.2010300@telenet.be> (raw)
In-Reply-To: <1190815228.4204.9.camel@johannes.berg>
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@telenet.be>
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);
next prev parent reply other threads:[~2007-09-29 13:08 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-09-26 14:00 iwlwifi scan question Johannes Berg
2007-09-28 11:41 ` Tomas Winkler
2007-09-28 11:50 ` Johannes Berg
2007-09-28 21:20 ` Tomas Winkler
2007-09-29 13:08 ` Ian Schram [this message]
2007-09-29 13:13 ` Johannes Berg
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=46FE4E50.2010300@telenet.be \
--to=ischram@telenet.be \
--cc=johannes@sipsolutions.net \
--cc=linux-wireless@vger.kernel.org \
--cc=tomas.winkler@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.