Note: I'm using Debian distro Wheezy-bbb
Working assumptions you have installed Debian on to your BBB and you do have a TP-Link TL-WN722N. If any of these assumption are wrong then I can't say these steps will work.
Step 1: Make sure your source.list looks like this
cat /etc/apt/sources.list
deb http://ftp.us.debian.org/debian/ wheezy main contrib non-free #deb-src http://ftp.us.debian.org/debian/ wheezy main contrib non-free deb http://ftp.us.debian.org/debian/ wheezy-updates main contrib non-free #deb-src http://ftp.us.debian.org/debian/ wheezy-updates main contrib non-free deb http://security.debian.org/ wheezy/updates main contrib non-free #deb-src http://security.debian.org/ wheezy/updates main contrib non-free deb http://ftp.debian.org/debian wheezy-backports main contrib non-free #deb-src http://ftp.debian.org/debian wheezy-backports main contrib non-free deb [arch=armhf] http://beagle.s3.amazonaws.com/debian wheezy-bbb main #deb-src [arch=armhf] http://beagle.s3.amazonaws.com/debian wheezy-bbb main
Step 2: If you had to change or add things to the source.list you will need to update your packages
sudo apt-get update
Step 3: Install the wifi libraries.
sudo apt-get install wireless-tools usbutils
Step 4: Download and install the firmware for the wifi card.
sudo apt-get install firmware-atheros sudo wget http://linuxwireless.org/download/htc_fw/1.3/htc_9271.fw sudo cp htc_9271.fw /lib/firmware
Step 5: Adding the adaptor info to the interface file.
sudo vi /etc/network/interfaceAdd to the bottom of the file.
# The wireless interface auto wlan0 iface wlan0 inet dhcp wpa-conf /etc/wpa.confStep 6: Plug the Wifi card in.
Step 7: Make sure system sees the wifi card.
sudo iwconfig
root ~ # sudo iwconfig
wlan0 IEEE 802.11bgn ESSID:"crash_wireless"
Mode:Managed Frequency:2.437 GHz Access Point: 00:14:BF:05:4A:05
Bit Rate=24 Mb/s Tx-Power=20 dBm
Retry long limit:7 RTS thr:off Fragment thr:off
Encryption key:off
Power Management:off
Link Quality=70/70 Signal level=-30 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:264 Missed beacon:0
Step 8: Make the wpa.conf file.
sudo vi /etc/wpa.conf
network={
ssid="TheSSID"
proto=RSN
key_mgmt=WPA-PSK
pairwise=CCMP TKIP
group=CCMP TKIP
psk="ThePassword"
}
Step 9: Lets start this thing.
sudo ifup wlan0Step 10: Lets make sure we are connected
root ~ # ifconfig
eth0 Link encap:Ethernet HWaddr 90:59:af:95:ca:42
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
Interrupt:40
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
usb0 Link encap:Ethernet HWaddr f6:76:6d:4e:92:12
inet addr:192.168.7.2 Bcast:192.168.7.3 Mask:255.255.255.252
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
wlan0 Link encap:Ethernet HWaddr c0:4a:00:1e:51:c4
inet addr:192.168.3.139 Bcast:192.168.3.255 Mask:255.255.255.0
inet6 addr: fe80::c24a:ff:fe1e:51c4/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:183939 errors:0 dropped:0 overruns:0 frame:0
TX packets:1264 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:27428428 (26.1 MiB) TX bytes:207095 (202.2 KiB)
Step 11: Do a dance cause it is connected. If not try turning off the BBB and turning it on again.