cfg80211: remove WARN_ON in __cfg80211_sme_scan_done
authorZhu Yi <yi.zhu@intel.com>
Thu, 16 Jul 2009 09:34:14 +0000 (17:34 +0800)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 24 Jul 2009 19:05:21 +0000 (15:05 -0400)
cfg80211_sme_scan_done() can be called (by fullmac cards) with
wdev->conn == NULL when CFG80211_SME_CONNECTING. We quit silently
instead of WARN_ON in this case.

Signed-off-by: Zhu Yi <yi.zhu@intel.com>
Acked-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/wireless/sme.c

index 10ed36621bd74653381edeb3b49c678d9bfbf4da..e7a8851093a7087fb3827e89e3f1dc093a41983b 100644 (file)
@@ -227,7 +227,7 @@ static void __cfg80211_sme_scan_done(struct net_device *dev)
        if (wdev->sme_state != CFG80211_SME_CONNECTING)
                return;
 
-       if (WARN_ON(!wdev->conn))
+       if (!wdev->conn)
                return;
 
        if (wdev->conn->state != CFG80211_CONN_SCANNING &&