Modify

Opened 7 years ago

Closed 7 years ago

Last modified 4 years ago

#8826 closed enhancement (fixed)

AR9271 based USB stick not working on x86 trunk 25395

Reported by: mandgeo@… Owned by: developers
Priority: normal Milestone: Barrier Breaker 14.07
Component: base system Version: Kamikaze trunk
Keywords: atheros, ar9271 Cc:

Description

I'm trying to use an TP-LINK wn722n atheros ar9271 usb adapter on my x86 openwrt system. I don't know what to do or what am i doing wrong.

I've installed these packages: crda, iw, kmod-ath, kmod-ath9k, kmod-cfg80211, kmod-mac80211, kmod-madwifi (i've understand that it doesn't work with wireless N), wireless-tools, wpad-mini and others for usb support.

That's what i get when i insert the adapter in the usb (1-3) port...

usb 1-3: new high speed USB device using ehci_hcd and address 4
usb 1-3: configuration #1 chosen from 1 choice
root@OpenWrt:~#

And that's what i get on boot (adapter inserted in usb 1-4)...

Feb  8 18:48:01 OpenWrt kern.info kernel: usbcore: registered new device driver usb
Feb  8 18:48:01 OpenWrt kern.info kernel: cfg80211: World regulatory domain updated:
Feb  8 18:48:01 OpenWrt kern.info kernel: cfg80211:     (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
Feb  8 18:48:01 OpenWrt kern.info kernel: cfg80211:     (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
Feb  8 18:48:01 OpenWrt kern.info kernel: cfg80211:     (2457000 KHz - 2482000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
Feb  8 18:48:01 OpenWrt kern.info kernel: cfg80211:     (2474000 KHz - 2494000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
Feb  8 18:48:01 OpenWrt kern.info kernel: cfg80211:     (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
Feb  8 18:48:01 OpenWrt kern.info kernel: cfg80211:     (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)

something about usb & iptables

Feb  8 18:48:02 OpenWrt kern.info kernel: usb 1-2: new high speed USB device using ehci_hcd and address 2

something about ethernet card

Feb  8 18:48:03 OpenWrt kern.info kernel: usb 1-2: configuration #1 chosen from 1 choice
Feb  8 18:48:03 OpenWrt kern.warn kernel: ACPI: PCI Interrupt Link [LNKB] enabled at IRQ 11
Feb  8 18:48:03 OpenWrt kern.debug kernel: PCI: setting IRQ 11 as level-triggered

something about the other ethernet card

Feb  8 18:48:03 OpenWrt kern.info kernel: usb 1-4: new high speed USB device using ehci_hcd and address 3
Feb  8 18:48:03 OpenWrt kern.warn kernel: ath_hal: module license 'Proprietary' taints kernel.
Feb  8 18:48:03 OpenWrt kern.warn kernel: Disabling lock debugging due to kernel taint
Feb  8 18:48:03 OpenWrt kern.info kernel: ath_hal: 2009-05-08 (AR5210, AR5211, AR5212, AR5416, RF5111, RF5112, RF2413, RF5413, RF2133, RF2425, REGOPS_FUNC, XR)
Feb  8 18:48:03 OpenWrt kern.info kernel: usb 1-4: configuration #1 chosen from 1 choice
Feb  8 18:48:03 OpenWrt kern.info kernel: ath_pci: trunk
Feb  8 18:48:03 OpenWrt kern.info kernel: wlan: trunk
Feb  8 18:48:03 OpenWrt kern.info kernel: wlan: mac acl policy registered
Feb  8 18:48:03 OpenWrt kern.info kernel: ath_rate_minstrel: Minstrel automatic rate control algorithm 1.2 (trunk)
Feb  8 18:48:03 OpenWrt kern.info kernel: ath_rate_minstrel: look around rate set to 10%
Feb  8 18:48:03 OpenWrt kern.info kernel: ath_rate_minstrel: EWMA rolloff level set to 75%
Feb  8 18:48:03 OpenWrt kern.info kernel: ath_rate_minstrel: max segment size in the mrr set to 6000 us

Is there any chance i can use this adapter with openwrt? The subject was discussed some time ago (something about patches) but the conclusion was not a happy one.

I've installed the latest trunk (25395) hoping that the problem has been solved from trunk 25080 (if i remember well).

What can i do?

Attachments (0)

Change History (5)

comment:1 Changed 7 years ago by koniu <gkusnierz@…>

See ticket #7385.

Long story short - you need ath9k_htc module which isn't in OpenWrt.

To build from source with the module:

  1. checkout OpenWrt source tree
  2. apply this patch: 0001-mac80211-add-option-for-ath9k_htc.patch
  3. select ath9k_htc kmod in make menuconfig
  4. make
  5. reflash using the newly compiled image
  6. add your local package dir in /etc/opkg.conf on your router
  7. opkg update; opkg install kmod-ath9k-htc

It would be very interesting to know whether ath9k_htc works in anything but monitor mode on x86!

comment:2 Changed 7 years ago by mandgeo@…

I'm a linux-noob.

I've installed ubuntu and managed to start menuconfig, but i don't know, and also didn't found information, about applying a patch.

I've copied the patch file to /packages/mac80211/patch folder, but i don't know what to do next.

Can u please help me?! What should i do, step by step?

Thanks

comment:3 Changed 7 years ago by mandgeo@…

Somebody, anybody who knows how it's done, please compile patched kmod-ath9k-htc.

There is also a patch and a firmware over here... http://linuxwireless.org/en/users/Drivers/ath9k_htc

Thanks

comment:4 Changed 7 years ago by nbd

  • Resolution set to fixed
  • Status changed from new to closed

ath9k_htc was added in r26130

comment:5 Changed 4 years ago by jow

  • Milestone changed from Attitude Adjustment 12.09 to Barrier Breaker 14.07

Milestone Attitude Adjustment 12.09 deleted

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.