Welcome to Linux Forums! With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.
Write an article for LinuxForums Today! Win Great Prizes!
Find the answer to your Linux question:
New to Linux Forums? Register here for free!
    Linux Forums > GNU Linux Zone > Wireless Internet > TL-WN422G+ problem

Forgot Password?
 Wireless Internet   Anything related to getting wireless set up in Linux. WLAN, WiFi, etc.

Site Navigation
Linux Articles
Linux Forums
Linux Downloads
Linux Hosting
Free Magazines
Job Board
IRC Chat
RSS Feeds
Linux Forum Topics
Linux Forums
Your Distro
Linux Resources
GNU Linux Zone
The Community
Reply
 
Thread Tools Display Modes
Old 11-17-2009   #11 (permalink)
Just Joined!
 
Join Date: Nov 2009
Posts: 4
I have the same card (TL-WN422G)

Code:
$ lsusb -d 0cf3:1006
Bus 002 Device 003: ID 0cf3:1006 Atheros Communications, Inc.
using kubuntu/ubuntu 9.10 and followed your instructions
  • installed linux-ckports-modules-2.6.31-14-generic
  • sudo modprobe -i zd1211rw
  • echo "0cf3 1006 FFFFFFFF FFFFFFFF 0 0 1" | sudo tee -a /sys/bus/usb/drivers/zd1211rw/new_id

Since I plugged the usb stick, dmesg showed
Code:
[  130.152120] usb 2-3: new high speed USB device using ehci_hcd and address 3
[  130.301235] usb 2-3: configuration #1 chosen from 1 choice
[  170.199547] usbcore: registered new interface driver zd1211rw
[  177.329270] usb 2-3: reset high speed USB device using ehci_hcd and address 3
[  182.481239] usb 2-3: read over firmware interface failed: -110
[  182.592291] usb 2-3: reset high speed USB device using ehci_hcd and address 3
[  182.741076] zd1211rw: probe of 2-3:1.0 failed with error -110
[  897.597060] CE: hpet increasing min_delta_ns to 15000 nsec
Running iwconfig doesn't show my new card. It does, however, show the old card that stopped working a month ago.
findepi is offline  



Reply With Quote
Old 11-17-2009   #12 (permalink)
Linux Guru
 
reed9's Avatar
 
Join Date: Feb 2009
Location: Boston, MA
Posts: 3,238
Unfortunately, I can find very little information on this card and driver, beyond what I've already suggested.

You might give it a go with ndiswrapper instead.
https://help.ubuntu.com/community/Wi...er/Ndiswrapper
reed9 is online now   Reply With Quote
Old 11-17-2009   #13 (permalink)
Just Joined!
 
Join Date: Nov 2009
Posts: 4
I'll try, but i don't have ideal experience with ndiswrapper.

Am i correct that
Code:
[  182.481239] usb 2-3: read over firmware interface failed: -110
means the zd1211rw driver tried to take care of the device?

-110 means probably -ETIMEDOUT but it makes no sense to me. This is not related to loading firmware from disk, is it?
findepi is offline   Reply With Quote
Old 11-17-2009   #14 (permalink)
Linux Guru
 
reed9's Avatar
 
Join Date: Feb 2009
Location: Boston, MA
Posts: 3,238
Yes, it looks like the driver was recognized and paired with the device. This device also requires extra firmware, which Ubuntu provides.
zd1211rw - Linux Wireless

This seems similar to your problem.
Nabble - zd1211-devs - PN15G firmware upload problems

This is about the only reference I could find to "read over firmware..." It's the patch to the driver and includes that error output. Perhaps someone with more knowledge of code can better decipher the problem.
Code:
+/* Read data from device address space using "firmware interface" which does
+ * not require firmware to be loaded. */
+int zd_usb_read_fw(struct zd_usb *usb, zd_addr_t addr, u8 *data, u16 len)
+{
+       int r;
+       struct usb_device *udev = zd_usb_to_usbdev(usb);
+
+       r = usb_control_msg(udev, usb_rcvctrlpipe(udev, 0),
+               USB_REQ_FIRMWARE_READ_DATA, USB_DIR_IN | 0x40, addr, 0,
+               data, len, 5000);
+       if (r < 0) {
+               dev_err(&udev->dev,
+                       "read over firmware interface failed: %d\n", r);
+               return r;
+       } else if (r != len) {
+               dev_err(&udev->dev,
+                       "incomplete read over firmware interface: %d/%d\n",
+                       r, len);
+               return -EIO;
+       }
+
+       return 0;
[PATCH] zd1211rw: Defer firmware load until first ifup

You may also be able to build the old zd1211 driver. All the info I could find on it is pretty out of date though. (Which makes sense, as it was discontinued and the community developed zd1211rw took over.)
https://help.ubuntu.com/community/Wi...sterMode#ZyDAS ZD1211
reed9 is online now   Reply With Quote
Old 11-17-2009   #15 (permalink)
Just Joined!
 
Join Date: Nov 2009
Posts: 4
Can it be recognized only because i did beforwards:
Code:
echo "0cf3 1006 FFFFFFFF FFFFFFFF 0 0 1" | sudo tee -a /sys/bus/usb/drivers/zd1211rw/new_id
?

I also found zd_usb_read_fw function myself (this lead me to -ETIMEDOUT), but does not give me a clue, what does it means, what really happens. Should I enable kernel debugging? Will it give more information in dmesg?
(In /boot/config-2.6.31-14-generic (presumably the config for my current 2.6.31-14-generic ubuntu kernel) there is CONFIG_DEBUG_KERNEL=y.)

The patch "[PATCH] zd1211rw: Defer firmware load until first ifup" was included in kernel v2.6.23-rc1, and it's naturally also in my kernel (tag 'Ubuntu-2.6.31-14.48' in Ubuntu kernel repo).
findepi is offline   Reply With Quote
Old 11-17-2009   #16 (permalink)
Linux Guru
 
reed9's Avatar
 
Join Date: Feb 2009
Location: Boston, MA
Posts: 3,238
I don't have any direct experience with this card and I simply cannot find any useful information on the web.

I encourage you to file a bug report, probably with the upstream developers over Ubuntu.
Download - Linux Wireless

You could try other distros, and see if they work better.

Or unfortunately, you may be stuck with ndiswrapper. It really isn't too hard to use.
There is a GUI front end called ndisgtk as well.
Activating Wi-Fi Cards Under Ubuntu Linux Using ndisgtk
NdisWrapper: The Ultimate Guide - LinuxQuestions.org
reed9 is online now   Reply With Quote
Old 11-17-2009   #17 (permalink)
Just Joined!
 
Join Date: Nov 2009
Posts: 4
Thank you for all the help. A while ago I started discussion on linux-wireless mailing list (at kernel.org; search for 0cf3:1006 or WN422G in the archives) and they suggested

Quote:
If you take a look at the vendor's windows driver for TP-LINK WN422G *v2*,
it becomes obvious that the device does not use the ZyDAS zd1211/ Atheros
5007UG cipset, but has switched to the new Atheros AR9271 chipset
[...]
At this moment a new driver called ath9k_htc is under (early) development:
wireless.kernel.org/en/users/Drivers/ath9k_htc
I haven't checked the windows drivers yet, so can't confirm i have "v2". Anyway I won't be copying the list here any further, so i encourage anyone interested in my story (or just having similar device to digg the linux-wireless recent archives.


As to the ndiswrapper. I know it's not hard, I have already used it on different machine with different card. Maybe it's due to particular windows driver in use, but i see way too often oopses with 'ndis' somewhere in the stacktrace
findepi is offline   Reply With Quote
Old 11-17-2009   #18 (permalink)
Linux Guru
 
reed9's Avatar
 
Join Date: Feb 2009
Location: Boston, MA
Posts: 3,238
That's good to know. Everything I could find on this card suggested it was still zd1211.

I don't normally suggest ndiswrapper, but I couldn't find an alternative. And I guess that's why - it hasn't been released.

Thanks for the heads up!
reed9 is online now   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Free Magazines
A Newbie's Getting Started Guide to Linux
Learn the basics of the Linux operating systems. Get to know what it is all about, and familiarize yourself with the practical side. Basically, if you're a complete Linux newbie and looking for a quick and easy guide to get you started this is it.
subscribe
Run Your Own Web Server Using Linux & Apache - Free 191 Page Preview
Learn about everything you'll need to build and maintain your Linux servers, and to deploy Web applications to them.
subscribe
Open Source Security Myths Dispelled
Dispel the five major myths surrounding Open Source Security and gain the tools necessary to make a truly informed decision for your IT organization
subscribe
InformationWeek
InformationWeek is the only newsweekly you'll need to stay on top of the latest developments in information technology.
subscribe



All times are GMT. The time now is 02:04 AM.






© 2000 - - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.3.1