Can't get Wireless Networking working with TP-link TL-WN722N wireless card

If this is your first visit, be sure to
check out the Forum Rules by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Can't get Wireless Networking working with TP-link TL-WN722N wireless card

Hi, I am new to this forum and to linux, so if I post with bad etiquette or anything, I apologize.

Alright, here is my problem. I am running Backtrack 5 r3 fully installed on my hdd, with a TP-link TL-WN722N USB wireless card. I know that Backtrack detects my device because it shows up as 'Atheros AR9271' when I run lsusb. However, when I open wicd, it shows that there are no networks available, and when I run iwconfig I get:

lo no wireless extensions.
eth0 no wireless extensions.

When I run airmon-ng I get:

Interface Chipset Driver

but it doesn't show anything else. I have the AR9271 driver. Also, my wireless config file is empty. I am pretty sure that is part of the problem, but I think there may be more to it as well. Any help is greatly appreciated. Thanks!

Hi, I am new to this forum and to linux, so if I post with bad etiquette or anything, I apologize.

Alright, here is my problem. I am running Backtrack 5 r3 with a TP-link TL-WN722N USB wireless card. I know that Backtrack detects my device because it shows up as 'Atheros AR9271' when I run lsusb. However, when I open wicd, it shows that there are no networks available, and when I run iwconfig I get:

lo no wireless extensions.
eth0 no wireless extensions.

When I run airmon-ng I get:

Interface Chipset Driver

but it doesn't show anything else. I have the AR9271 driver. Also, my wireless config file is empty. I am pretty sure that is part of the problem, but I think there may be more to it as well. Any help is greatly appreciated. Thanks!

It didn't show up as wlan0 or anything when I ran ifconfig as you can see. Do I need to edit my wireless config file and add it or something?

EDIT:

I don't know if this is useful information or not, but I thought I had better include it.
The wireless card is a USB 2.0 device (as are my mouse and keyboard), and when I am on Windows the wireless card won't work in a USB 3.0 port.
However, when I am on backtrack none of the USB 2.0 ports work; it doesn't recognize my mouse, keyboard, or wireless card unless they are plugged
into one of the USB 3.0 ports. So I am thinking this whole thing could have something to do with the level of compatibility my wireless card has with USB 3.0.
I know nothing about that, though. I am going to look for some information about it, and I will post back here if I find anything.

Update:
Alright, so I learned that my problem may be that I needed to either install some drivers that I already had, or get some drivers that I didn't have an then install them. So I got the compat wireless drivers from here: http://drvbp1.linux-foundation.org/~...ompat-drivers/
and ran

which ran through all of the install info. Then I ran a modprobe for two of the ath9k drivers

Code:

modprobe ath9k_htc
modprobe ath9k

but nothing happened. I don't know if this is whats supposed to happen if everything is running smoothly or not.
Then I rebooted, and ran service networking start, and service wicd start, but when I opened wicd there were no connections available.
and when I run airmon-ng it still doesn't recognize my device. It just gives the same output I posted above when I ran it before.

Update:
Alright, so I learned that my problem may be that I needed to either install some drivers that I already had, or get some drivers that I didn't have an then install them. So I got the compat wireless drivers from here: http://drvbp1.linux-foundation.org/~...ompat-drivers/
and ran

which ran through all of the install info. Then I ran a modprobe for two of the ath9k drivers

Code:

modprobe ath9k_htc
modprobe ath9k

but nothing happened. I don't know if this is whats supposed to happen if everything is running smoothly or not.
Then I rebooted, and ran service networking start, and service wicd start, but when I opened wicd there were no connections available.
and when I run airmon-ng it still doesn't recognize my device. It just gives the same output I posted above when I ran it before.

TRy wlan0 and wlan1...You do not know in which interface is your wifi device..Use ifconfig, not ifup please.

Ifup will search for the /etc/network/interface file, reads it and configure the interfaces within the file according to the parameters in the same file..If wlan0 or wlan1 are not in there, you will end up configuring nothing or configuring an unexisting interfce.

Refer to ifup manual (man ifup)..Use ifconfig to configure the interface and bring it up/down manually...

Could my problem be that that directory doesn't exist? Or am I just looking in the wrong place? Also, which kernel module do I need to remove, and from where do I get the ath9k_htc module?
Thanks for your help!

EDIT: I posted this before I saw your edit, so I did exactly what you said and this is the result:

Hi there I am also stuck in the same situation I have Backtrack 3 fully installed on my hdd,. I know that Backtrack detects my device because it shows up as 'Ralink Technology' when I run lsusb. However, it shows that there are no networks available, and when I run iwconfig I get:

lo no wireless extensions.
eth0 no wireless extensions.

When I run airmon-ng I get:

Interface Chipset Driver

I use your advice of running usb_modeswitch command by taking vendor Id and Product Id from lsusb but in backtrack 3 its shows error that command not found please help

Could my problem be that that directory doesn't exist? Or am I just looking in the wrong place? Also, which kernel module do I need to remove, and from where do I get the ath9k_htc module?
Thanks for your help!

EDIT: I posted this before I saw your edit, so I did exactly what you said and this is the result:

If they are loaded do as I posted:Unplug the usb device and do this
1. Remove the modules loaded by kernel ------> modprobe -rf athk9k ath9k_htc
2. unblock all hard and soft locks (just in case)----> rfkill unblock all
3. load modules ath9k and ath9k_htc -------------> modprobe ath9k_htc ------->Just load the ath9k_htc4. Plug the USB stick again.

YOU need to UNPLUG the wifi device first, then follow steps..
Check with iwconfig to see if any interface shows up...

If still nothing, please do this:
open up a terminal and do this: cat /boot/config-"your kernel version" | grep -i config_ath ------> Check this parameters:
CONFIG_ATH_COMMON=m
CONFIG_ATH9K_HW=m
CONFIG_ATH9K_COMMON=m
CONFIG_ATH9K_HTC=m

They must be enabled (=m), use nano to edit and change the file if are not enabled:
nano /boot/config-"your kernel version"