Skip to content

Commit

Permalink
cfg80211: remove WARN_ON in __cfg80211_sme_scan_done
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Zhu Yi authored and John W. Linville committed Jul 24, 2009
1 parent 6e5db0a commit d4b1a68
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/wireless/sme.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 &&
Expand Down

0 comments on commit d4b1a68

Please sign in to comment.