Commit d4b1a687 authored by Zhu Yi's avatar Zhu Yi Committed by John W. Linville
Browse files

cfg80211: remove WARN_ON in __cfg80211_sme_scan_done

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: default avatarZhu Yi <>
Acked-by: default avatarJohannes Berg <>
Signed-off-by: default avatarJohn W. Linville <>
parent 6e5db0a8
...@@ -227,7 +227,7 @@ static void __cfg80211_sme_scan_done(struct net_device *dev) ...@@ -227,7 +227,7 @@ static void __cfg80211_sme_scan_done(struct net_device *dev)
if (wdev->sme_state != CFG80211_SME_CONNECTING) if (wdev->sme_state != CFG80211_SME_CONNECTING)
return; return;
if (WARN_ON(!wdev->conn)) if (!wdev->conn)
return; return;
if (wdev->conn->state != CFG80211_CONN_SCANNING && if (wdev->conn->state != CFG80211_CONN_SCANNING &&
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment