Opened 5 years ago

Closed 14 months ago

#10729 closed bug (fixed)

Intel wireless driver crashes on connection on WiFi Link 5300

Reported by: jjido Owned by: korli
Priority: normal Milestone: R1
Component: Drivers/Network/iprowifi4965 Version: R1/Development
Keywords: Cc:
Blocked By: Blocking:
Has a Patch: yes Platform: All

Description

After connecting to my network, the wifi driver crashes. I tested Alpha 4 and the latest nightly (hrev47061).

It is a WPA protected open network. The wireless looks to work in other respects.

The card is an Intel wifi link 5300.

I was able to use the network with FreeBSD 10, so it may just be an issue of updating the iwn driver.

Syslog:

KERN: ieee80211_notify_scan_done
KERN: [net/iprowifi4965/0] ieee80211_newstate_cb: SCAN -> AUTH arg 192
KERN: [net/iprowifi4965/0] sta_newstate: SCAN -> AUTH (192)
KERN: [net/iprowifi4965/0] ieee80211_ref_node (ieee80211_send_mgmt:1892) 0x8244b400<02:24:17:f3:13:0a> refcnt 3
KERN: [net/iprowifi4965/0] [02:24:17:f3:13:0a] recv auth frame with algorithm 0 seq 2
KERN: [net/iprowifi4965/0] ieee80211_new_state_locked: AUTH -> ASSOC (nrunning 0 nscanning 0)
KERN: [net/iprowifi4965/0] ieee80211_newstate_cb: AUTH -> ASSOC arg 0
KERN: [net/iprowifi4965/0] sta_newstate: AUTH -> ASSOC (0)
KERN: [net/iprowifi4965/0] ieee80211_ref_node (ieee80211_send_mgmt:1892) 0x8244b400<02:24:17:f3:13:0a> refcnt 3
KERN: [net/iprowifi4965/0] ieee80211_wme_updateparams_locked: WME params updated, cap_info 0x8
KERN: [net/iprowifi4965/0] [02:24:17:f3:13:0a] switch station to HT20 channel 2442/0x10480
KERN: [net/iprowifi4965/0] [02:24:17:f3:13:0a] AMRR initial rate 72
KERN: [net/iprowifi4965/0] [02:24:17:f3:13:0a] assoc success at aid 1: long preamble, short slot time, QoS, HT20 (+AMPDU)
KERN: [net/iprowifi4965/0] ieee80211_new_state_locked: ASSOC -> RUN (nrunning 0 nscanning 0)
KERN: [net/iprowifi4965/0] ieee80211_newstate_cb: ASSOC -> RUN arg 16
KERN: [net/iprowifi4965/0] sta_newstate: ASSOC -> RUN (16)
KERN: ieee80211_notify_node_join
KERN: [net/iprowifi4965/0] [02:24:17:f3:13:0a] ieee80211_node_authorize: inact_reload 20
KERN: [iprowifi4965] (iwn) iwn_intr: fatal firmware error
KERN: firmware error log:
KERN:   error type      = "SYSASSERT" (0x00000005)
KERN:   program counter = 0x00003130
KERN:   source line     = 0x00000585
KERN:   error data      = 0x0000000100000000
KERN:   branch link     = 0x0000312A0000312A
KERN:   interrupt link  = 0x0000091600000000
KERN:   time            = 2945585960
KERN: driver status:
KERN:   tx ring  0: qid=0  cur=2   queued=2  
KERN:   tx ring  1: qid=1  cur=0   queued=0  
KERN:   tx ring  2: qid=2  cur=0   queued=0  
KERN:   tx ring  3: qid=3  cur=2   queued=0  
KERN:   tx ring  4: qid=4  cur=67  queued=0  
KERN:   tx ring  5: qid=5  cur=0   queued=0  
KERN:   tx ring  6: qid=6  cur=0   queued=0  
KERN:   tx ring  7: qid=7  cur=0   queued=0  
KERN:   tx ring  8: qid=8  cur=0   queued=0  
KERN:   tx ring  9: qid=9  cur=0   queued=0  
KERN:   tx ring 10: qid=10 cur=0   queued=0  
KERN:   tx ring 11: qid=11 cur=0   queued=0  
KERN:   tx ring 12: qid=12 cur=0   queued=0  
KERN:   tx ring 13: qid=13 cur=0   queued=0  
KERN:   tx ring 14: qid=14 cur=0   queued=0  
KERN:   tx ring 15: qid=15 cur=0   queued=0  
KERN:   tx ring 16: qid=16 cur=0   queued=0  
KERN:   tx ring 17: qid=17 cur=0   queued=0  
KERN:   tx ring 18: qid=18 cur=0   queued=0  
KERN:   tx ring 19: qid=19 cur=0   queued=0  
KERN:   rx ring: cur=21
KERN: /dev/net/iprowifi4965/0: media change, media 0x8600af quality 1000 speed 10000000
KERN: wlan_control: 9235, 15
KERN: wlan_control: 9235, 76
KERN: Last message repeated 9 times.
KERN: wlan_control: 9235, 15
KERN: wlan_control: 9235, 76
KERN: Last message repeated 9 times.
KERN: wlan_control: 9235, 78
KERN: wlan_control: 9235, 76
KERN: register_domain(9, unix)
KERN: wlan_control: 9235, 16
KERN: wlan_control: 9235, 17
KERN: wlan_control: 9235, 26
KERN: wlan_control: 9235, 98
KERN: wlan_control: 9234, 20
KERN: Last message repeated 3 times.
KERN: wlan_control: 9234, 25
KERN: ifmedia_ioctl: no media found for 0x6008f
KERN: Last message repeated 4 times.
KERN: Last message repeated 3 times.

Attachments (2)

iwn.patch (200.6 KB ) - added by jjido 5 years ago.
Patched iwn source (using FreeBSD sources)
iwn.2.patch (96.6 KB ) - added by jjido 5 years ago.
FreeBSD 10.0.0 based patch

Download all attachments as: .zip

Change History (16)

comment:1 by diver, 5 years ago

Component: - GeneralDrivers/Network/iprowifi4965

comment:2 by jjido, 5 years ago

The crash does not occur with the latest driver compiled from the FreeBSD source.

I will attach a patch.

comment:3 by diver, 5 years ago

Milestone: UnscheduledR1
Owner: changed from nobody to korli
Priority: highnormal
Status: newassigned
Version: R1/alpha4R1/Development

by jjido, 5 years ago

Attachment: iwn.patch added

Patched iwn source (using FreeBSD sources)

comment:4 by jjido, 5 years ago

Has a Patch: set

comment:5 by korli, 5 years ago

Please provide a git-formatted patch, with information on the FreeBSD tag used (when possible avoid HEAD).

comment:6 by jjido, 5 years ago

My patch is apparently based on this code:

http://sources.freebsd.org/RELENG_8/src/sys/dev/iwn/

Mmh. I don't know why I selected that version ???

Which one would be more suitable, I will happily test it with my hardware.

comment:7 by korli, 5 years ago

Suitable would be version 10.0.0 but the wireless FreeBSD code has too much changed and a simple update doesn't work (or even build) as is. In any case: http://svnweb.freebsd.org/base/release/10.0.0/sys/dev/iwn/

comment:8 by jjido, 5 years ago

The 9.3.0 has been updated 4 weeks ago, as opposed to 6 months for the 10.0.0 branch. I will try getting either to compile and test it on my laptop.

http://svnweb.freebsd.org/base/release/9.3.0/sys/dev/iwn/

comment:9 by korli, 5 years ago

We already use the 9.3 release.

comment:10 by jjido, 5 years ago

Ok, I can see that the code at head is from 9.3 (which fails) and 10.0.0 doe snot compile.

The first error is: /boot/home/dev/haiku/src/add-ons/kernel/drivers/network/wlan/iprowifi4965/dev/iwn/if_iwn.c: In function `iwn_rate_to_plcp': /boot/home/dev/haiku/src/add-ons/kernel/drivers/network/wlan/iprowifi4965/dev/iwn/if_iwn.c:2301: warning: implicit declaration of function `ieee80211_legacy_rate_lookup'

I will see if I can find the missing symbols and add them to src/libs/compat/freebsd_wlan/net80211/ieee80211_var.h

comment:11 by korli, 5 years ago

It's also very possible that the FreeBSD compat layer isn't up to date with FreeBSD network layer changes. Could you check with FreeBSD 9.3 that your wireless connection works as expected? Maybe related: http://bugs.dragonflybsd.org/issues/2675

comment:12 by jjido, 5 years ago

I managed to compile the FreeBSD 10.0.0 driver, and tested it successfully. Works fine for me.

Attaching patch.

by jjido, 5 years ago

Attachment: iwn.2.patch added

FreeBSD 10.0.0 based patch

comment:13 by korli, 5 years ago

Summary: Intel wireless driver crashes on connectionIntel wireless driver crashes on connection on WiFi Link 5300

This patch cannot unfortunately be applied as is. I'll try to come with a release update, but network drivers are sensitive subject, difficult to test extensively.

comment:14 by waddlesplash, 14 months ago

Resolution: fixed
Status: assignedclosed

The 4965 driver has been synced with FreeBSD 11 now.

Note: See TracTickets for help on using tickets.