Search Linux Wireless

[RFC PATCH 1/1] mac80211: Disable cfg80211 assoc timeout warning

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

 



While the association response is queued and yet to be
processed, if the interface goes down, ieee80211_stop
marks work queue items as IEEE80211_WORK_ABORT. This
creates assoc timeout warnings which are actually caused
by if down. Those warnings could be avoided, since they
are not beacuse of association response.

This patch disables assoc timeout warnings if interface is
not running.

Signed-off-by: Saravanan Dhanabal <ext-saravanan.dhanabal@xxxxxxxxx>
---
 net/wireless/mlme.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/net/wireless/mlme.c b/net/wireless/mlme.c
index 0855f0d..a3ab86c 100644
--- a/net/wireless/mlme.c
+++ b/net/wireless/mlme.c
@@ -337,7 +337,7 @@ void cfg80211_send_assoc_timeout(struct net_device *dev, const u8 *addr)
 		}
 	}
 
-	WARN_ON(!done);
+	WARN_ON(netif_running(dev) && !done);
 
 	wdev_unlock(wdev);
 }
-- 
1.7.0

--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[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