Hello,
With default files I can turn off wifi using Fn+F2, but I cannot turn it on.

Debian version: lenny

Installed software:
linux-image-2.6.26-1-686             2.6.26-4
rt2860-modules-2.6.26-1-686          1.7.0.0-1+2.6.26-4
eeepc-acpi-scripts                   1.0.4

When I try to turn on the wifi there is a lot of messages in dmesg:

Sep  7 20:28:04 jalapeno kernel: [  246.961885] pci_hotplug: PCI Hot Plug PCI 
Core version: 0.5
Sep  7 20:28:04 jalapeno kernel: [  246.968802] pciehp: HPC vendor_id 8086 
device_id 27d0 ss_vid 0 ss_did 0
Sep  7 20:28:04 jalapeno kernel: [  246.970301] pciehp: HPC vendor_id 8086 
device_id 27d2 ss_vid 0 ss_did 0
Sep  7 20:28:04 jalapeno kernel: [  246.970642] pciehp: HPC vendor_id 8086 
device_id 27d4 ss_vid 0 ss_did 0
Sep  7 20:28:04 jalapeno kernel: [  246.971280] pciehp: HPC vendor_id 8086 
device_id 27d6 ss_vid 0 ss_did 0
Sep  7 20:28:04 jalapeno kernel: [  246.972168] pciehp: PCI Express Hot Plug 
Controller Driver version: 0.4
Sep  7 20:28:05 jalapeno kernel: [  248.190855]
Sep  7 20:28:05 jalapeno kernel: [  248.190855]
Sep  7 20:28:05 jalapeno kernel: [  248.190855] === pAd = f8e61000, size = 
580788 ===
Sep  7 20:28:05 jalapeno kernel: [  248.190855]
Sep  7 20:28:05 jalapeno kernel: [  248.190855] <-- RTMPAllocAdapterBlock, 
Status=0
Sep  7 20:28:06 jalapeno kernel: [  249.205817] RX DESC ef5f3000  size = 2048
Sep  7 20:28:06 jalapeno kernel: [  249.208225] <-- RTMPAllocTxRxRingMemory, 
Status=0

After some wild guesses and helpful suggestion from eptesicus I got things
working.

1. echo options pciehp pciehp_slot_with_bus=1 pciehp_force=1 > 
/etc/modprobe.d/for-wireless
2. echo pciehp >> /etc/modules
3. patch -p0 < toggle-wifi.diff

Patch for 3. is attached. It also changes names for module and interface.

It works like a charm on my 901.

Regards
        Artur
-- 
Po co mamy ze sobą rozmawiać, skoro tak łatwo się komunikować?
                                                /Jean Baudrillard/
--- wireless.sh.orig	2008-09-07 22:45:20.000000000 +0200
+++ wireless.sh	2008-09-07 22:41:08.000000000 +0200
@@ -6,20 +6,17 @@
 case $1 in
     on|enable)
 	if [ $(cat $wlan_control) = 0 ]; then
-	    modprobe -r pciehp
-	    modprobe pciehp pciehp_force=1
 	    echo 1 > $wlan_control
-	    modprobe ath_pci
 	    # adding a sleep here, due to some bug the driver loading is not atomic here
 	    # and could cause ifconfig to fail
 	    sleep 1
-	    if ! ifconfig ath0 up; then exec $0 off; fi
+	    if ! ifconfig ra0 up; then exec $0 off; fi
 	fi
 	;;
     off|disable)
 	if [ $(cat $wlan_control) = 1 ]; then
-	    ifdown --force ath0
-	    modprobe -r ath_pci
+	    ifdown --force ra0
+	    modprobe -r rt2860sta
 	    echo 0 > $wlan_control
 	fi
 	;;

Attachment: signature.asc
Description: Digital signature

_______________________________________________
Debian-eeepc-devel mailing list
[email protected]
http://lists.alioth.debian.org/mailman/listinfo/debian-eeepc-devel

Reply via email to