Bug 886946

Summary: iwl3945 doesn't work in hotspot mode
Product: [Fedora] Fedora Reporter: Jaroslav Škarvada <jskarvad>
Component: kernelAssignee: Stanislaw Gruszka <sgruszka>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 18CC: gansalmon, itamar, jonathan, jwboyer, kernel-maint, linville, madhu.chinakonda
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-01-18 20:43:21 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
dmesg
none
dmidecode
none
lspci -vvv
none
0001-iwlegacy-fix-IBSS-cleanup.patch none

Description Jaroslav Škarvada 2012-12-13 16:17:44 UTC
Description of problem:
iwl3945 doesn't work in NetworkManager's hotspot mode.

Version-Release number of selected component (if applicable):
kernel-3.6.10-4.fc18.i686

How reproducible:
Always

Steps to Reproduce:
1. Enable NetworkManager's hotspot
2. Try to use the hotspot from another machine
  
Actual results:
The hotspot desn't work, OS has very slow response.

Expected results:
Normal work.

Additional info:
Spotted during Network test week.

Dec 13 17:12:29 localhost kernel: [ 1249.038522] iwl3945 0000:0c:00.0: Error Reply type 0x00000447 cmd C_RXON (0x10) seq 0x0401 ser 0x000C0000
Dec 13 17:12:29 localhost kernel: [ 1249.038537] iwl3945 0000:0c:00.0: Command C_RXON failed: FW Error
Dec 13 17:12:29 localhost kernel: [ 1249.038543] iwl3945 0000:0c:00.0: Error setting new configuration (-5).
Dec 13 17:12:29 localhost kernel: [ 1249.039189] iwl3945 0000:0c:00.0: Can't stop Rx DMA.
Dec 13 17:12:29 localhost kernel: [ 1249.040671] ieee80211 phy0: Hardware restart was requested
Dec 13 17:12:29 localhost kernel: [ 1249.040682] iwl3945 0000:0c:00.0: Try to add interface when device not ready
Dec 13 17:12:29 localhost kernel: [ 1249.102219] iwl3945 0000:0c:00.0: Microcode SW error detected. Restarting 0x82000008.
Dec 13 17:12:29 localhost kernel: [ 1249.102228] iwl3945 0000:0c:00.0: Loaded firmware version: 15.32.2.9
Dec 13 17:12:29 localhost kernel: [ 1249.102262] iwl3945 0000:0c:00.0: Start IWL Error Log Dump:
Dec 13 17:12:29 localhost kernel: [ 1249.102268] iwl3945 0000:0c:00.0: Status: 0x000202E4, count: 1
Dec 13 17:12:29 localhost kernel: [ 1249.102273] iwl3945 0000:0c:00.0: Desc       Time       asrtPC  blink2 ilink1  nmiPC   Line
Dec 13 17:12:29 localhost kernel: [ 1249.102489] iwl3945 0000:0c:00.0: SYSASSERT     (0x5) 0000029214 0x008B6 0x13BE0 0x0031C 0x00000 1095

Comment 1 Jaroslav Škarvada 2012-12-13 16:31:58 UTC
Created attachment 663045 [details]
dmesg

Comment 2 Jaroslav Škarvada 2012-12-13 16:32:58 UTC
Created attachment 663046 [details]
dmidecode

Comment 3 Jaroslav Škarvada 2012-12-13 16:33:23 UTC
Created attachment 663047 [details]
lspci -vvv

Comment 4 Stanislaw Gruszka 2012-12-22 14:15:15 UTC
(In reply to comment #0)
> Version-Release number of selected component (if applicable):
> kernel-3.6.10-4.fc18.i686

I was able to reproduce this on 3.6.6-4.fc18, but not on updated 3.6.10-4.fc18, (which include fix for very similar bug 883414). Are you sure you run test on new kernel?

Comment 5 Jaroslav Škarvada 2013-01-04 16:06:03 UTC
I retested with updated system (kernel-3.6.11-3.fc18). The only change I noticed the nm hotspot mode now use adhoc network mode (I think it previously used infrastructure, but I am not sure). In adhoc mode with kernel-3.6.11-3 everything worked as expected. When switched to infrastracture the same problem appear.

Comment 6 Stanislaw Gruszka 2013-01-16 10:46:39 UTC
It's yet another problem, we do not correctly change interface type when switching back from IBSS to STA mode.

Comment 7 Stanislaw Gruszka 2013-01-16 10:48:11 UTC
Created attachment 679466 [details]
0001-iwlegacy-fix-IBSS-cleanup.patch

Fix for this problem, tested by myself.

Comment 8 Stanislaw Gruszka 2013-01-16 10:49:23 UTC
Josh, please apply above patch as fix for this bug. I just posted it upstream and cc -stable too.

Comment 9 Josh Boyer 2013-01-16 13:32:43 UTC
Applied on all branches.  Thanks!

Comment 10 Fedora Update System 2013-01-16 18:38:32 UTC
kernel-3.7.2-204.fc18 has been submitted as an update for Fedora 18.
https://admin.fedoraproject.org/updates/kernel-3.7.2-204.fc18

Comment 11 Fedora Update System 2013-01-16 23:11:36 UTC
kernel-3.6.11-8.fc17 has been submitted as an update for Fedora 17.
https://admin.fedoraproject.org/updates/kernel-3.6.11-8.fc17

Comment 12 Fedora Update System 2013-01-18 19:02:25 UTC
kernel-3.7.3-101.fc17 has been submitted as an update for Fedora 17.
https://admin.fedoraproject.org/updates/kernel-3.7.3-101.fc17

Comment 13 Fedora Update System 2013-01-18 20:43:23 UTC
kernel-3.7.2-204.fc18 has been pushed to the Fedora 18 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 14 Fedora Update System 2013-01-24 22:39:06 UTC
kernel-3.7.3-101.fc17 has been pushed to the Fedora 17 stable repository.  If problems still persist, please make note of it in this bug report.