* iwl3945 firmware errors: tentative debugging [not found] <CAJZjf_xDm_RaFqxF-r+MAPyh_HcCb+yV4dNrfhr+LH0-z2zk8g@mail.gmail.com> @ 2011-11-24 11:49 ` Pedro Francisco 2011-11-24 12:54 ` Stanislaw Gruszka 2011-11-25 7:00 ` Kalle Valo 0 siblings, 2 replies; 8+ messages in thread From: Pedro Francisco @ 2011-11-24 11:49 UTC (permalink / raw) To: linux-wireless Hello! iwl3945 has had firmware errors triggered 'by' NM after started using nl80211 instead of wext. Since Intel has stopped supporting iwl3945, no firmware fix has been possible. It has been workarounded by disable_hw_scan=1 as default, with the penalty of network performance being lower and frequent 'hangs' on the connection. I was able to trigger the firmware error by doing "iw dev wlan0 scan passive". By comparison, "iw dev wlan0 scan" does NOT trigger the firmware error. Having activated firmware debugging, it would seem a firmware error occurs when a full passive scan is done. If all channels 1-140 are scanned passively, a firmware error occurs. If at least one of those channels is actively scanned, no error occurs. Where should I look next? Thanks in Advance, -- Pedro ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: iwl3945 firmware errors: tentative debugging 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-11-25 7:00 ` Kalle Valo 1 sibling, 2 replies; 8+ messages in thread From: Stanislaw Gruszka @ 2011-11-24 12:54 UTC (permalink / raw) To: Pedro Francisco; +Cc: linux-wireless Hi Pedro On Thu, Nov 24, 2011 at 11:49:30AM +0000, Pedro Francisco wrote: > iwl3945 has had firmware errors triggered 'by' NM after started using > nl80211 instead of wext. Since Intel has stopped supporting iwl3945, > no firmware fix has been possible. It has been workarounded by > disable_hw_scan=1 as default, with the penalty of network performance > being lower and frequent 'hangs' on the connection. Eh, we changed to software scan by default for workaround various problems. Unfortunately that is causing other problems for other users. For now, do not exist best default disable_hw_scan= value, that would pleased everyone :-( > I was able to trigger the firmware error by doing "iw dev wlan0 scan > passive". By comparison, "iw dev wlan0 scan" does NOT trigger the > firmware error. > Having activated firmware debugging, it would seem a firmware error > occurs when a full passive scan is done. If all channels 1-140 are > scanned passively, a firmware error occurs. If at least one of those > channels is actively scanned, no error occurs. > > Where should I look next? Good finding, I'm able to reproduce that firmware error too. Perhaps you could install older kernel ie. 2.6.32 or even 2.6.24 and see if you can recreate problem there (but I'm not sure if on older kernel "iw dev wlan0 scan passive" command will work). If you will find kernel version, where issue is not present, you might figure out what is different regarding setting up SCAN command, or let me know so I will look at that :-) If that is broken also on old kernels, we perhaps could modify code that will disallow to do all passive channels scan. Thanks Stanislaw ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: iwl3945 firmware errors: tentative debugging 2011-11-24 12:54 ` Stanislaw Gruszka @ 2011-11-29 15:43 ` Pedro Francisco 2011-11-29 17:07 ` Pedro Francisco 1 sibling, 0 replies; 8+ messages in thread From: Pedro Francisco @ 2011-11-29 15:43 UTC (permalink / raw) To: linux-wireless I'd just like to add that if I only use 802.11b-g frequencies there is no crash on the microcode. I'll try messing with the frequencies first before trying kernel 2.6.32 or earlier. Now to hack that loveable /lib/crda/regulatory.bin binary file to try every possible frequency combination.... On Thu, Nov 24, 2011 at 12:54 PM, Stanislaw Gruszka <sgruszka@redhat.com> wrote: > > Hi Pedro > > On Thu, Nov 24, 2011 at 11:49:30AM +0000, Pedro Francisco wrote: > > iwl3945 has had firmware errors triggered 'by' NM after started using > > nl80211 instead of wext. Since Intel has stopped supporting iwl3945, > > no firmware fix has been possible. It has been workarounded by > > disable_hw_scan=1 as default, with the penalty of network performance > > being lower and frequent 'hangs' on the connection. > Eh, we changed to software scan by default for workaround various > problems. Unfortunately that is causing other problems for other > users. For now, do not exist best default disable_hw_scan= value, that > would pleased everyone :-( > > > I was able to trigger the firmware error by doing "iw dev wlan0 scan > > passive". By comparison, "iw dev wlan0 scan" does NOT trigger the > > firmware error. > > > Having activated firmware debugging, it would seem a firmware error > > occurs when a full passive scan is done. If all channels 1-140 are > > scanned passively, a firmware error occurs. If at least one of those > > channels is actively scanned, no error occurs. > > > > Where should I look next? > Good finding, I'm able to reproduce that firmware error too. Perhaps > you could install older kernel ie. 2.6.32 or even 2.6.24 and see if you > can recreate problem there (but I'm not sure if on older kernel > "iw dev wlan0 scan passive" command will work). If you will find kernel > version, where issue is not present, you might figure out what is > different regarding setting up SCAN command, or let me know so I > will look at that :-) If that is broken also on old kernels, we > perhaps could modify code that will disallow to do all passive > channels scan. > > Thanks > Stanislaw ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: iwl3945 firmware errors: tentative debugging 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 1 sibling, 1 reply; 8+ messages in thread From: Pedro Francisco @ 2011-11-29 17:07 UTC (permalink / raw) To: Stanislaw Gruszka; +Cc: linux-wireless, ipw3945-devel 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". Next week I'll look at the source code. On Thu, Nov 24, 2011 at 12:54 PM, Stanislaw Gruszka <sgruszka@redhat.com> wrote: > Hi Pedro > > On Thu, Nov 24, 2011 at 11:49:30AM +0000, Pedro Francisco wrote: >> iwl3945 has had firmware errors triggered 'by' NM after started using >> nl80211 instead of wext. Since Intel has stopped supporting iwl3945, >> no firmware fix has been possible. It has been workarounded by >> disable_hw_scan=1 as default, with the penalty of network performance >> being lower and frequent 'hangs' on the connection. > Eh, we changed to software scan by default for workaround various > problems. Unfortunately that is causing other problems for other > users. For now, do not exist best default disable_hw_scan= value, that > would pleased everyone :-( > >> I was able to trigger the firmware error by doing "iw dev wlan0 scan >> passive". By comparison, "iw dev wlan0 scan" does NOT trigger the >> firmware error. > >> Having activated firmware debugging, it would seem a firmware error >> occurs when a full passive scan is done. If all channels 1-140 are >> scanned passively, a firmware error occurs. If at least one of those >> channels is actively scanned, no error occurs. >> >> Where should I look next? > Good finding, I'm able to reproduce that firmware error too. Perhaps > you could install older kernel ie. 2.6.32 or even 2.6.24 and see if you > can recreate problem there (but I'm not sure if on older kernel > "iw dev wlan0 scan passive" command will work). If you will find kernel > version, where issue is not present, you might figure out what is > different regarding setting up SCAN command, or let me know so I > will look at that :-) If that is broken also on old kernels, we > perhaps could modify code that will disallow to do all passive > channels scan. > > Thanks > Stanislaw ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: iwl3945 firmware errors: tentative debugging 2011-11-29 17:07 ` Pedro Francisco @ 2011-12-21 11:33 ` Stanislaw Gruszka 2012-01-17 16:07 ` Pedro Francisco 0 siblings, 1 reply; 8+ messages in thread From: Stanislaw Gruszka @ 2011-12-21 11:33 UTC (permalink / raw) To: Pedro Francisco; +Cc: linux-wireless, ipw3945-devel [-- 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, ^ permalink raw reply related [flat|nested] 8+ messages in thread
* Re: iwl3945 firmware errors: tentative debugging 2011-12-21 11:33 ` Stanislaw Gruszka @ 2012-01-17 16:07 ` Pedro Francisco 0 siblings, 0 replies; 8+ messages in thread From: Pedro Francisco @ 2012-01-17 16:07 UTC (permalink / raw) To: Stanislaw Gruszka; +Cc: linux-wireless, ipw3945-devel [-- Attachment #1: Type: text/plain, Size: 1680 bytes --] Hi! Sorry for the delay! On Wed, Dec 21, 2011 at 11:33 AM, Stanislaw Gruszka <sgruszka@redhat.com> wrote: > 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? It does seem fixed! However: I had to tweak a little the patch (attached, for convenience of anyone else following the thread: "IL_" -> "IWL_", file to patch is different and paragraphs are different). Also, probably unrelated, I got _just once_ another firmware error ("iwl3945 Command REPLY_RATE_SCALE failed: FW Error iwl3945 Error setting HW rate table: FFFFFFFB") but since the kernels have changed and I've also changed to the PAE kernel, it's probably unrelated to the patch (also I'm using swcrypto=0 which may help). I'll continue testing but unless there is some other issue I won't report back. Thank you for the fix! -- Pedro [-- Attachment #2: iwlegacy-CUSTOM-PEDRO-do-not-promote-to-active-scan-on-transmistion-detect.patch --] [-- Type: text/x-patch, Size: 946 bytes --] diff --git a/drivers/net/wireless/iwlegacy/iwl3945-base.c b/drivers/net/wireless/iwlegacy/iwl3945-base.c index 66ee156..96f5d31 100644 --- a/drivers/net/wireless/iwlegacy/iwl3945-base.c +++ b/drivers/net/wireless/iwlegacy/iwl3945-base.c @@ -2659,12 +2659,12 @@ int iwl3945_request_scan(struct iwl_priv *priv, 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 ? IWL_GOOD_CRC_TH_DEFAULT : - IWL_GOOD_CRC_TH_DISABLED; + IWL_GOOD_CRC_TH_NEVER; len = iwl_legacy_fill_probe_req(priv, (struct ieee80211_mgmt *)scan->data, vif->addr, priv->scan_request->ie, ^ permalink raw reply related [flat|nested] 8+ messages in thread
* Re: iwl3945 firmware errors: tentative debugging 2011-11-24 11:49 ` iwl3945 firmware errors: tentative debugging Pedro Francisco 2011-11-24 12:54 ` Stanislaw Gruszka @ 2011-11-25 7:00 ` Kalle Valo 2011-11-25 16:18 ` Pedro Francisco 1 sibling, 1 reply; 8+ messages in thread From: Kalle Valo @ 2011-11-25 7:00 UTC (permalink / raw) To: Pedro Francisco; +Cc: linux-wireless Pedro Francisco <pedrogfrancisco@gmail.com> writes: > iwl3945 has had firmware errors triggered 'by' NM after started using > nl80211 instead of wext. Since Intel has stopped supporting iwl3945, > no firmware fix has been possible. It has been workarounded by > disable_hw_scan=1 as default, with the penalty of network performance > being lower and frequent 'hangs' on the connection. > > I was able to trigger the firmware error by doing "iw dev wlan0 scan > passive". By comparison, "iw dev wlan0 scan" does NOT trigger the > firmware error. So NM uses passive scan? Now I'm curious, why is that? -- Kalle Valo ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: iwl3945 firmware errors: tentative debugging 2011-11-25 7:00 ` Kalle Valo @ 2011-11-25 16:18 ` Pedro Francisco 0 siblings, 0 replies; 8+ messages in thread From: Pedro Francisco @ 2011-11-25 16:18 UTC (permalink / raw) To: Kalle Valo; +Cc: linux-wireless Trusting firmware logs, it uses both active and passive scans. As to why, I don't know, though I suppose it'd make sense to let the wireless card handle scanning unless some condition arised which led NM to think it would have to roam soon. On Fri, Nov 25, 2011 at 7:00 AM, Kalle Valo <kvalo@adurom.com> wrote: > Pedro Francisco <pedrogfrancisco@gmail.com> writes: > >> >> I was able to trigger the firmware error by doing "iw dev wlan0 scan >> passive". By comparison, "iw dev wlan0 scan" does NOT trigger the >> firmware error. > > So NM uses passive scan? Now I'm curious, why is that? > ^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2012-01-17 16:07 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[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
2012-01-17 16:07 ` Pedro Francisco
2011-11-25 7:00 ` Kalle Valo
2011-11-25 16:18 ` Pedro Francisco
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).