Search Linux Wireless

Re: wierless hardware using ath9k driver on AP mode leads to kernel panic

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Dec 15, 2011 at 2:36 PM, Mohammed Shafi
<shafi.wireless@xxxxxxxxx> wrote:
> On Thu, Dec 15, 2011 at 1:24 PM, Mohammed Shafi
> <shafi.wireless@xxxxxxxxx> wrote:
>> On Thu, Dec 15, 2011 at 12:55 PM, Ashwin Mendonca <ashwinloyal@xxxxxxxxx> wrote:
>>> I tried the bleeding edge build of compat-wireless
>>> (compat-wireless-2011-12-14 build) on Linux-3.1.5. It still leads to kernel
>>> panic. I manually got the AP up with these steps:

hi Ashwin,

can you please try the attached patch and it seems to work for me.
please go to your compat directory
cd compat...
then do patch -p1 < ./fix-ar2427-ap-mode-panic.patch

-- 
shafi
diff --git a/drivers/net/wireless/ath/ath9k/main.c b/drivers/net/wireless/ath/ath9k/main.c
index 7d92004..5afc09c 100644
--- a/drivers/net/wireless/ath/ath9k/main.c
+++ b/drivers/net/wireless/ath/ath9k/main.c
@@ -1804,6 +1804,9 @@ static void ath9k_sta_notify(struct ieee80211_hw *hw,
 	struct ath_softc *sc = hw->priv;
 	struct ath_node *an = (struct ath_node *) sta->drv_priv;
 
+	if (!(sc->sc_flags & SC_OP_TXAGGR))
+		return;
+
 	switch (cmd) {
 	case STA_NOTIFY_SLEEP:
 		an->sleeping = true;

[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux