From: "John W. Linville" <linville@tuxdriver.com>
To: "Guy, Wey-Yi" <wey-yi.w.guy@intel.com>
Cc: Nikolay Martynov <mar.kolya@gmail.com>,
"mar.kolya@gmail.com linux-wireless@vger.kernel.org"
<linux-wireless@vger.kernel.org>,
"ilw@linux.intel.com" <ilw@linux.intel.com>
Subject: Re: [PATCH] iwlwifi regression in 20111205 merge
Date: Fri, 9 Dec 2011 10:44:15 -0500 [thread overview]
Message-ID: <20111209154415.GA14236@tuxdriver.com> (raw)
In-Reply-To: <1323400528.13074.87.camel@wwguy-huron>
Are the bits in the wireless tree correct? If so, then please just
send a patch to fix the wireless-next tree.
Now that the kernel.org mess is sorted, I guess we/I need to go back
to pulling your trees instead of applying patches...
John
On Thu, Dec 08, 2011 at 07:15:28PM -0800, Guy, Wey-Yi wrote:
> John,
>
> what is the correct method to handle this case?
> the patch need to add a piece of code in iwl-mac80211.c, and also need
> to backport to stable
> Since the function was recently move from iwl-agn.c to iwl-mac80211.c,
> so separated patch need for "wireless-next" and "wireless". But look
> like portion of patch just lost because the function was move.
>
> Thanks
> Wey
>
> On Thu, 2011-12-08 at 19:03 -0800, Guy, Wey-Yi wrote:
> > Hi Nikolay,
> >
> > I believe I know what happen,
> >
> > this change happen after the function being move from iwl-agn.c to
> > iwl-mac80211.c
> >
> > Author: Johannes Berg <johannes.berg@intel.com>
> > Date: Fri Dec 2 08:19:17 2011 -0800
> >
> > iwlagn: fix HW crypto for TX-only keys
> >
> > Group keys in IBSS or AP mode are not programmed
> > into the device since we give the key to it with
> > every TX packet. However, we do need mac80211 to
> > create the MMIC & PN in all cases. Move the code
> > around to set the key flags all the time. We set
> > them even when the key is removed again but that
> > is obviously harmless.
> >
> > Cc: stable@vger.kernel.org
> > Reported-by: Reinette Chatre <reinette.chatre@intel.com>
> > Signed-off-by: Johannes Berg <johannes.berg@intel.com>
> > Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com>
> > Signed-off-by: John W. Linville <linville@tuxdriver.com>
> >
> > and the changes was made in iwl-mac80211.c
> >
> > but since this patch need to be backport to stable kernel.
> > so there is a separated patch sent for the changes in iwl-agn.c against
> > stable
> >
> > because all these, for some reason the changes just got lost.
> > Thank you for catch this
> >
> > Wey
> >
> >
> > On Thu, 2011-12-08 at 18:43 -0800, Nikolay Martynov wrote:
> > > It looks like the regression was introduced between 20111202 and
> > > 20111205 (linux-next tree). Symptoms: connection to AP seem to be
> > > established, but no data goes though it in any way. Tested on intel
> > > 5300.
> > > Peek at the changes have shown that it looks like at least part of
> > > the code wasn't merged properly. It was originally committed into
> > > iwl_agn.c but code in question was moved to iwl-mac80211.c.
> > > This patch puts code in place and my card works again.
> > > I hope this patch will be reviewed by people developing iwl
> > > driver. Also, it is possible that some other iwl code didn't make it
> > > though 20111205 merge as well, so this probably should be checked too.
> > > Please let me know if I can provide any more info.
> > > Thanks!
> > >
> > > Signed-off-by: Nikolay Martynov <mar.kolya@gmail.com>
> > > ---
> > > drivers/net/wireless/iwlwifi/iwl-mac80211.c | 11 +++++++++++
> > > 1 files changed, 11 insertions(+), 0 deletions(-)
> > >
> > > diff --git a/drivers/net/wireless/iwlwifi/iwl-mac80211.c b/drivers/net/wireless/iwlwifi/iwl-mac80211.c
> > > index 794b735..55308b8 100644
> > > --- a/drivers/net/wireless/iwlwifi/iwl-mac80211.c
> > > +++ b/drivers/net/wireless/iwlwifi/iwl-mac80211.c
> > > @@ -517,6 +517,17 @@ static int iwlagn_mac_set_key(struct ieee80211_hw *hw, enum set_key_cmd cmd,
> > > return -EOPNOTSUPP;
> > > }
> > >
> > > + switch (key->cipher) {
> > > + case WLAN_CIPHER_SUITE_TKIP:
> > > + key->flags |= IEEE80211_KEY_FLAG_GENERATE_MMIC;
> > > + /* fall through */
> > > + case WLAN_CIPHER_SUITE_CCMP:
> > > + key->flags |= IEEE80211_KEY_FLAG_GENERATE_IV;
> > > + break;
> > > + default:
> > > + break;
> > > + }
> > > +
> > > /*
> > > * We could program these keys into the hardware as well, but we
> > > * don't expect much multicast traffic in IBSS and having keys
> >
> >
> > --
> > To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
> > the body of a message to majordomo@vger.kernel.org
> > More majordomo info at http://vger.kernel.org/majordomo-info.html
>
>
>
--
John W. Linville Someday the world will need a hero, and you
linville@tuxdriver.com might be all we have. Be ready.
next prev parent reply other threads:[~2011-12-09 15:45 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-12-09 2:43 [PATCH] iwlwifi regression in 20111205 merge Nikolay Martynov
2011-12-09 3:03 ` Guy, Wey-Yi
2011-12-09 3:15 ` Guy, Wey-Yi
2011-12-09 15:44 ` John W. Linville [this message]
2011-12-09 15:15 ` Guy, Wey-Yi
2011-12-09 16:51 ` John W. Linville
2011-12-09 17:00 ` Guy, Wey-Yi
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=20111209154415.GA14236@tuxdriver.com \
--to=linville@tuxdriver.com \
--cc=ilw@linux.intel.com \
--cc=linux-wireless@vger.kernel.org \
--cc=mar.kolya@gmail.com \
--cc=wey-yi.w.guy@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;
as well as URLs for NNTP newsgroup(s).