linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Larry Finger <Larry.Finger@lwfinger.net>
To: "Antti Kaijanmäki" <antti@kaijanmaki.net>
Cc: linux-wireless@vger.kernel.org
Subject: Re: New rtl8187 rfkill support blocks my wlan for good.
Date: Wed, 02 Dec 2009 10:30:00 -0600	[thread overview]
Message-ID: <4B169608.3010902@lwfinger.net> (raw)
In-Reply-To: <1259756709.31590.62.camel@peura.elisa-laajakaista.fi>

On 12/02/2009 06:25 AM, Antti Kaijanmäki wrote:
> Hello,
> 
> I wanted to give a try to your compat-wireless bleeding edge drivers. I
> have an RTL8187 based wlan chip on my laptop. After installing the
> driver I was not able to use the WiFi anymore as the driver reports that
> the kill switch is active no matter in what position I turn the switch
> on the side of the laptop.
> 
> Here's the dmesg output of the chip detection:
> 
> [   20.686680] phy0: Selected rate control algorithm 'minstrel'
> [   20.687554] phy0: hwaddr 00:1b:9e:eb:77:98, RTL8187BvE V0 + rtl8225z2
> [   20.710529] rtl8187: Customer ID is 0x04
> [   20.710588] Registered led device: rtl8187-phy0::tx
> [   20.710611] Registered led device: rtl8187-phy0::rx
> [   20.711393] rtl8187: wireless switch is off
> 
> I checked the driver and found the rtl8187_rfkill.c. I added some
> prink's to see what's happening and noticed that the physical switch did
> affect different bit than the one tested in the current driver. This
> change enables the correct behavior on my laptop:
> 
> --- rtl8187_rfkill.c.orig	2009-12-02 14:12:34.646597569 +0200
> +++ rtl8187_rfkill.c	2009-12-02 14:10:09.474593370 +0200
> @@ -28,7 +28,7 @@ static bool rtl8187_is_radio_enabled(str
>  	rtl818x_iowrite8(priv, &priv->map->GPIO0, gpio & ~0x02);
>  	gpio = rtl818x_ioread8(priv, &priv->map->GPIO1);
>  
> -	return gpio & 0x02;
> +	return gpio & 0x04;
>  }
> 
> 
> I tried to contact Realtek to provide me with some specs so that I can
> verify the register in question, but all I received was a reply with the
> realtek's reference driver attached. I haven't got any answer to my
> follow-up request for the specification. 
> 
> I looked through the reference driver but could not find anything
> informational. I didn't have time to do a full review, though.
> 
> Without the specification I can't tell how this can be fixed. People
> have reported success with the current driver, haven't they, so the bit
> is correct for them.
> 
> As soon as distributions start shipping the new rtl8187 driver there are
> people whose wlan stops working. I don't know if the killswitch with
> rtl8187 chipsets is suppose to be only created with software but at
> least in my laptop it didn't matter in which position the switch was
> with older drivers, the radio worked anyway. 
> 
> Any thoughts how to continue with this?

As wireless in Linux approaches the correct behavior with respect to
killing wireless, there will be some cases like yours. Having the
radio work no matter the switch position is just plain wrong. I hope
you understand that.

What laptop do you have? If the RTL8187 built in or externally
plugged? If built in, is there a WMI driver for it? Do you have it loaded?

Larry


  reply	other threads:[~2009-12-02 16:29 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-12-02 12:25 New rtl8187 rfkill support blocks my wlan for good Antti Kaijanmäki
2009-12-02 16:30 ` Larry Finger [this message]
2009-12-03  6:44   ` Antti Kaijanmäki
2009-12-03 12:01     ` Hin-Tak Leung
2009-12-03 13:33       ` Larry Finger
2009-12-03 13:40         ` Hin-Tak Leung
2009-12-04 21:34     ` Larry Finger
2009-12-05  9:58       ` Antti Kaijanmäki
2009-12-05 12:04         ` Hin-Tak Leung
2009-12-05 12:53           ` Antti Kaijanmäki
2009-12-05 15:32             ` Antti Kaijanmäki
2009-12-05 17:08         ` Larry Finger

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4B169608.3010902@lwfinger.net \
    --to=larry.finger@lwfinger.net \
    --cc=antti@kaijanmaki.net \
    --cc=linux-wireless@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).