2009-07-12 20:21:43

by Adrián Cereto

[permalink] [raw]
Subject: Add device string to zd1211rw

I have a wireless adapter with the following device string from lsusb:
"ID 083a:e501 Accton Technology Corp. ZD1211B"

It's device string was not in the zd1211rw driver, so I wondered what
would happen if I added it to zd_usb.c... and voil?, now it works
great ;) (i'm writing this connected with that adapter)

I've tried it with compat-wireless-2.6.30, with kernels 2.6.28 (ubuntu
9.04) and 2.6.30 (debian sid), and it works. I've tried to do it with
the bleeding edge compat-wireless, but it wouldn't compile on any of
my machines (the stable version compiled just fine, though).

The only thing I did was to put the following line in the device
string list in drivers/net/wireless/zd1211rw/zd_usb.c:

{ USB_DEVICE(0x083a, 0xe501), .driver_info = DEVICE_ZD1211B }

Do I need to send you a patch?
(if it weren't such a minute modification I wouldn't doubt it)
I've never done it before, but i'll learn to do it if necessary ;).

If you need more testing on this device, count me.


2009-07-13 20:59:08

by Hin-Tak Leung

[permalink] [raw]
Subject: Re: Add device string to zd1211rw

2009/7/13 Adri? Cereto Massagu? <[email protected]>:

> I'm not sure if this is what you need, but here it is:
>
> ssorgatem@sobremesakubuntu:~$ dmesg | grep -i zd1211rw
> [ ? 10.045331] zd1211rw 1-2:1.0: phy0
> [ ? 10.045390] usbcore: registered new interface driver zd1211rw
> [ ? 13.184194] zd1211rw 1-2:1.0: firmware version 4725
> [ ? 13.224200] zd1211rw 1-2:1.0: zd1211b chip 083a:e501 v4810 high 00-1a-2a
> AL2230_RF pa0 g--NS

Good - The AL2230_RF line is what I asked for.

Hin-Tak

2009-07-13 20:23:07

by Hin-Tak Leung

[permalink] [raw]
Subject: Re: Add device string to zd1211rw

On Sun, Jul 12, 2009 at 9:16 PM, Adri?n Cereto<[email protected]> wrote:
> I have a wireless adapter with the following device string from lsusb:
> "ID 083a:e501 Accton Technology Corp. ZD1211B"
>
> It's device string was not in the zd1211rw driver, so I wondered what
> would happen if I added it to zd_usb.c... and voil?, now it works
> great ;) (i'm writing this connected with that adapter)
>
> I've tried it with compat-wireless-2.6.30, with kernels 2.6.28 (ubuntu
> 9.04) and 2.6.30 (debian sid), and it works. I've tried to do it with
> the bleeding edge compat-wireless, but it wouldn't compile on any of
> my machines (the stable version compiled just fine, though).

compat-wireless latest-and-greatest is a bit broken lately, in the
last week or so. You are not the only one affected - Luis is working
on it, I think.

>
> The only thing I did was to put the following line in the device
> string list in drivers/net/wireless/zd1211rw/zd_usb.c:
>
> ? ? ? { USB_DEVICE(0x083a, 0xe501), .driver_info = DEVICE_ZD1211B }
>
> Do I need to send you a patch?
> (if it weren't such a minute modification I wouldn't doubt it)
> I've never done it before, but i'll learn to do it if necessary ;).

A patch is not necessary, but having the RF type line from your dmesg
would be good.

>
> If you need more testing on this device, count me.
> --
> To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
> the body of a message to [email protected]
> More majordomo info at ?http://vger.kernel.org/majordomo-info.html
>

2009-07-13 20:47:18

by Adrià Cereto Massagué

[permalink] [raw]
Subject: Re: Add device string to zd1211rw

A Dilluns, 13 de juliol de 2009 22:23:05, Hin-Tak Leung va escriure:
> On Sun, Jul 12, 2009 at 9:16 PM, Adri?n Cereto<[email protected]>
wrote:
> > I have a wireless adapter with the following device string from lsusb:
> > "ID 083a:e501 Accton Technology Corp. ZD1211B"
> >
> > It's device string was not in the zd1211rw driver, so I wondered what
> > would happen if I added it to zd_usb.c... and voil?, now it works
> > great ;) (i'm writing this connected with that adapter)
> >
> > I've tried it with compat-wireless-2.6.30, with kernels 2.6.28 (ubuntu
> > 9.04) and 2.6.30 (debian sid), and it works. I've tried to do it with
> > the bleeding edge compat-wireless, but it wouldn't compile on any of
> > my machines (the stable version compiled just fine, though).
>
> compat-wireless latest-and-greatest is a bit broken lately, in the
> last week or so. You are not the only one affected - Luis is working
> on it, I think.
>
> > The only thing I did was to put the following line in the device
> > string list in drivers/net/wireless/zd1211rw/zd_usb.c:
> >
> > { USB_DEVICE(0x083a, 0xe501), .driver_info = DEVICE_ZD1211B }
> >
> > Do I need to send you a patch?
> > (if it weren't such a minute modification I wouldn't doubt it)
> > I've never done it before, but i'll learn to do it if necessary ;).
>
> A patch is not necessary, but having the RF type line from your dmesg
> would be good.

I'm not sure if this is what you need, but here it is:

ssorgatem@sobremesakubuntu:~$ dmesg | grep -i zd1211rw
[ 10.045331] zd1211rw 1-2:1.0: phy0
[ 10.045390] usbcore: registered new interface driver zd1211rw
[ 13.184194] zd1211rw 1-2:1.0: firmware version 4725
[ 13.224200] zd1211rw 1-2:1.0: zd1211b chip 083a:e501 v4810 high 00-1a-2a
AL2230_RF pa0 g--NS

I hope it helps.
> > If you need more testing on this device, count me.
> > --
> > To unsubscribe from this list: send the line "unsubscribe linux-wireless"
> > in the body of a message to [email protected]
> > More majordomo info at http://vger.kernel.org/majordomo-info.html