Search Linux Wireless

Re: New rtl8187 rfkill support blocks my wlan for good.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



la, 2009-12-05 kello 12:04 +0000, Hin-Tak Leung kirjoitti:
> 2009/12/5 Antti Kaijanmäki <antti@xxxxxxxxxxxxxx>:
> > pe, 2009-12-04 kello 15:34 -0600, Larry Finger kirjoitti:
> ..
> >> I will get the same info
> >> from Hin-Tak to see if we can differentiate your two devices.
> >
> > See the attached lsusb_v.txt
> 
> The only difference between yours and mine is just the USB id (8197 vs
> 8198). There is no other difference. (But it is probably unsafe to
> base any change on product id alone - there are about 5-6 variants
> even among the 3 ids
> 8187/8189 and 8197).
> 
> > I looked through the reference driver and found out that indeed the GPIO
> > pin is different for some devices, mine included (0x8198).
> 
> There are differences between devices even with the same id - has
> always been the case - see comment above.

The reference driver does not use product id alone. See below, it also
tests EPROM_SELECT_GPIO. I don't know if this is sufficient, but as the
driver comes from Realtek I would presume that the detection is correct.
At least they have the documentation for full EEPROM register map and
such. I haven't got the time to test the reference driver yet, but
EPROM_SELECT_GPIO could just be the difference between our chipsets.


> > r8187_core.c:L4359
> >
> >        if((idProduct == 0x8197) || (idProduct == 0x8198))      {
> >                priv->EEPROMSelectNewGPIO =((u8)((eprom_read(dev,EPROM_SELECT_GPIO) & 0xff00) >> 8)) ? true : false;
> >                DMESG("EPROM_SELECT_GPIO:%d", priv->EEPROMSelectNewGPIO);
> >        } else {
> >                priv->EEPROMSelectNewGPIO = false;
> >        }
> >
> >
> >
> > Here's the begining of the RFKILL code (see, 0x2 vs. 0x4!)
> >
> > r8187_core.c:L6258
> >
> >                        tmp1byte = read_nic_byte(dev,GPE);
> >                        if(priv->EEPROMSelectNewGPIO == true)
> >                                tmp1byte &= ~BIT2;
> >                        else
> >                                tmp1byte &= ~BIT1;
> >
> >                        write_nic_byte(dev,GPE,tmp1byte);
> 
> I'll have a look at what this does when I find the time. What version
> of the vendor driver have you got? The last one we have is
> 26.1036.0708.2008 (mostly you just look at the 1036 part which is the
> version, and 0708.2008 is the release date). If you have a more recent
> version, you should share it with me, Larry and Herton - our e-mails
> are in the MAINTAINERS file, but you already found me and Larry, just
> Herton hasn't comment yet(?). (as I wrote, for some reason Realtek
> doesn't put it up publicly for download but seems to be happy to
> e-mail to people when they ask, so I think it is appropriate to behave
> along similiar lines).

The driver is attached to my previous email to the list.
It should be newer than yours (1055):

    rtl8187B_linux_26[1][1].1055.1102.2009.release.tar.gz


  -- Antti


Attachment: signature.asc
Description: Digitaalisesti allekirjoitettu viestin osa


[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux