I have a similar but a slightly different problem. I have a Macbook 2,1. Wifi works fine after a reboot (and no "unable to set channel" in dmesg so this problem is fixed) but it does not connect to an access point after suspend to RAM. Unloading and reloading ath9k cures the problem (so a simple workround can be put into the suspend scripts) but, as the original poster writes, after the second reload NetworkManager hangs and one cannot even do ifconfig without a lockup.
The problem is present with linux-image-2.6.27-11-generic and linux-image-2.6.27-12-generic
lspci -v shows
02:00.0 Network controller: Atheros Communications Inc. AR5008 Wireless Network Adapter (rev 01)
Subsystem: Apple Computer Inc. Device 0087
Flags: bus master, fast devsel, latency 0, IRQ 17
Memory at 50100000 (64-bit, non-prefetchable) [size=64K] Capabilities: [40] Power Management version 2 Capabilities: [50] Message Signalled Interrupts: Mask- 64bit- Queue=0/0 Enable- Capabilities: [60] Express Legacy Endpoint, MSI 00 Capabilities: [90] MSI-X: Enable- Mask- TabSize=1 Capabilities: [100] Advanced Error Reporting <?> Capabilities: [140] Virtual Channel <?>
Kernel driver in use: ath9k
Kernel modules: ath9k
uname -a
Linux macbook 2.6.27-12-generic #1 SMP Thu Feb 5 09:26:35 UTC 2009 i686 GNU/Linux
I have a similar but a slightly different problem. I have a Macbook 2,1. Wifi works fine after a reboot (and no "unable to set channel" in dmesg so this problem is fixed) but it does not connect to an access point after suspend to RAM. Unloading and reloading ath9k cures the problem (so a simple workround can be put into the suspend scripts) but, as the original poster writes, after the second reload NetworkManager hangs and one cannot even do ifconfig without a lockup.
The problem is present with linux-image- 2.6.27- 11-generic and linux-image- 2.6.27- 12-generic
lspci -v shows
02:00.0 Network controller: Atheros Communications Inc. AR5008 Wireless Network Adapter (rev 01)
Capabilities: [40] Power Management version 2
Capabilities: [50] Message Signalled Interrupts: Mask- 64bit- Queue=0/0 Enable-
Capabilities: [60] Express Legacy Endpoint, MSI 00
Capabilities: [90] MSI-X: Enable- Mask- TabSize=1
Capabilities: [100] Advanced Error Reporting <?>
Capabilities: [140] Virtual Channel <?>
Subsystem: Apple Computer Inc. Device 0087
Flags: bus master, fast devsel, latency 0, IRQ 17
Memory at 50100000 (64-bit, non-prefetchable) [size=64K]
Kernel driver in use: ath9k
Kernel modules: ath9k
uname -a
Linux macbook 2.6.27-12-generic #1 SMP Thu Feb 5 09:26:35 UTC 2009 i686 GNU/Linux