linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* missing device id in ar9170 driver
@ 2009-09-14 18:46 Fabian Lenz
  2009-09-14 21:08 ` [RFC] ar9170usb: add ar9170 usbid Christian Lamparter
  0 siblings, 1 reply; 7+ messages in thread
From: Fabian Lenz @ 2009-09-14 18:46 UTC (permalink / raw)
  To: linux-wireless

Hello! A quick note: device id 1002 for my TP-LINK TL-WN821N stick is missing, 
please include it in the driver.

Regards!


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [RFC] ar9170usb: add ar9170 usbid
  2009-09-14 18:46 missing device id in ar9170 driver Fabian Lenz
@ 2009-09-14 21:08 ` Christian Lamparter
  2009-09-14 23:39   ` Stephen Chen
       [not found]   ` <200909150752.19146.lenz_fabian@yahoo.de>
  0 siblings, 2 replies; 7+ messages in thread
From: Christian Lamparter @ 2009-09-14 21:08 UTC (permalink / raw)
  To: Fabian Lenz; +Cc: linux-wireless, Luis R. Rodriguez, Stephen.Chen

Reported-by: Fabian Lenz <lenz_fabian@yahoo.de>
Signed-off-by: Christian Lamparter <chunkeey@googlemail.com>
---
Stephen,

- since 0x0cf3 is Atheros' vendor id - can you please lookup the real product
code name for 0x0cf3:0x1002.

I will take care of the re-spin and update the wiki.

Thanks,
	Chr
---
diff --git a/drivers/net/wireless/ath/ar9170/usb.c b/drivers/net/wireless/ath/ar9170/usb.c
index e0138ac..68b0bda 100644
--- a/drivers/net/wireless/ath/ar9170/usb.c
+++ b/drivers/net/wireless/ath/ar9170/usb.c
@@ -64,6 +64,8 @@ static struct usb_device_id ar9170_usb_ids[] = {
 	{ USB_DEVICE(0x0cf3, 0x9170) },
 	/* Atheros TG121N */
 	{ USB_DEVICE(0x0cf3, 0x1001) },
+	/* Atheros - Unknown Product Name - */
+	{ USB_DEVICE(0x0cf3, 0x1002) },
 	/* Cace Airpcap NX */
 	{ USB_DEVICE(0xcace, 0x0300) },
 	/* D-Link DWA 160A */

^ permalink raw reply related	[flat|nested] 7+ messages in thread

* RE: [RFC] ar9170usb: add ar9170 usbid
  2009-09-14 21:08 ` [RFC] ar9170usb: add ar9170 usbid Christian Lamparter
@ 2009-09-14 23:39   ` Stephen Chen
  2009-09-15  8:54     ` Christian Lamparter
       [not found]   ` <200909150752.19146.lenz_fabian@yahoo.de>
  1 sibling, 1 reply; 7+ messages in thread
From: Stephen Chen @ 2009-09-14 23:39 UTC (permalink / raw)
  To: Christian Lamparter, Fabian Lenz; +Cc: linux-wireless, Luis Rodriguez

Hi Christian,

I could not find this VID/PID in INF file in Windows release.
This ID combination could be obsolete.
Thank you!

Stephen
-----Original Message-----
From: Christian Lamparter [mailto:chunkeey@googlemail.com]
Sent: Tuesday, September 15, 2009 5:08 AM
To: Fabian Lenz
Cc: linux-wireless@vger.kernel.org; Luis Rodriguez; Stephen Chen
Subject: [RFC] ar9170usb: add ar9170 usbid

Reported-by: Fabian Lenz <lenz_fabian@yahoo.de>
Signed-off-by: Christian Lamparter <chunkeey@googlemail.com>
---
Stephen,

- since 0x0cf3 is Atheros' vendor id - can you please lookup the real product
code name for 0x0cf3:0x1002.

I will take care of the re-spin and update the wiki.

Thanks,
        Chr
---
diff --git a/drivers/net/wireless/ath/ar9170/usb.c b/drivers/net/wireless/ath/ar9170/usb.c
index e0138ac..68b0bda 100644
--- a/drivers/net/wireless/ath/ar9170/usb.c
+++ b/drivers/net/wireless/ath/ar9170/usb.c
@@ -64,6 +64,8 @@ static struct usb_device_id ar9170_usb_ids[] = {
        { USB_DEVICE(0x0cf3, 0x9170) },
        /* Atheros TG121N */
        { USB_DEVICE(0x0cf3, 0x1001) },
+       /* Atheros - Unknown Product Name - */
+       { USB_DEVICE(0x0cf3, 0x1002) },
        /* Cace Airpcap NX */
        { USB_DEVICE(0xcace, 0x0300) },
        /* D-Link DWA 160A */

^ permalink raw reply related	[flat|nested] 7+ messages in thread

* Re: [RFC] ar9170usb: add ar9170 usbid
       [not found]   ` <200909150752.19146.lenz_fabian@yahoo.de>
@ 2009-09-15  8:06     ` Christian Lamparter
  2009-09-15 11:37       ` Stefan Lippers-Hollmann
  0 siblings, 1 reply; 7+ messages in thread
From: Christian Lamparter @ 2009-09-15  8:06 UTC (permalink / raw)
  To: Fabian Lenz; +Cc: linux-wireless, Stephen.Chen, Luis R. Rodriguez

On Tuesday 15 September 2009 07:52:19 Fabian Lenz wrote:
> Here the output of lsusb: 
> 
> Bus 002 Device 003: ID 0cf3:1002 Atheros Communications, Inc.

they made two revisions (v1 and v2).
Do you know which one you've got?

> and the product page of the WLAN stick:
> 
> http://www.tp-link.com/products/product_des.asp?id=140
> 
> I added { USB_DEVICE(0x0cf3, 0x1002) } to the usb.c file manually some time 
> ago and got my stick to work but the connection is somewhat unstable... but 
> that's another story.
what firmware image do you use?
the two-stage (ar9170-1.fw & ar9170-2.fw) firmware should work.
for one-stage you should use a bleeding edge wireless-testing tree.

Regards,
   Chr

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [RFC] ar9170usb: add ar9170 usbid
  2009-09-14 23:39   ` Stephen Chen
@ 2009-09-15  8:54     ` Christian Lamparter
  0 siblings, 0 replies; 7+ messages in thread
From: Christian Lamparter @ 2009-09-15  8:54 UTC (permalink / raw)
  To: Stephen Chen; +Cc: Fabian Lenz, linux-wireless, Luis Rodriguez

On Tuesday 15 September 2009 01:39:40 Stephen Chen wrote:
> Hi Christian,
> 
> I could not find this VID/PID in INF file in Windows release.
> This ID combination could be obsolete.

you can get their vendor driver from here:
http://www.tp-link.com/support/download.asp?a=1&m=TL-WN821N

-> Driver Files/XP/arusb_xp.inf
--- snip --- Driver Files/${OS}/arusb_${OS}.inf
%ATHR.DeviceDesc.9170%       = ATHRXP9170.ndi,    USB\VID_0CF3&PID_1002
ATHR.DeviceDesc.9170     = "TP-LINK TL-WN821N 11N Wireless Adapter"
--- snip ---

Looks like they are trying to hijack Atheros' usbid space
by assigning custom product IDs.

This can confuse the unsuspected user and maybe break some stuff.
I'm not joking, this is an accident waiting to happen! 
(see "rt2500usb vs. rt73usb" => http://patchwork.kernel.org/patch/45342/
 for how this can go wrong.)

For now, you/[Atheros] should add the PID to your win driver as well
(so it's marked as _used_) and get in touch with TP-Link to come up
with a way for vendors - w/o their own VID - to get custom PIDs.

Regards,
    Chr

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [RFC] ar9170usb: add ar9170 usbid
  2009-09-15  8:06     ` Christian Lamparter
@ 2009-09-15 11:37       ` Stefan Lippers-Hollmann
  2009-09-15 13:16         ` Christian Lamparter
  0 siblings, 1 reply; 7+ messages in thread
From: Stefan Lippers-Hollmann @ 2009-09-15 11:37 UTC (permalink / raw)
  To: Christian Lamparter
  Cc: Fabian Lenz, linux-wireless, Stephen.Chen, Luis R. Rodriguez

Hi

On Tuesday 15 September 2009, Christian Lamparter wrote:
> On Tuesday 15 September 2009 07:52:19 Fabian Lenz wrote:
> > Here the output of lsusb: 
> > 
> > Bus 002 Device 003: ID 0cf3:1002 Atheros Communications, Inc.
> 
> they made two revisions (v1 and v2).
> Do you know which one you've got?

v1 (FCC ID: TE7WN821NV1) at least identifies itself as:
ID 0cf3:9170 Atheros Communications, Inc. AR9170 802.11n

> > and the product page of the WLAN stick:
> > 
> > http://www.tp-link.com/products/product_des.asp?id=140
> > 
> > I added { USB_DEVICE(0x0cf3, 0x1002) } to the usb.c file manually some time 
> > ago and got my stick to work but the connection is somewhat unstable... but 
> > that's another story.
> what firmware image do you use?
> the two-stage (ar9170-1.fw & ar9170-2.fw) firmware should work.
> for one-stage you should use a bleeding edge wireless-testing tree.

On this TL-WN821N v1 the one-stage (as published in binary from by Atheros,
so far I had problems with my self compiled one) and two-stage firmwares 
work equally well on a vanilla 2.6.31 kernel:

usb 1-2: new high speed USB device using ehci_hcd and address 4                                  
usb 1-2: New USB device found, idVendor=0cf3, idProduct=9170                                     
usb 1-2: New USB device strings: Mfr=16, Product=32, SerialNumber=48                             
usb 1-2: Product: USB2.0 WLAN                                                                    
usb 1-2: Manufacturer: ATHER                                                                     
usb 1-2: SerialNumber: 12345
usb 1-2: configuration #1 chosen from 1 choice
usb 1-2: reset high speed USB device using ehci_hcd and address 4
usb 1-2: firmware: requesting ar9170.fw
ath: EEPROM regdomain: 0x809c
ath: EEPROM indicates we should expect a country code
ath: doing EEPROM country->regdmn map search
ath: country maps to regdmn code: 0x52
ath: Country alpha2 being used: CN
ath: Regpair used: 0x52
phy2: Selected rate control algorithm 'minstrel'
cfg80211: Calling CRDA for country: CN
Registered led device: ar9170-phy2::tx
Registered led device: ar9170-phy2::assoc
usb 1-2: Atheros AR9170 is registered as 'phy2'
usbcore: registered new interface driver ar9170usb
udev: renamed network interface wlan2 to wlan3
cfg80211: Current regulatory domain intersected:
        (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
        (2402000 KHz - 2482000 KHz @ 40000 KHz), (N/A, 2000 mBm)

Regards
	Stefan Lippers-Hollmann

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [RFC] ar9170usb: add ar9170 usbid
  2009-09-15 11:37       ` Stefan Lippers-Hollmann
@ 2009-09-15 13:16         ` Christian Lamparter
  0 siblings, 0 replies; 7+ messages in thread
From: Christian Lamparter @ 2009-09-15 13:16 UTC (permalink / raw)
  To: Stefan Lippers-Hollmann
  Cc: Fabian Lenz, linux-wireless, Stephen.Chen, Luis R. Rodriguez

On Tuesday 15 September 2009 13:37:13 Stefan Lippers-Hollmann wrote:
> On Tuesday 15 September 2009, Christian Lamparter wrote:
> > On Tuesday 15 September 2009 07:52:19 Fabian Lenz wrote:
> > > Here the output of lsusb: 
> > > 
> > > Bus 002 Device 003: ID 0cf3:1002 Atheros Communications, Inc.
> > 
> > they made two revisions (v1 and v2).
> > Do you know which one you've got?
> 
> v1 (FCC ID: TE7WN821NV1) at least identifies itself as:
> ID 0cf3:9170 Atheros Communications, Inc. AR9170 802.11n
thanks! so, they sticked with the correct id for v1.

> > > and the product page of the WLAN stick:
> > > 
> > > http://www.tp-link.com/products/product_des.asp?id=140
> > > 
> > > I added { USB_DEVICE(0x0cf3, 0x1002) } to the usb.c file manually some time 
> > > ago and got my stick to work but the connection is somewhat unstable... but 
> > > that's another story.
> > what firmware image do you use?
> > the two-stage (ar9170-1.fw & ar9170-2.fw) firmware should work.
> > for one-stage you should use a bleeding edge wireless-testing tree.
> 
> On this TL-WN821N v1 the one-stage (as published in binary from by Atheros,
> so far I had problems with my self compiled one) and two-stage firmwares 
> work equally well on a vanilla 2.6.31 kernel:
the catch here is that some devices won't work with the
two-stage firmware (e.g: AVM FRITZ!WLAN USB Stick N 2.4 )

That's why the delay.

Regards,
	Chr 

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2009-09-15 13:16 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-09-14 18:46 missing device id in ar9170 driver Fabian Lenz
2009-09-14 21:08 ` [RFC] ar9170usb: add ar9170 usbid Christian Lamparter
2009-09-14 23:39   ` Stephen Chen
2009-09-15  8:54     ` Christian Lamparter
     [not found]   ` <200909150752.19146.lenz_fabian@yahoo.de>
2009-09-15  8:06     ` Christian Lamparter
2009-09-15 11:37       ` Stefan Lippers-Hollmann
2009-09-15 13:16         ` Christian Lamparter

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).