From: reinette chatre <reinette.chatre@intel.com>
To: "Gábor Stefanik" <netrolller.3d@gmail.com>
Cc: John Linville <linville@tuxdriver.com>,
"Zhu, Yi" <yi.zhu@intel.com>,
"Guy, Wey-Yi W" <wey-yi.w.guy@intel.com>,
Rafael Laufer <rlaufer@cs.ucla.edu>,
ipw3945-devel <ipw3945-devel@lists.sourceforge.net>,
linux-wireless <linux-wireless@vger.kernel.org>
Subject: Re: [PATCH] iwlwifi: Make injection of non-broadcast frames work again
Date: Fri, 21 Aug 2009 10:59:49 -0700 [thread overview]
Message-ID: <1250877589.30019.14474.camel@rc-desk> (raw)
In-Reply-To: <69e28c910908211024n1c255b3p160839c60ae0b3a@mail.gmail.com>
Hi Gábor,
On Fri, 2009-08-21 at 10:24 -0700, Gábor Stefanik wrote:
> For some odd reason, reverting Wei-Yi Guy's patch makes the bug go
> away
ah - now I see. The driver defaulted to monitor mode in iwl_mac_start.
This is not correct and this patch rightly removed that code.
> ... should we do that instead for 2.6.31? (I'm all for it, if this
> patch is not the right thing to do, as Wey-Yi's patch was not a bug
> fix, just a cleanup.)
No, this patch was more than code cleanup - it changed the driver to
behave correctly wrt monitor interface type. Unfortunately the
workaround to get packet injection working was not apparent enough and
was missed.
> My guess is that the "default to MONITOR mode"
> change is the culprit.
yeah ...
> Maybe we should check info->flags & IEEE80211_TX_CTL_INJECTED
> instead... is there a way to access the ieee80211_tx_info structure
> from this function (e.g. through priv)?
No, but it may not be necessary. Why is is necessary to call this
function in the first place if you know this is an injection packet?
Specifically, in iwl_tx_skb and iwl3945_tx_skb (where ieee80211_tx_info)
is known) there could just be a test if this is an injected packet, if
it is, then do not call iwl_get_sta_id, but just use "bcast_sta_id"
directly. Would this work? Is a test for monitor mode still needed in
this case?
Reinette
next prev parent reply other threads:[~2009-08-21 18:00 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-08-20 22:08 [PATCH] iwlwifi: Make injection of non-broadcast frames work again Gábor Stefanik
2009-08-21 8:21 ` Johannes Berg
2009-08-21 13:21 ` Gábor Stefanik
2009-08-21 13:28 ` Johannes Berg
2009-08-21 16:33 ` reinette chatre
2009-08-21 16:43 ` John W. Linville
2009-08-21 17:24 ` Gábor Stefanik
2009-08-21 17:59 ` reinette chatre [this message]
2009-08-21 18:10 ` Gábor Stefanik
2009-08-21 18:24 ` reinette chatre
2009-08-21 18:37 ` Gábor Stefanik
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=1250877589.30019.14474.camel@rc-desk \
--to=reinette.chatre@intel.com \
--cc=ipw3945-devel@lists.sourceforge.net \
--cc=linux-wireless@vger.kernel.org \
--cc=linville@tuxdriver.com \
--cc=netrolller.3d@gmail.com \
--cc=rlaufer@cs.ucla.edu \
--cc=wey-yi.w.guy@intel.com \
--cc=yi.zhu@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox