Commit 4697fe4f authored by Johannes Berg's avatar Johannes Berg Committed by John W. Linville

cfg80211: fix wext setting SSID

Pavel reported that you can't set the SSID from "foo" to
"bar". I tried reproducing, but used different values,
with different lengths, and thus never saw the obvious
problem.
Reported-by: default avatarPavel Roskin <proski@gnu.org>
Signed-off-by: default avatarJohannes Berg <johannes@sipsolutions.net>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 908d4369
...@@ -166,7 +166,7 @@ int cfg80211_mgd_wext_siwessid(struct net_device *dev, ...@@ -166,7 +166,7 @@ int cfg80211_mgd_wext_siwessid(struct net_device *dev,
if (wdev->wext.connect.ssid && len && if (wdev->wext.connect.ssid && len &&
len == wdev->wext.connect.ssid_len && len == wdev->wext.connect.ssid_len &&
memcmp(wdev->wext.connect.ssid, ssid, len)) memcmp(wdev->wext.connect.ssid, ssid, len) == 0)
goto out; goto out;
if (wdev->sme_state != CFG80211_SME_IDLE) { if (wdev->sme_state != CFG80211_SME_IDLE) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment