summaryrefslogtreecommitdiff
path: root/net/wireless/wext-sme.c
diff options
context:
space:
mode:
authorJohannes Berg <johannes@sipsolutions.net>2009-07-10 18:35:49 +0200
committerJohn W. Linville <linville@tuxdriver.com>2009-07-24 15:05:11 -0400
commit4697fe4f78df14d37cffa7e8d27cbb02a351c139 (patch)
tree4b43087351f81727011bd04a31f946f5b46b4029 /net/wireless/wext-sme.c
parent908d4369a394e816767d566d9c3d15a5af8c1c55 (diff)
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: Pavel Roskin <proski@gnu.org> Signed-off-by: Johannes Berg <johannes@sipsolutions.net> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/wireless/wext-sme.c')
-rw-r--r--net/wireless/wext-sme.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/wireless/wext-sme.c b/net/wireless/wext-sme.c
index cd5764fd001a..82e913aa163e 100644
--- a/net/wireless/wext-sme.c
+++ b/net/wireless/wext-sme.c
@@ -166,7 +166,7 @@ int cfg80211_mgd_wext_siwessid(struct net_device *dev,
if (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;
if (wdev->sme_state != CFG80211_SME_IDLE) {