Wifi is hanging embedded linux

Hi all,

(I’ve posted this issue at ath9k-devel mailing list too, but maybe someone here can help me :wink:

I’m trying to setup an wifi network on my beaglebone, using a TP-Link TL-WN721N dongle. My kernel is from https://github.com/RobertCNelson/linux-dev/tree/am33x-v3.2 and my distro is customized.

So far, I’ve cross-compiled compat-wireless-3.2-1 to my 3.2-21 kernel, using this patch to fix an error:

diff -Nur compat-wireless-3.1-rc1-1.orig//net/wireless/nl80211.c compat-wireless-3.1-rc1-1//net/wireless/nl80211.c
— compat-wireless-3.1-rc1-1.orig//net/wireless/nl80211.c 2011-08-11 20:57:22.000000000 -0300
+++ compat-wireless-3.1-rc1-1//net/wireless/nl80211.c 2012-04-19 19:18:21.620696384 -0300
@@ -23,6 +23,8 @@
#include “nl80211.h”
#include “reg.h”

+#define br_port_exists(dev) (dev->priv_flags & IFF_BRIDGE_PORT)

Sorry for missing [beagleboard] in the subject.

I’ve discovered that acessing an ad-hoc wifi network without wpa_supplicant works just fine.

2012/7/23 Fernando Endo <fernando.endo@phiinnovations.com>