* [PATCH wireless-2.6 v2] iwlagn: fix "Received BA when not expected"
@ 2011-04-29 15:51 Stanislaw Gruszka
2011-04-29 16:00 ` Johannes Berg
0 siblings, 1 reply; 3+ messages in thread
From: Stanislaw Gruszka @ 2011-04-29 15:51 UTC (permalink / raw)
To: Wey-Yi Guy; +Cc: Intel Linux Wireless, linux-wireless, Johannes Berg
Need to use broadcast sta_id for management frames, otherwise we broke
BA session in the firmware and get messages like that:
"Received BA when not expected"
or (on older kernels):
"BA scd_flow 0 does not match txq_id 10"
This fix regression introduced in 2.6.35 during station management
code rewrite by:
commit 2a87c26bbe9587baeb9e56d3ce0b4971bd777643
Author: Johannes Berg <johannes.berg@intel.com>
Date: Fri Apr 30 11:30:45 2010 -0700
iwlwifi: use iwl_find_station less
Patch partially resolve:
https://bugzilla.kernel.org/show_bug.cgi?id=16691
However, there are still 11n performance problems on 4965 and 5xxx
devices that need to be investigated.
Cc: stable@kernel.org # 2.6.35+
Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
---
drivers/net/wireless/iwlwifi/iwl-agn-tx.c | 17 +++++++++++------
1 files changed, 11 insertions(+), 6 deletions(-)
diff --git a/drivers/net/wireless/iwlwifi/iwl-agn-tx.c b/drivers/net/wireless/iwlwifi/iwl-agn-tx.c
index 494de0e..4afae14 100644
--- a/drivers/net/wireless/iwlwifi/iwl-agn-tx.c
+++ b/drivers/net/wireless/iwlwifi/iwl-agn-tx.c
@@ -582,12 +582,17 @@ int iwlagn_tx_skb(struct iwl_priv *priv, struct sk_buff *skb)
hdr_len = ieee80211_hdrlen(fc);
- /* Find index into station table for destination station */
- sta_id = iwl_sta_id_or_broadcast(priv, ctx, info->control.sta);
- if (sta_id == IWL_INVALID_STATION) {
- IWL_DEBUG_DROP(priv, "Dropping - INVALID STATION: %pM\n",
- hdr->addr1);
- goto drop_unlock;
+ /* For management frames use broadcast id to do not break aggregation */
+ if (!ieee80211_is_data(fc))
+ sta_id = ctx->bcast_sta_id;
+ else {
+ /* Find index into station table for destination station */
+ sta_id = iwl_sta_id_or_broadcast(priv, ctx, info->control.sta);
+ if (sta_id == IWL_INVALID_STATION) {
+ IWL_DEBUG_DROP(priv, "Dropping - INVALID STATION: %pM\n",
+ hdr->addr1);
+ goto drop_unlock;
+ }
}
IWL_DEBUG_TX(priv, "station Id %d\n", sta_id);
--
1.7.1
^ permalink raw reply related [flat|nested] 3+ messages in thread* Re: [PATCH wireless-2.6 v2] iwlagn: fix "Received BA when not expected"
2011-04-29 15:51 [PATCH wireless-2.6 v2] iwlagn: fix "Received BA when not expected" Stanislaw Gruszka
@ 2011-04-29 16:00 ` Johannes Berg
2011-04-29 16:12 ` wwguy
0 siblings, 1 reply; 3+ messages in thread
From: Johannes Berg @ 2011-04-29 16:00 UTC (permalink / raw)
To: Stanislaw Gruszka; +Cc: Wey-Yi Guy, Intel Linux Wireless, linux-wireless
On Fri, 2011-04-29 at 17:51 +0200, Stanislaw Gruszka wrote:
> Need to use broadcast sta_id for management frames, otherwise we broke
> BA session in the firmware and get messages like that:
>
> "Received BA when not expected"
>
> or (on older kernels):
>
> "BA scd_flow 0 does not match txq_id 10"
>
> This fix regression introduced in 2.6.35 during station management
> code rewrite by:
>
> commit 2a87c26bbe9587baeb9e56d3ce0b4971bd777643
> Author: Johannes Berg <johannes.berg@intel.com>
> Date: Fri Apr 30 11:30:45 2010 -0700
>
> iwlwifi: use iwl_find_station less
>
> Patch partially resolve:
> https://bugzilla.kernel.org/show_bug.cgi?id=16691
> However, there are still 11n performance problems on 4965 and 5xxx
> devices that need to be investigated.
>
> Cc: stable@kernel.org # 2.6.35+
> Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
Acked-by: Johannes Berg <johannes@sipsolutions.net>
Clearly, the behaviour here was modified by me.That wasn't intentional,
but I still want to find out why it breaks anything. But that'll have to
wait, I have too much other stuff to fix up right now :(
Thanks.
johannes
> ---
> drivers/net/wireless/iwlwifi/iwl-agn-tx.c | 17 +++++++++++------
> 1 files changed, 11 insertions(+), 6 deletions(-)
>
> diff --git a/drivers/net/wireless/iwlwifi/iwl-agn-tx.c b/drivers/net/wireless/iwlwifi/iwl-agn-tx.c
> index 494de0e..4afae14 100644
> --- a/drivers/net/wireless/iwlwifi/iwl-agn-tx.c
> +++ b/drivers/net/wireless/iwlwifi/iwl-agn-tx.c
> @@ -582,12 +582,17 @@ int iwlagn_tx_skb(struct iwl_priv *priv, struct sk_buff *skb)
>
> hdr_len = ieee80211_hdrlen(fc);
>
> - /* Find index into station table for destination station */
> - sta_id = iwl_sta_id_or_broadcast(priv, ctx, info->control.sta);
> - if (sta_id == IWL_INVALID_STATION) {
> - IWL_DEBUG_DROP(priv, "Dropping - INVALID STATION: %pM\n",
> - hdr->addr1);
> - goto drop_unlock;
> + /* For management frames use broadcast id to do not break aggregation */
> + if (!ieee80211_is_data(fc))
> + sta_id = ctx->bcast_sta_id;
> + else {
> + /* Find index into station table for destination station */
> + sta_id = iwl_sta_id_or_broadcast(priv, ctx, info->control.sta);
> + if (sta_id == IWL_INVALID_STATION) {
> + IWL_DEBUG_DROP(priv, "Dropping - INVALID STATION: %pM\n",
> + hdr->addr1);
> + goto drop_unlock;
> + }
> }
>
> IWL_DEBUG_TX(priv, "station Id %d\n", sta_id);
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: [PATCH wireless-2.6 v2] iwlagn: fix "Received BA when not expected"
2011-04-29 16:00 ` Johannes Berg
@ 2011-04-29 16:12 ` wwguy
0 siblings, 0 replies; 3+ messages in thread
From: wwguy @ 2011-04-29 16:12 UTC (permalink / raw)
To: Johannes Berg
Cc: Stanislaw Gruszka, Intel Linux Wireless,
linux-wireless@vger.kernel.org
On Fri, 2011-04-29 at 09:00 -0700, Johannes Berg wrote:
> On Fri, 2011-04-29 at 17:51 +0200, Stanislaw Gruszka wrote:
> > Need to use broadcast sta_id for management frames, otherwise we broke
> > BA session in the firmware and get messages like that:
> >
> > "Received BA when not expected"
> >
> > or (on older kernels):
> >
> > "BA scd_flow 0 does not match txq_id 10"
> >
> > This fix regression introduced in 2.6.35 during station management
> > code rewrite by:
> >
> > commit 2a87c26bbe9587baeb9e56d3ce0b4971bd777643
> > Author: Johannes Berg <johannes.berg@intel.com>
> > Date: Fri Apr 30 11:30:45 2010 -0700
> >
> > iwlwifi: use iwl_find_station less
> >
> > Patch partially resolve:
> > https://bugzilla.kernel.org/show_bug.cgi?id=16691
> > However, there are still 11n performance problems on 4965 and 5xxx
> > devices that need to be investigated.
> >
> > Cc: stable@kernel.org # 2.6.35+
> > Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
>
> Acked-by: Johannes Berg <johannes@sipsolutions.net>
Acked-by: Wey-Yi Guy <wey-yi.w.guy@intel.com>
>
> Clearly, the behaviour here was modified by me.That wasn't intentional,
> but I still want to find out why it breaks anything. But that'll have to
> wait, I have too much other stuff to fix up right now :(
>
> Thanks.
>
> johannes
>
> > ---
> > drivers/net/wireless/iwlwifi/iwl-agn-tx.c | 17 +++++++++++------
> > 1 files changed, 11 insertions(+), 6 deletions(-)
> >
> > diff --git a/drivers/net/wireless/iwlwifi/iwl-agn-tx.c b/drivers/net/wireless/iwlwifi/iwl-agn-tx.c
> > index 494de0e..4afae14 100644
> > --- a/drivers/net/wireless/iwlwifi/iwl-agn-tx.c
> > +++ b/drivers/net/wireless/iwlwifi/iwl-agn-tx.c
> > @@ -582,12 +582,17 @@ int iwlagn_tx_skb(struct iwl_priv *priv, struct sk_buff *skb)
> >
> > hdr_len = ieee80211_hdrlen(fc);
> >
> > - /* Find index into station table for destination station */
> > - sta_id = iwl_sta_id_or_broadcast(priv, ctx, info->control.sta);
> > - if (sta_id == IWL_INVALID_STATION) {
> > - IWL_DEBUG_DROP(priv, "Dropping - INVALID STATION: %pM\n",
> > - hdr->addr1);
> > - goto drop_unlock;
> > + /* For management frames use broadcast id to do not break aggregation */
> > + if (!ieee80211_is_data(fc))
> > + sta_id = ctx->bcast_sta_id;
> > + else {
> > + /* Find index into station table for destination station */
> > + sta_id = iwl_sta_id_or_broadcast(priv, ctx, info->control.sta);
> > + if (sta_id == IWL_INVALID_STATION) {
> > + IWL_DEBUG_DROP(priv, "Dropping - INVALID STATION: %pM\n",
> > + hdr->addr1);
> > + goto drop_unlock;
> > + }
> > }
> >
> > IWL_DEBUG_TX(priv, "station Id %d\n", sta_id);
>
>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2011-04-29 16:15 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-04-29 15:51 [PATCH wireless-2.6 v2] iwlagn: fix "Received BA when not expected" Stanislaw Gruszka
2011-04-29 16:00 ` Johannes Berg
2011-04-29 16:12 ` wwguy
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).