Return-path: Received: from mail-qy0-f181.google.com ([209.85.216.181]:57607 "EHLO mail-qy0-f181.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751575Ab0KUTGF (ORCPT ); Sun, 21 Nov 2010 14:06:05 -0500 Received: by qyk1 with SMTP id 1so1375842qyk.19 for ; Sun, 21 Nov 2010 11:06:04 -0800 (PST) MIME-Version: 1.0 From: Klaas De Craemer Date: Sun, 21 Nov 2010 20:05:43 +0100 Message-ID: Subject: RTL8187L: Can only "enable" hw radio switch after Windows boot To: linux-wireless@vger.kernel.org Cc: Herton Ronaldo Krzesinski , Hin-Tak Leung , Larry Finger Content-Type: text/plain; charset=UTF-8 Sender: linux-wireless-owner@vger.kernel.org List-ID: Hello all, I'm using an Alfa AWUS036H adapter for a long range outdoor wireless link (+5km) connected to an Intel Atom board running kernel 2.6.32-5-amd64. Since a few weeks, the system cannot connect to the remote AP anymore after booting: trying to bring up the interface wlan0 gives an SCIO error and rfkill reports a hw block is present on the device... Repeatedly inserting and removing the device does not change this. The only way to make the card work is to plug it into a Windows computer in which it then connects immediately to the AP. Then I can plug it back into the linux box and the connection works (hw block gone, yes, magic...). The connection is then stable (it is usually up for about 8 hours). In the evening the hardware is turned off so in the morning the same problem arises again. Below is some dmesg output. If I can add some more specific debug output, please let me know. Klaas De Craemer ---------------- dmesg output after initially plugging the device in is: [ 617.720045] usb 1-8: new high speed USB device using ehci_hcd and address 4 [ 617.852402] usb 1-8: New USB device found, idVendor=0409, idProduct=005a [ 617.852511] usb 1-8: New USB device strings: Mfr=0, Product=0, SerialNumber=0 [ 617.853147] usb 1-8: configuration #1 chosen from 1 choice [ 617.853730] hub 1-8:1.0: USB hub found [ 617.854023] hub 1-8:1.0: 4 ports detected [ 618.140174] usb 1-8.1: new high speed USB device using ehci_hcd and address 5 [ 618.254772] usb 1-8.1: New USB device found, idVendor=0bda, idProduct=8187 [ 618.254882] usb 1-8.1: New USB device strings: Mfr=1, Product=2, SerialNumber=3 [ 618.255016] usb 1-8.1: Product: RTL8187_Wireless [ 618.255105] usb 1-8.1: Manufacturer: Manufacturer_Realtek_RTL8187_ [ 618.255202] usb 1-8.1: SerialNumber: 00C0CA3F9517 [ 618.257166] usb 1-8.1: configuration #1 chosen from 1 choice [ 618.505617] phy6: Selected rate control algorithm 'minstrel' [ 618.508755] phy6: hwaddr 00:c0:ca:3f:95:17, RTL8187vB (default) V1 + rtl8225z2, rfkill mask 2 [ 618.525401] rtl8187: Customer ID is 0xFF [ 618.526749] Registered led device: rtl8187-phy6::tx [ 618.528126] Registered led device: rtl8187-phy6::rx [ 618.529030] rtl8187: wireless switch is on [ 618.529364] usbcore: registered new interface driver rtl8187 [ 623.780644] rtl8187: wireless radio switch turned off After having it connected in Windows this will be added: [ 762.904044] usb 1-8: new high speed USB device using ehci_hcd and address 6 [ 763.036384] usb 1-8: New USB device found, idVendor=0409, idProduct=005a [ 763.036491] usb 1-8: New USB device strings: Mfr=0, Product=0, SerialNumber=0 [ 763.037793] usb 1-8: configuration #1 chosen from 1 choice [ 763.038501] hub 1-8:1.0: USB hub found [ 763.038759] hub 1-8:1.0: 4 ports detected [ 763.324155] usb 1-8.1: new high speed USB device using ehci_hcd and address 7 [ 763.438628] usb 1-8.1: New USB device found, idVendor=0bda, idProduct=8187 [ 763.438737] usb 1-8.1: New USB device strings: Mfr=1, Product=2, SerialNumber=3 [ 763.438872] usb 1-8.1: Product: RTL8187_Wireless [ 763.438961] usb 1-8.1: Manufacturer: Manufacturer_Realtek_RTL8187_ [ 763.439057] usb 1-8.1: SerialNumber: 00C0CA3F9517 [ 763.439707] usb 1-8.1: configuration #1 chosen from 1 choice [ 763.672336] phy7: Selected rate control algorithm 'minstrel' [ 763.675556] phy7: hwaddr 00:c0:ca:3f:95:17, RTL8187vB (default) V1 + rtl8225z2, rfkill mask 2 [ 763.692505] rtl8187: Customer ID is 0xFF [ 763.692885] Registered led device: rtl8187-phy7::tx [ 763.693125] Registered led device: rtl8187-phy7::rx [ 763.693752] rtl8187: wireless switch is on