[linux-oem][PATCH] UBUNTU: SAUCE: Revert "cfg80211: workaround for mwifiex"

Wen-chien Jesse Sung jesse.sung at canonical.com
Wed Feb 14 08:32:40 UTC 2018

BugLink: http://bugs.launchpad.net/bugs/1725154

This commit reverts "UBUNTU: SAUCE: cfg80211: workaround for mwifiex"
which is a workaround for a mwifiex issue.

The proper fix is 879ab4225c7cacba77f4310616513c46a82b1dd1 "cfg80211:
fix connect/disconnect edge cases" and we already have this commit
via stable updates.

Signed-off-by: Wen-chien Jesse Sung <jesse.sung at canonical.com>
 net/wireless/sme.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/net/wireless/sme.c b/net/wireless/sme.c
index 81baa29..b6533ec 100644
--- a/net/wireless/sme.c
+++ b/net/wireless/sme.c
@@ -1166,7 +1166,7 @@ int cfg80211_disconnect(struct cfg80211_registered_device *rdev,
 		err = cfg80211_sme_disconnect(wdev, reason);
 	else if (!rdev->ops->disconnect)
 		cfg80211_mlme_down(rdev, dev);
-	else if (wdev->ssid_len || wdev->current_bss)
+	else if (wdev->ssid_len)
 		err = rdev_disconnect(rdev, dev, reason);

More information about the kernel-team mailing list