Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

[SOLVED] Atheros (ath9k) driver problem at installation

Need help with peripherals or devices?
Post Reply
Message
Author
netpumber
Posts: 10
Joined: 2007-10-07 18:25

[SOLVED] Atheros (ath9k) driver problem at installation

#1 Post by netpumber »

Hello.

I'm trying to install atheros driver for my new usb wireless card (AWUS036NHA).

In iwconfig and in ifconfig commands system cannot recognize the network device.

So i tried to install the athk9 driver myself:

Code: Select all

sudo wget -P /lib/firmware http://wireless.kernel.org/download/htc_fw/1.3/htc_9271.fw
sudo wget -P /lib/firmware http://wireless.kernel.org/download/htc_fw/1.3/htc_7010.fw

Code: Select all

cd /usr/src/
sudo wget https://www.kernel.org/pub/linux/kernel/projects/backports/stable/v3.15-rc1/backports-3.15-rc1-1.tar.gz
sudo tar zxvf backports-3.15-rc1-1.tar.gz
cd backports-3.15-rc1-1/
sudo wget http://patches.aircrack-ng.org/mac80211.compat08082009.wl_frag+ack_v1.patch
sudo patch -p1 < mac80211.compat08082009.wl_frag+ack_v1.patch

Code: Select all

sudo make defconfig-ath9k
sudo make
but when im running make command , it returns :
/usr/src/backports-3.15-rc1-1/backports-include/linux/dma-mapping.h:25:19: error: redefinition of 'dma_set_mask_and_coherent'
/usr/src/linux-headers=3.2.0-4-common/include/linux/dma-mapping.h:98:19: note: previous definition of 'dma_set_mask_and_coherent' was here
Is there any way to fix that problem ?

Thank you.
Last edited by netpumber on 2014-05-02 20:31, edited 1 time in total.

dibl
Posts: 528
Joined: 2009-10-13 19:50
Location: Dayton, Ohio, USA

Re: Atheros (ath9k) driver problem at installation

#2 Post by dibl »

According to the wiki, the ath9k driver module is already in Debian kernels since 2.6.27. So, if that hardware is being correctly detected, the module should load automatically. You can learn what is happing during the boot, regarding hardware detection, by reviewing the output of

Code: Select all

dmesg
in a terminal.

If the hardware is being detected correctly, then I'm suspecting that ath9k might not be the correct driver after all. If the hardware is not being correctly detected, it might be too new. In that case, one thing you could try is a newer distribution, like siduction, aptosid, or *buntu 14.04. Just try a live CD or USB stick.
Debian sid / siduction KDE

User avatar
korilius
Posts: 422
Joined: 2012-04-10 00:53
Location: US/IN
Has thanked: 3 times

Re: Atheros (ath9k) driver problem at installation

#3 Post by korilius »

@OP: In less than two minutes I did the following: I looked up the product and the chipset is Atheros AR9271 http://www.alfa.com.tw/products_show.php?pc=34&ps=20 .

I then googled "Debian Atheros AR9271" and received as the first hit: https://wiki.debian.org/ath9k_htc

It will work with Debian fine if you follow the instructions. I suggest you undo everything you did and follow the Debian guide link I just posted above.

I have an Atheros based wireless NIC and it works great. Let me know if you're stuck.

If you're stuck on doing the complete freeware route, check my previous post on doing just that: http://forums.debian.net/viewtopic.php?f=5&t=108723

netpumber
Posts: 10
Joined: 2007-10-07 18:25

Re: Atheros (ath9k) driver problem at installation

#4 Post by netpumber »

Ok. Now its working. I undone what i have done and now after a reboot its working.

Thanks for your answer.

User avatar
korilius
Posts: 422
Joined: 2012-04-10 00:53
Location: US/IN
Has thanked: 3 times

Re: [SOLVED] Atheros (ath9k) driver problem at installation

#5 Post by korilius »

Awesome. Glad it's working out.

up6
Posts: 1
Joined: 2014-12-20 18:27

Re: [SOLVED] Atheros (ath9k) driver problem at installation

#6 Post by up6 »

Hi
I know this forum is close but since it is still quite recent I just want to inquire abit further on my problem.
I have followed every step, but I am extremely lost on why it is not working.
this is what I get from dmesg

[ 2652.770167] usb 1-1: New USB device strings: Mfr=16, Product=32, SerialNumber=48
[ 2652.770173] usb 1-1: Product: UB91C
[ 2652.770178] usb 1-1: Manufacturer: ATHEROS
[ 2652.770182] usb 1-1: SerialNumber: 12345
[ 2652.777837] usb 1-1: firmware: agent loaded htc_9271.fw into memory
[ 2653.060581] usb 1-1: ath9k_htc: Transferred FW: htc_9271.fw, size: 51272
[ 2653.060944] xhci_hcd 0000:00:14.0: ERROR no room on ep ring
[ 2653.063966] usb 1-1: ath9k_htc: Unable to allocate URBs
[ 2653.064019] ath9k_htc: probe of 1-1:1.0 failed with error -22

DrCyCoe
Posts: 2
Joined: 2015-01-19 03:15

Re: [SOLVED] Atheros (ath9k) driver problem at installation

#7 Post by DrCyCoe »

I am pretty sure that you are using a usb-3 device in a usb-2 outlet.

divbyzero
Posts: 62
Joined: 2014-11-18 16:20

Re: [SOLVED] Atheros (ath9k) driver problem at installation

#8 Post by divbyzero »

seems to be a kernel bug
proposed solution : switch to recent kernel w/o the bug
OR
workaround : plug in usb-2 device during boot, then put in your usb-3 wireless key

Post Reply