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 <johannes.berg@intel.com>
This commit is contained in:
Родитель
8df6b7b11a
Коммит
8dcf011ab0
|
@ -514,7 +514,7 @@ static int __cfg80211_mlme_disassoc(struct cfg80211_registered_device *rdev,
|
||||||
if (wdev->sme_state != CFG80211_SME_CONNECTED)
|
if (wdev->sme_state != CFG80211_SME_CONNECTED)
|
||||||
return -ENOTCONN;
|
return -ENOTCONN;
|
||||||
|
|
||||||
if (WARN_ON(!wdev->current_bss))
|
if (WARN(!wdev->current_bss, "sme_state=%d\n", wdev->sme_state))
|
||||||
return -ENOTCONN;
|
return -ENOTCONN;
|
||||||
|
|
||||||
memset(&req, 0, sizeof(req));
|
memset(&req, 0, sizeof(req));
|
||||||
|
|
Загрузка…
Ссылка в новой задаче