Dani Gutiérrez | 10 Jan 2010 19:05
Picon
Gravatar

Problem with Telefonica USB wifi adapter

Hi,
I'm trying to use a wifi usb device in Kubuntu Karmic (9.10). Info of
the hardware & system:
* lsusb ID 083a:e501 Accton Technology Corp. ZD1211B
* dmesg: zd1211rw 2-2:1.0: zd1211 chip 083a:e501 v4810 high 00-1a-2a AL223
* uname -a: 2.6.31-17-generic #54-Ubuntu SMP Thu Dec 10 17:01:44 UTC
2009 x86_64 GNU/Linux

Following your instructions, I do:
    modprobe zd1211rw
    echo "083a e501 FFFFFFFF FFFFFFFF 0 0
1">/sys/bus/usb/drivers/zd1211rw/new_id
and a new interface wlan1 appears. But:

* It doesn't associate to the AP:
  iwconfig essid MYESSID key s:MYASCIIKEY

* It's unable to scan:
  iwlist wlan1 scan
  wlan1     Interface doesn't support scanning : Device or resource busy

Apart from this, I'm using another PCI wifi card, wlan0, with ath5k
module and it goes ok.
I'll try to use ndiswrapper, but I prefer the "native" mode so, any
help will be appreciated; write me if you want me to do any test.

    Thanks a lot in advance.

------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
(Continue reading)

Hin-Tak Leung | 11 Jan 2010 00:07
Picon
Favicon

Re: Problem with Telefonica USB wifi adapter

Hmm, do you really need the echo part? current wireless-testing/compat-wireless already have the 
083a:e501 id.

--- On Sun, 10/1/10, Dani Gutiérrez <jdanitxu <at> gmail.com> wrote:

> Hi,
> I'm trying to use a wifi usb device in Kubuntu Karmic
> (9.10). Info of
> the hardware & system:
> * lsusb ID 083a:e501 Accton Technology Corp. ZD1211B
> * dmesg: zd1211rw 2-2:1.0: zd1211 chip 083a:e501 v4810 high
> 00-1a-2a AL223
> * uname -a: 2.6.31-17-generic #54-Ubuntu SMP Thu Dec 10
> 17:01:44 UTC
> 2009 x86_64 GNU/Linux
> 
> Following your instructions, I do:
>     modprobe zd1211rw
>     echo "083a e501 FFFFFFFF FFFFFFFF 0 0
> 1">/sys/bus/usb/drivers/zd1211rw/new_id
> and a new interface wlan1 appears. But:
> 
> * It doesn't associate to the AP:
>   iwconfig essid MYESSID key s:MYASCIIKEY
> 
> * It's unable to scan:
>   iwlist wlan1 scan
>   wlan1     Interface doesn't
> support scanning : Device or resource busy
> 
(Continue reading)

Dani Gutiérrez | 11 Jan 2010 00:13
Picon
Gravatar

Re: Problem with Telefonica USB wifi adapter

> Hmm, do you really need the echo part? current wireless-testing/compat-wireless already have the
 083a:e501 id.
Well, I didn't find that ID in http://linuxwireless.org/en/users/Devices/USB.
Also if I do
   modinfo zd1211rw | grep -i 083a
it doesn't appear. Maybe my module is a little bit old?
   modinfo zd1211rw
gives:
 filename:
/lib/modules/2.6.31-17-generic/kernel/drivers/net/wireless/zd1211rw/zd1211rw.ko
 version:        1.0
 author:         Daniel Drake
 author:         Ulrich Kunitz
 description:    USB driver for devices with the ZD1211 chip.
 license:        GPL
 srcversion:     891EB6D7C8EF72E1D24FD0E
 ...

------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
Hin-Tak Leung | 11 Jan 2010 00:30
Picon
Favicon

Re: Problem with Telefonica USB wifi adapter

Apparently it was me who added that ID to wireless-testing 6 months ago, and it entered mainline kernel at
2.6.32. (not in 2.6.31). Sorry I don't have data on 2.6.31.x, but you probably should just upgrade to
2.6.32+ .

--------------
commit 8f75e07aa14107668d33f60fa4d78afa2d7aa22b
Author: Hin-Tak Leung <hintak.leung <at> gmail.com>
Date:   Mon Jul 13 23:20:37 2009 +0100

    zd1211rw: adding Accton Technology Corp (083a:e501) as a ZD1211B device
--------------

BTW, wiki is't always up to date... but in any case, the id is in 2.6.32 for certain.

--- On Sun, 10/1/10, Dani Gutiérrez <jdanitxu <at> gmail.com> wrote:

> > Hmm, do you really need the echo
> part? current wireless-testing/compat-wireless already have
> the  083a:e501 id.
> Well, I didn't find that ID in http://linuxwireless.org/en/users/Devices/USB.
> Also if I do
>    modinfo zd1211rw | grep -i 083a
> it doesn't appear. Maybe my module is a little bit old?
>    modinfo zd1211rw
> gives:
>  filename:
> /lib/modules/2.6.31-17-generic/kernel/drivers/net/wireless/zd1211rw/zd1211rw.ko
>  version:        1.0
>  author:         Daniel
> Drake
(Continue reading)

Marc MERLIN | 17 Jan 2010 20:05

AP mode for zd1211 won't build on 2.6.31.6

I need the driver to set my antenna as an AP, but build from svn fails:

gandalfthegrey [mc]# make
/lib/modules/2.6.31.6-core2smp-1khznohz-preempt-notcks-noide-hm64-20091206/build
/var/src/zd1211/trunk
-I/var/src/zd1211/trunk/src/include -fomit-frame-pointer -O2 -Wall -Wstrict-prototypes -pipe
-DZDCONF_WE_STAT_SUPPORT=1 -DHOST_IF_USB -DAMAC -DGCCK -DOFDM -DHOSTAPD_SUPPORT
-DUSE_EP4_SET_REG -DDOWNLOADFIRMWARE -DfTX_GAIN_OFDM=0 -DfNEW_CODE_MAP=1 -DfWRITE_WORD_REG=1
-DfREAD_MUL_REG=1 -DENHANCE_RX=1 -DZD1211
src/zd1205.o src/zdasocsvc.o src/zdauthreq.o src/zdauthrsp.o src/zdmmrx.o src/zdshared.o
src/zdhci.o src/zdglobal.o src/zdencrypt.o src/zdpmfilter.o src/zdpsmon.o src/zdsynch.o
src/zdbuf.o src/zd1205_proc.o src/zdhw.o src/zddebug.o src/zdtkipseed.o src/zdmic.o src/zdusb.o src/zd1211.o
make -C /lib/modules/2.6.31.6-core2smp-1khznohz-preempt-notcks-noide-hm64-20091206/build
SUBDIRS=/var/src/zd1211/trunk modules
make[1]: Entering directory `/var/src/linux-2.6.31.6-dualcoresmp-hm64'
  CC [M]  /var/src/zd1211/trunk/src/zd1205.o
  CC [M]  /var/src/zd1211/trunk/src/zdasocsvc.o
  CC [M]  /var/src/zd1211/trunk/src/zdauthrsp.o
  CC [M]  /var/src/zd1211/trunk/src/zdmmrx.o
In file included from /var/src/zd1211/trunk/src/zd1205.h:49,
                 from /var/src/zd1211/trunk/src/zd1205.c:47:
/var/src/zd1211/trunk/src/zdcompat.h:69: error: conflicting types for 'irqreturn_t'
include/linux/irqreturn.h:16: note: previous declaration of 'irqreturn_t' was here
In file included from /var/src/zd1211/trunk/src/zd1205.h:49,
                 from /var/src/zd1211/trunk/src/zd1205.c:47:
/var/src/zd1211/trunk/src/zdcompat.h:72:1: warning: "IRQ_RETVAL" redefined
In file included from include/linux/interrupt.h:10,
                 from include/linux/netdevice.h:1058,
                 from include/net/sock.h:50,
                 from include/linux/tcp.h:177,
(Continue reading)

Hin-Tak Leung | 18 Jan 2010 00:26
Picon
Favicon

Re: AP mode for zd1211 won't build on 2.6.31.6

You obviously did not read any of the archive postings, nor look at the web site in details. The
vendor-derived driver has been defunc for a while; most people use the in-kernel rw driver, others use the
vendor driver + my patchset.

Grep the latest vendor tar ball, 

http://www.kernel.org/pub/linux/kernel/people/mcgrof/zd1211/

then grab the corresponding patch set:
http://htl10.users.sourceforge.net/patchsets/

--- On Sun, 17/1/10, Marc MERLIN <marc <at> merlins.org> wrote:

> I need the driver to set my antenna
> as an AP, but build from svn fails:
> 
> gandalfthegrey [mc]# make
> /lib/modules/2.6.31.6-core2smp-1khznohz-preempt-notcks-noide-hm64-20091206/build
> /var/src/zd1211/trunk
> -I/var/src/zd1211/trunk/src/include -fomit-frame-pointer
> -O2 -Wall -Wstrict-prototypes -pipe
> -DZDCONF_WE_STAT_SUPPORT=1 -DHOST_IF_USB -DAMAC -DGCCK
> -DOFDM -DHOSTAPD_SUPPORT -DUSE_EP4_SET_REG
> -DDOWNLOADFIRMWARE -DfTX_GAIN_OFDM=0 -DfNEW_CODE_MAP=1
> -DfWRITE_WORD_REG=1 -DfREAD_MUL_REG=1 -DENHANCE_RX=1
> -DZD1211
> src/zd1205.o src/zdasocsvc.o src/zdauthreq.o
> src/zdauthrsp.o src/zdmmrx.o src/zdshared.o src/zdhci.o
> src/zdglobal.o src/zdencrypt.o src/zdpmfilter.o
> src/zdpsmon.o src/zdsynch.o src/zdbuf.o src/zd1205_proc.o
(Continue reading)

Yasuhiro ABE | 18 Jan 2010 01:31
Picon

[report] the "NEC Aterm WL54GU" usb wireless stick works well.

Hi,

I'm using the usb wireless stick, "PA-WL54GU," and it is working good.
I just modified the zd_usb.c file with the following line.
	{ USB_DEVICE(0x0409, 0x0248), .driver_info = DEVICE_ZD1211B  },

The brand and retail product name
	NEC, Aterm PA-WL54GU
The USB ID's (duh)
	ID 0409:0248
The chip ID string
	zd1211rw 1-1:1.0: zd1211b chip 0409:0248 v4810 high 00-1b-8b AL2230S_RF pa0 g--N-
The FCC ID
	unknown

Your work is very helpful, thanks a lot.
--

-- 
Yasuhiro ABE 
web:      http://www.yasundial.org/
twitter:  http://twitter.com/YasuhiroABE

------------------------------------------------------------------------------
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
Marc MERLIN | 18 Jan 2010 08:06

Re: AP mode for zd1211 won't build on 2.6.31.6

Executive summary: thanks for the links. I built the driver but master mode 
doesn't look supported still:
gandalfthegrey:/usr/src/zd1211# iwconfig ath1 mode master
Error for wireless request "Set Mode" (8B06) :
    SET failed on device ath1 ; Invalid argument.

Back to your mail:
On Sun, Jan 17, 2010 at 03:26:31PM -0800, Hin-Tak Leung wrote:
> You obviously did not read any of the archive postings, nor look at
> the web site in details. The vendor-derived driver has been defunc

Well, I did spend about 1H looking, but:
1) which web site?
Isn't http://linuxwireless.org/en/users/Drivers/zd1211rw the canonical
site?
If so, unless I read wrong it states nothing of the site you gave below.

2) I searched all archives I could find with "zd1211rw master mode"
on google and it brought me to this list, although I didn't find any
posts I should have found you are referring to.

Even http://lwn.net/Articles/186311/ points back to
http://zd1211.ath.cx/wiki/DriverRewrite which brings one here
http://sourceforge.net/projects/zd1211/develop.

Is there a way to seed google with the right answer and get it on
http://linuxwireless.org/en/users/Drivers/zd1211rw?

> Grep the latest vendor tar ball, 
> http://www.kernel.org/pub/linux/kernel/people/mcgrof/zd1211/
(Continue reading)

Hin-Tak Leung | 18 Jan 2010 08:23
Picon
Favicon

Re: AP mode for zd1211 won't build on 2.6.31.6

Interesting - here used to be some info explaining the three at :

http://zd1211.wiki.sourceforge.net/

but now that's gone and get re--directed back to the download site.

--- On Mon, 18/1/10, Marc MERLIN <marc <at> merlins.org> wrote:

> Executive summary: thanks for the
> links. I built the driver but master mode 
> doesn't look supported still:
> gandalfthegrey:/usr/src/zd1211# iwconfig ath1 mode master
> Error for wireless request "Set Mode" (8B06) :
>     SET failed on device ath1 ; Invalid
> argument.

You need to ifconfig up first. Nothing works before ifconfig up.

------------------------------------------------------------------------------
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
Marc MERLIN | 21 Jan 2010 04:06

Re: AP mode for zd1211 won't build on 2.6.31.6

Thanks for your replies and pointer to the code that builds.
Unfortunately, after I bring it up, it doesn't seem reliable enough to
allow connections.

On Mon, Jan 18, 2010 at 07:23:09AM +0000, Hin-Tak Leung wrote:
> > gandalfthegrey:/usr/src/zd1211# iwconfig ath1 mode master
> > Error for wireless request "Set Mode" (8B06) :
> >     SET failed on device ath1 ; Invalid
> > argument.
> 
> You need to ifconfig up first. Nothing works before ifconfig up.

In a nutshell, my phones see the AP. Sometimes I am able to connect to
it but not get an IP. Very rarely I get an IP, and my machine usually
ends up crashing some time around that.

One noticeable thing is that 
Tx excessive retries
in iwconfig shows a few hundred errors per second.

Is the AP code working and stable for you?

Below is the code I wrote:
----------------------------------------------------------------------------
#!/bin/bash

IF=ath1

rmmod zd1211rw
sleep 1
(Continue reading)


Gmane