Skip to content

Commit

Permalink
cfg80211: add SME state to warning in __cfg80211_mlme_disassoc
Browse files Browse the repository at this point in the history
The warning here occasionally triggers but we haven't
found the cause yet. It's a valid warning since if it
triggers the SME state got confused, so add the SME
state to it to help narrow it down in the future.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
  • Loading branch information
Johannes Berg committed Jan 29, 2013
1 parent 8df6b7b commit 8dcf011
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/wireless/mlme.c
Original file line number Diff line number Diff line change
Expand Up @@ -514,7 +514,7 @@ static int __cfg80211_mlme_disassoc(struct cfg80211_registered_device *rdev,
if (wdev->sme_state != CFG80211_SME_CONNECTED)
return -ENOTCONN;

if (WARN_ON(!wdev->current_bss))
if (WARN(!wdev->current_bss, "sme_state=%d\n", wdev->sme_state))
return -ENOTCONN;

memset(&req, 0, sizeof(req));
Expand Down

0 comments on commit 8dcf011

Please sign in to comment.