Bug 304652

Summary: iwl3945 needs "options iwl3945 disable_hw_scan=1"
Product: [openSUSE] openSUSE 10.3 Reporter: Klaus Kämpf <kkaempf>
Component: NetworkAssignee: Michal Marek <mmarek>
Status: RESOLVED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Critical    
Priority: P5 - None CC: fvzwieten, riggwelter
Version: Beta 2   
Target Milestone: ---   
Hardware: i686   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: output of grep
output of alias
bzipped tar of /etc/mod*

Description Klaus Kämpf 2007-08-25 12:39:23 UTC
$summary says it all, I cannot get the wireless to work without this option.
Comment 1 Joachim Gleissner 2007-08-28 15:03:36 UTC
Am I right that you see "iwl3945: ipw going down" in the kernel log otherwise, with the interface being non-functional afterwards?
Comment 2 Klaus Kämpf 2007-08-28 15:19:12 UTC
Yes
Comment 3 Joachim Gleissner 2007-08-30 12:57:46 UTC
iwlwifi 0.1.2 as in stable should fix this. Could you give it a try?
Comment 4 Klaus Kämpf 2007-08-31 15:21:35 UTC
Tried 0.1.12 from factory, didn't change anything.
Comment 5 Timo Hoenig 2007-08-31 16:20:28 UTC
On my system disable_hw_scan helps, too.  Otherwise ipw usually goes down within five minutes after associating with my access point at home.

thoenig@zimtstern:~> rpm -qa |grep iwl
iwl3945-ucode-2.14.1.5-5
iwlwifi-kmp-default-0.1.12_2.6.22.5_4-2

While talking to Mr. Gogol to acquire more information on this issue my way crossed some post which describes the closed source firmware scan as pointless.  Further the post claims that the scan of mac80211 is sufficient.

Thus, I'm asking why we don't set disable_hw_scan=1 by default?
Comment 6 Joachim Gleissner 2007-08-31 16:40:18 UTC
I think we should go with disable_hw_scan=1. I couldn't find any drawbacks so far. I'm going to submit a package with changed default.
Comment 7 Timo Hoenig 2007-08-31 16:45:10 UTC
Great.

Holger, as iwl3945 was working for you without disable_hw_scan=1 before can you please use it for a while with setting this parameter to see if it brings any regression for you?  Thanks.
Comment 8 Holger Macht 2007-08-31 16:49:18 UTC
I will give it a try.
Comment 9 Klaus Kämpf 2007-08-31 18:08:39 UTC
So things improved a bit with latest versions.
I am able to get a wireless connection at home (wpa encrypted) without "disable_hw_scan". This didn't work with plain beta2.

However, two problems still remain
- iwl3945 is not loaded automatically
- I am not able to connect to 'onenet' (unencrypted, but not publishing its essid)
Comment 10 Joachim Gleissner 2007-09-03 14:53:10 UTC
The latter is a known problem. Hidden SSID does not work in conjunction with wpa_supplicant, that means, no WPA with hidden APs and no NetworkManager at all with hidden APs yet. Using ifup, you should be able to connect to hidden non-WPA APs. iwl3945 not loading automatically is strange. Maybe a udev problem. Kay, any idea?
Comment 11 Klaus Kämpf 2007-09-03 15:52:49 UTC
"no WPA with hidden APs and no NetworkManager at all with hidden APs yet. Using ifup, you should be able to connect to hidden non-WPA APs."

Since ifup just passes the request to NetworkManager, this means that I have to disable NetworkManager alltogether, right ?
Comment 12 Timo Hoenig 2007-09-03 17:05:51 UTC
Yes.
Comment 13 Kay Sievers 2007-09-06 00:46:43 UTC
What does:
  grep . /sys/bus/pci/devices/*/modalias
print?

What does:
  modinfo iwl3945 | grep alias
print?
Comment 14 Klaus Kämpf 2007-09-06 07:37:58 UTC
Created attachment 162209 [details]
output of grep
Comment 15 Klaus Kämpf 2007-09-06 07:39:03 UTC
Created attachment 162211 [details]
output of alias

If I'm not mistaken, the last but one line from the grep output should match the modules alias.
Comment 16 Holger Macht 2007-09-06 07:48:32 UTC
Just an update regarding comment #7: I'm using the 'disable_hw_scan=1' for several days now and didn't note any blackouts or such.
Comment 17 Klaus Kämpf 2007-09-06 07:57:24 UTC
Confirmed, it doesn't seem to harm. It was required with Beta2 but my system works now (post Beta2) without this parameter.
Comment 18 Kay Sievers 2007-09-06 09:30:06 UTC
What does:

/sbin/modprobe --first-time -n -v pci:v00008086d00004227sv00008086sd00001011bc02sc80i00

print?
Comment 19 Klaus Kämpf 2007-09-06 09:44:42 UTC
WARNING: module 'ipw3945' is unsupported
WARNING: module 'iwl3945' is unsupported
FATAL: Module pci:v00008086d00004227sv00008086sd00001011bc02sc80i00 not found.
Comment 20 Kay Sievers 2007-09-06 09:52:24 UTC
Remove the entries from /etc/modprobe.d/unsupported.blacklist. Don't know who made that entries.
Comment 21 Klaus Kämpf 2007-09-06 10:03:35 UTC
Created attachment 162273 [details]
bzipped tar of /etc/mod*

iwl, 3945 or 8086 do not appear in any /etc/mod* files. See attachment for full list of files.
Comment 22 Kay Sievers 2007-09-06 10:36:33 UTC
Looks like an issue with the "supported modules" feature, added to module-init-tools.
Comment 23 Klaus Kämpf 2007-09-11 09:56:23 UTC
Adding agruen and zoz because comments #13 to #22 contain some information about problems with automatic loading of the iwl3945 module.
Comment 24 Klaus Kämpf 2007-09-11 10:00:42 UTC
for now, I followed comment #20 and did the following change to
/etc/modprobe.d/unsupported.blacklist

-  include modules.unsupported.blacklist
+  #include modules.unsupported.blacklist

With the current setting (wlan blacklisted) neither iwl3945 nor ipw3945 are auto-loaded in 10.3
Comment 25 Andreas Gruenbacher 2007-09-11 13:07:11 UTC
Marian, do the module-init-tools create the blacklist file?
Comment 26 Fred van Zwieten 2007-09-11 21:27:18 UTC
Could bug 308962 be related somehow?
Comment 27 Christian Zoz 2007-09-12 09:12:17 UTC
Yes, module-init-tools creates the modules.unsupported.blacklist and /etc/modprobe.d/unsupported.blacklist. But for openSUSE the include line should just be a comment and not active. The blacklist is on only in SLE*.

Michal, can you please fix this?
Comment 28 Michal Marek 2007-09-12 10:03:01 UTC
Klaus, was this a new install or an update (from 10.2?).
Comment 29 Klaus Kämpf 2007-09-12 10:08:49 UTC
It was an upgrade from 10.2 to 10.3beta2 at first. I'm currently running 10.3B3 on my laptop.
Comment 30 Michal Marek 2007-09-12 11:56:42 UTC
Well, and do you happen to remember if the autoloading of unsupported modules was enabled (ie. the default LOAD_UNSUPPORTED_MODULES_AUTOMATICALLY=yes in /etc/sysconfig/hardware/config)?

Has anyone else seen this?

As a band-aid, I could change the package to allways install the commented out file, because we aren't using this package in any SLE* product yet...
Comment 31 Klaus Kämpf 2007-09-12 11:59:21 UTC
/etc/sysconfig/hardware/config is empty on the current system. I do not know if this file was present before, sorry.

I did use the ipw3945 with the 10.2 installation though.
Comment 32 Michal Marek 2007-09-12 16:23:59 UTC
BTW, I did a 10.2->10.3 beta3 update and the line was commented out as expected...
Comment 33 Michal Marek 2007-09-12 17:27:33 UTC
For a while I thought grep or sed could have been missing when the %post scriplet was run, but the package requires util-linux which requires sed and coreutils, so that part sould be ok (esp. during an update).
Comment 34 Klaus Kämpf 2007-09-12 17:47:15 UTC
So then the origin of this bug gets clearer.

If binaries from util-linux are used in %pre or %post scripts, you have to _pre_require util-linux
Comment 35 Michal Marek 2007-09-13 07:57:47 UTC
(In reply to comment #34 from Klaus Kaempf)
> If binaries from util-linux are used in %pre or %post scripts, you have to
> _pre_require util-linux

Right, prerequiring sed and grep is definitely correct (will submit shortly), but I'm not sure if this causes the problem, first because you did an update, so there should have been at least the 10.2 versions, second Requires vs. PreReq should make no difference to the sorting AFAIK (correct me if I'm wrong).
Comment 36 Michal Marek 2007-09-13 08:12:23 UTC
I submitted module-init-tools with "PreReq: grep sed", thanks for pointing out. Let's hope this fixes it, if not please reopen. I also asked on opensuse-factory if people could check their /etc/modprobe.d/unsupported.blacklist. Resolving as FIXED for now.
Comment 37 Klaus Kämpf 2007-09-13 08:20:28 UTC
There is a _huge_ difference between req and prereq.

If one looks at the whole transaction (the complete install or the complete
upgrade), the difference becomes apparent:

Requires is a run-time dependency and says that _at the end of the transaction_
the required package has to be present.

Pre-Requires is an install-time dependency and says that _when the requiring
package is installed_ the required package has to be present.

This also affects the upgrade since the upgrade is also treated as one (big)
transaction so without the prereq the 10.2 version might still be installed but
there is no guarantee that its runable. The 10.2 util-linux probably depends on
a 10.2 glibc which is already upgraded to 10.3.
Comment 38 Kay Sievers 2007-09-18 08:32:52 UTC
*** Bug 301088 has been marked as a duplicate of this bug. ***