Found a solution (not a fix) for 900ha with kernel 2.6.38+. To turn wifi on, after Fn+F2 enables the device, you just need to force pci rescan:
# echo 1 > /sys/bus/pci/rescan
and then load ath5k module
#modprobe ath5k
When the device gets turned off by Fn+f2 key I have to manually remove it from kernel. Otherwise it won't let to reload itself.
##first remove ath5k module, as it gets kernel panic when pci device is removed: #modprobe -r ath5k ##remove the wlan device #echo 1 > /sys/bus/pci/devices/0000:02:00.0/remove ##rescan pci-bus #echo 1 > /sys/bus/pci/rescan
So I had to make rules for acpid event 0x10 - and it seems to work fine. Also it doesn't need forced pciehp anymore.
Found a solution (not a fix) for 900ha with kernel 2.6.38+.
To turn wifi on, after Fn+F2 enables the device, you just need to force pci rescan:
# echo 1 > /sys/bus/pci/rescan
and then load ath5k module
#modprobe ath5k
When the device gets turned off by Fn+f2 key I have to manually remove it from kernel. Otherwise it won't let to reload itself.
##first remove ath5k module, as it gets kernel panic when pci device is removed: pci/devices/ 0000:02: 00.0/remove
#modprobe -r ath5k
##remove the wlan device
#echo 1 > /sys/bus/
##rescan pci-bus
#echo 1 > /sys/bus/pci/rescan
So I had to make rules for acpid event 0x10 - and it seems to work fine. Also it doesn't need forced pciehp anymore.