All of lore.kernel.org
 help / color / mirror / Atom feed
From: Stanislaw Gruszka <sgruszka@redhat.com>
To: Pedro Francisco <pedrogfrancisco@gmail.com>
Cc: linux-wireless@vger.kernel.org, ipw3945-devel@lists.sourceforge.net
Subject: Re: iwl3945 firmware errors: tentative debugging
Date: Wed, 21 Dec 2011 12:33:30 +0100	[thread overview]
Message-ID: <20111221113329.GA2235@redhat.com> (raw)
In-Reply-To: <CAJZjf_zM2zBsoh66KcRwgi-jS7DF-qH5-sKrUoCB=hFTPES7LA@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 920 bytes --]

Hi Pedro,

On Tue, Nov 29, 2011 at 05:07:55PM +0000, Pedro Francisco wrote:
> My country has the following regulatory.bin lines:
> 
> country PT:	(2402.000 - 2482.000 @ 40.000), (N/A, 20.00)	(5170.000 -
> 5250.000 @ 40.000), (N/A, 20.00)	(5250.000 - 5330.000 @ 40.000), (N/A,
> 20.00), DFS <------ removed whole line	(5490.000 - 5710.000 @ 40.000),
> (N/A, 27.00), DFS <------ removed whole line
> 
> If I remove the last two lines, everything works as expected, i.e., NO
> "Microsode SW error". If I include any of the last two, the Microcode
> will issue an error.
> 
> I've tried every combination of those lines except just one of
> "(5250.000 - 5330.000 @ 40.000), (N/A, 20.00), DFS" OR "(5490.000 -
> 5710.000 @ 40.000), (N/A, 27.00), DFS".

Attached patch stop to trigger error on my setup with "iw dev wlan0 scan
passive". Can you check if it also fix problem on your normal wireless
workload?

Thanks
Stanislaw

[-- Attachment #2: iwlegacy-do-not-promote-to-active-scan-on-transmistion-detect.patch --]
[-- Type: text/plain, Size: 911 bytes --]

diff --git a/drivers/net/wireless/iwlegacy/3945-mac.c b/drivers/net/wireless/iwlegacy/3945-mac.c
index daef6b5..b6df518 100644
--- a/drivers/net/wireless/iwlegacy/3945-mac.c
+++ b/drivers/net/wireless/iwlegacy/3945-mac.c
@@ -2624,12 +2624,12 @@ il3945_request_scan(struct il_priv *il, struct ieee80211_vif *vif)
 	}
 
 	/*
-	 * If active scaning is requested but a certain channel
-	 * is marked passive, we can do active scanning if we
-	 * detect transmissions.
+	 * If active scaning is requested but a certain channel is marked
+	 * passive, we can do active scanning if we detect transmissions. For
+	 * passive only scanning disable switching to active on any channel.
 	 */
 	scan->good_CRC_th =
-	    is_active ? IL_GOOD_CRC_TH_DEFAULT : IL_GOOD_CRC_TH_DISABLED;
+	    is_active ? IL_GOOD_CRC_TH_DEFAULT : IL_GOOD_CRC_TH_NEVER;
 
 	len =
 	    il_fill_probe_req(il, (struct ieee80211_mgmt *)scan->data,

  reply	other threads:[~2011-12-21 11:33 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <CAJZjf_xDm_RaFqxF-r+MAPyh_HcCb+yV4dNrfhr+LH0-z2zk8g@mail.gmail.com>
2011-11-24 11:49 ` iwl3945 firmware errors: tentative debugging Pedro Francisco
2011-11-24 12:54   ` Stanislaw Gruszka
2011-11-29 15:43     ` Pedro Francisco
2011-11-29 17:07     ` Pedro Francisco
2011-12-21 11:33       ` Stanislaw Gruszka [this message]
2012-01-17 16:07         ` Pedro Francisco
2011-11-25  7:00   ` Kalle Valo
2011-11-25 16:18     ` Pedro Francisco

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=20111221113329.GA2235@redhat.com \
    --to=sgruszka@redhat.com \
    --cc=ipw3945-devel@lists.sourceforge.net \
    --cc=linux-wireless@vger.kernel.org \
    --cc=pedrogfrancisco@gmail.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.