Opened 7 years ago

Closed 12 months ago

#9263 closed bug (not reproducible)

Random iprowifi4965 failure on Intel 6230 wireless

Reported by: kallisti5 Owned by: nobody
Priority: normal Milestone: Unscheduled
Component: Drivers/Network/iprowifi4965 Version: R1/Development
Keywords: iprowifi4965 Cc:
Blocked By: Blocking:
Has a Patch: no Platform: All

Description (last modified by kallisti5)

hrev44854 gcc4 iprowifi4965 driver

device Network controller [2|80|0]
  vendor 8086: Intel Corporation
  device 0089: Centrino Advanced-N + WiMAX 6250 [Kilmer Peak]

Generally the following happens on my laptop.

  • Reboot - wireless networks found
  • Reboot - no wireless networks found
  • Reboot - no wireless networks found
  • Reboot - wireless networks found

I've recorded a clean syslog from each situation.

Attachments (7)

1-yes-syslog (124.1 KB) - added by kallisti5 7 years ago.
2-no-syslog (116.8 KB) - added by kallisti5 7 years ago.
3-no-syslog (116.8 KB) - added by kallisti5 7 years ago.
4-yes-syslog (124.7 KB) - added by kallisti5 7 years ago.
iprowifi4965_syslog (16.4 KB) - added by Pete 6 years ago.
Section of syslog when iprowifi4965 failed to appear in network
ifconfig-nowifi.txt (864 bytes) - added by kallisti5 6 years ago.
syslog-nowifif.txt (263.9 KB) - added by kallisti5 6 years ago.

Download all attachments as: .zip

Change History (29)

Changed 7 years ago by kallisti5

Attachment: 1-yes-syslog added

Changed 7 years ago by kallisti5

Attachment: 2-no-syslog added

Changed 7 years ago by kallisti5

Attachment: 3-no-syslog added

Changed 7 years ago by kallisti5

Attachment: 4-yes-syslog added

comment:1 Changed 7 years ago by diver

From the first syslog:

2149	KERN: [net/iprowifi4965/0] start running, 1 vaps running
2150	KERN: [net/iprowifi4965/0] ieee80211_new_state_locked: INIT -> SCAN (nrunning 0 nscanning 0)
2151	KERN: [net/iprowifi4965/0] ieee80211_newstate_cb: INIT -> SCAN arg 0
2152	KERN: [net/iprowifi4965/0] sta_newstate: INIT -> SCAN (0)
2154	KERN: /dev/net/iprowifi4965/0: media change, media 0x100a0 quality 1000 speed 1000000000

Same place in the second syslog:

2148	KERN: [iprowifi4965] (iwn) iwn5000_post_alive: crystal calibration failed, error -2147483637
2149	KERN: [iprowifi4965] (iwn) iwn_init_locked: could not initialize hardware, error -2147483637
2150	KERN: [net/iprowifi4965/0] start running, 1 vaps running

comment:2 Changed 7 years ago by kallisti5

Nice catch diver! Given the amount of spam from the wireless drivers I never picked up on that error :)

comment:3 Changed 7 years ago by kallisti5

Component: Network & Internet/WirelessDrivers/Network/iprowifi4965
Description: modified (diff)
Keywords: iprowifi4965 added
Owner: changed from axeld to nobody
Summary: Erratic wireless network behaviourRandom iprowifi4965 failure on Intel 6230 wireless

Changed 6 years ago by Pete

Attachment: iprowifi4965_syslog added

Section of syslog when iprowifi4965 failed to appear in network

comment:4 Changed 6 years ago by Pete

I assume my experience is related. I just got an iprowifi4965 card installed in my laptop, understanding it was compatible, but when I booted up it failed to appear in the Network Prefs (or in ifconfig's list). Rebooting (several times) didn't change things.

On Stefano's suggestion (via mailing list), I just did 'ifconfig /dev/net/iprowifi4965/0 up' and -- gosh! -- I now have wifi! If that's supposed to be needed this is not documented anywhere. Anyhow, we'll see if it stays up.

In any case, for completeness, I've attached the section of syslog for the wifi from the boot before I got it working.

comment:5 Changed 6 years ago by kallisti5

I'm still seeing this issue as of hrev46224

Attaching complete logs. I tried doing a scan, and get no wireless networks. I tried doing a join, and it wouldn't connect.

I'll try an ifconfig up next time I boot the laptop. Wonder if some initilization step is failing and trying the up fixes it?

comment:6 Changed 6 years ago by kallisti5

My Device:

device Network controller [2|80|0]
  vendor 8086: Intel Corporation
  device 0089: Centrino Advanced-N + WiMAX 6250 [Kilmer Peak]

Changed 6 years ago by kallisti5

Attachment: ifconfig-nowifi.txt added

Changed 6 years ago by kallisti5

Attachment: syslog-nowifif.txt added

comment:7 Changed 6 years ago by Pete

I wonder if you actually might have a hardware problem? My 4965 seems to be behaving itself with the patch (I haven't updated the system in a while -- just applied the patch to the driver.) However, I see in your syslog these lines:

KERN: [iprowifi4965] (iwn) iwn5000_post_alive: crystal calibration failed, error -2147483637
KERN: [iprowifi4965] (iwn) iwn_init_locked: could not initialize hardware, error -2147483637

I've never seen this in my logs. Sounds suspicious...

comment:8 Changed 6 years ago by kallisti5

hm.. looks like an ongoing issue in the BSD driver:

http://gnats.netbsd.org/45899

The card works fine under Linux.

comment:9 in reply to:  8 Changed 6 years ago by Pete

Replying to kallisti5:

hm.. looks like an ongoing issue in the BSD driver:

http://gnats.netbsd.org/45899

The error in that certainly looks familiar...!

I notice that my hardware is actually slightly different, apparently. My device listing is just:

device Network controller [2|80|0]
  vendor 8086: Intel Corporation
  device 008a: Centrino Wireless-N 1030

so I guess it's not subject to the glitch.

comment:10 Changed 6 years ago by kallisti5

I've ordered a replacement PCIe card for this laptop (BCM4322). Assuming that the replacement works in my machine, i'm offering this PCIe card free to any developer who wants to try and fix the BSD driver. Contact me for more information kallisti5 :A.T: unixzen.com

comment:11 Changed 4 years ago by kallisti5

Milestone: R1/beta1Unscheduled

As this is due to an upstream issue, i'm moving this to unscheduled as the only solution for this one is time (waiting on BSD to fix the issue)

comment:13 Changed 18 months ago by Giova84

I found the same issue with iprowifi2200 (on a Sony Vaio).

Version 0, edited 18 months ago by Giova84 (next)

comment:14 in reply to:  7 ; Changed 18 months ago by Giova84

Replying to Pete Goodeve:

just applied the patch to the driver

There is a patch for this driver, somewhere?

My WiFi adapter is reported as:

device Network controller [2|80|0]
  vendor 8086: Intel Corporation
  device 4220: PRO/Wireless 2200BG [Calexico2] Network Connection

Driver: /boot/system/add-ons/kernel/drivers/dev/net/iprowifi2200

And as I've said, I encounter the same issue as described in this ticket.

comment:15 in reply to:  14 ; Changed 18 months ago by Pete

Replying to Giova84:

Replying to Pete Goodeve:

just applied the patch to the driver

There is a patch for this driver, somewhere?

Heh. Sorry -- I don't remember the details of that at all! I think I may have been referring to the suggestion to do an 'ifconfig up'. If so, I mis-spoke terribly! In any case, I'm sure any patch must have been applied long ago, as I now run the supplied driver without any patches. The only thing I do in the bootscript is "ifconfig /dev/net/iprowifi4965/0 -ht", but it doesn't seem to make much difference whether I do or not. I still seem to often lose WiFi after 1/2 hour or so.

comment:16 in reply to:  15 Changed 18 months ago by Giova84

Replying to Pete Goodeve:

I still seem to often lose WiFi after 1/2 hour or so.

To me happens exactly what Alexander reported: after a batch of reboots (or shutdown-power on), my wifi adapter is no longer able to find any network; I notice that I need three reboot to make it able again to find wifi networks.

By looking at the other comments, seems an issue from FreeBSD? So, after five years hasn't beed resolved yet? :-[

comment:17 Changed 18 months ago by Giova84

Sorry for the noise. I noticed that after about three hours, ths issue will back. If I do ifconfig /dev/net/iprowifi2200/o up and then I do a wifi scan, the adapter will find again all available wifi networks, but If I attemtp to join (doesn't matter if I join using command line or GUI), nothing will happen - I mean that it doesn't connect - and then the adapter loose again the ability to find networks; I can re-do ifconfig /dev/net/iprowifi2200/o up to discover again wifi networks, but again it cannot connect.

Maybe there is a way to reload the driver? If I reload net_server, doesn't help.

comment:18 Changed 14 months ago by miqlas

Had the same symptomes today with a Intel Corporation Centrino Advanced-N 6235 [8086:088f] Subsystem: Device 6052:8680

I did found that the current Haiku driver doesn't list this PCIID, only the 088e one, so i patched the sources, built it, and got the well known messages:

KERN: [iprowifi4965] (iwn) iwn5000_post_alive: crystal calibration failed, error -2147483637 KERN: [iprowifi4965] (iwn) iwn_init_locked: could not initialize hardware, error -2147483637

I read a bit about it, and tought maybe the firmware should be updated, but Haiku have the latest firmware for this card-family (diffed the actual firmwares).

Then i noticed, the souce code checks for some kind of "pid" values, and depending their value it loads this or that firmware. I patched the source to load always the "iwn6000g2bfw" firmware.

After rebooting my wlan card works, i type this message trough wlan.

comment:19 Changed 14 months ago by pulkomandy

Please attach a diff (no need for a proper patch since this will probably need a rework). It will make it easier to see what you did and turn it into a more proper patch.

comment:20 Changed 12 months ago by waddlesplash

iprowifi4965 was synced with FreeBSD, please retest after hrev52041.

Last edited 12 months ago by waddlesplash (previous) (diff)

comment:21 Changed 12 months ago by kallisti5

Hardware no longer available to test. Close?

comment:22 Changed 12 months ago by waddlesplash

Resolution: not reproducible
Status: newclosed
Note: See TracTickets for help on using tickets.