2008-05-14 03:14:27

by Paul Thomas

[permalink] [raw]
Subject: newbie rtl8187 question

Hello,

I am trying to get the Trendnet TEW-424UB to work. I have hardware
version 3.1R which is based on the Realtek RTL8187B chip. I got the
latest wireless-testing git version. I added the Trendnet PID & VID to
drivers/net/wireless/rtl8187_dev.c (shown below) but I still can't it
to work.

static struct usb_device_id rtl8187_table[] __devinitdata = {
/* Realtek */
{USB_DEVICE(0x0bda, 0x8187)},
/* Netgear */
{USB_DEVICE(0x0846, 0x6100)},
{USB_DEVICE(0x0846, 0x6a00)},
/* HP */
{USB_DEVICE(0x03f0, 0xca02)},
/*Trendnet Vendor=0bda ProdID=8189*/
{USB_DEVICE(0x0bda, 0x8189)},
/* Sitecom */
{USB_DEVICE(0x0df6, 0x000d)},
{}
};

When I plug the adapter in I get this under /proc/bus/usb/devices

T: Bus=02 Lev=01 Prnt=01 Port=03 Cnt=01 Dev#= 3 Spd=480 MxCh= 0
D: Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs= 1
P: Vendor=0bda ProdID=8189 Rev= 2.00
S: Manufacturer=Manufacturer_Realtek
S: Product=RTL8187B_WLAN_Adapter
S: SerialNumber=00e04c000001
C:* #Ifs= 1 Cfg#= 1 Atr=80 MxPwr=500mA
I:* If#= 0 Alt= 0 #EPs= 9 Cls=ff(vend.) Sub=ff Prot=ff Driver=rtl8187
E: Ad=83(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E: Ad=04(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E: Ad=05(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E: Ad=06(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E: Ad=07(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E: Ad=89(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E: Ad=0a(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E: Ad=0b(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E: Ad=0c(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms

The only other time I used wireless stuff under linux I used a distros
built in tools, so I hope I'm doing the config correctly. Here is what
I'm doing:

/sbin/iwconfig wlan0 key restricted MYKEY essid "ssid"
/sbin/ifconfig wlan0 up
/sbin/dhclient wlan0

Now #/sbin/iwconfig gives me this:
wlan0 IEEE 802.11 ESSID:""
Mode:Managed Frequency:2.412 GHz Access Point: Not-Associated
Tx-Power=27 dBm
Retry min limit:7 RTS thr:off Fragment thr=2352 B
Encryption key:XXXX-XXXX-XX
Link Quality:0 Signal level:0 Noise level:0
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0

I am using Fedora 8 on a x86_64 system. My initial goal in all this
was to get the adapter to work with my embedded linux project
(http://opencircuits.com/Linuxstamp), but when it didn't work there I
figured I'd try it on my host machine.

Has anyone else gotten the TEW-424UB to work?

thanks
Paul


2008-05-14 03:45:21

by Pavel Roskin

[permalink] [raw]
Subject: Re: newbie rtl8187 question

On Tue, 2008-05-13 at 20:14 -0700, Paul Thomas wrote:
> Hello,
>
> I am trying to get the Trendnet TEW-424UB to work. I have hardware
> version 3.1R which is based on the Realtek RTL8187B chip.

Somebody reported earlier today success with that adapter:
http://marc.info/?l=linux-wireless&m=121066467513930&w=2

I understand that two patches are needed on top of linux-wireless.

> {USB_DEVICE(0x0bda, 0x8189)},

That is already in the first patch.

--
Regards,
Pavel Roskin