From: Johannes Berg Date: Sat, 26 Jan 2013 21:16:08 +0000 (+0100) Subject: cfg80211: add SME state to warning in __cfg80211_mlme_disassoc X-Git-Tag: accepted/tizen/common/20141203.182822~2684^2~28^2^2~26^2~105 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8dcf011ab05bf1fdd9323a9c460bdd0e325b99e1;p=platform%2Fkernel%2Flinux-arm64.git cfg80211: add SME state to warning in __cfg80211_mlme_disassoc 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 --- diff --git a/net/wireless/mlme.c b/net/wireless/mlme.c index 461e692..fee9bf7 100644 --- a/net/wireless/mlme.c +++ b/net/wireless/mlme.c @@ -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));