Skip to content

Commit

Permalink
cfg80211: fix wext setting SSID
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Johannes Berg authored and John W. Linville committed Jul 24, 2009
1 parent 908d436 commit 4697fe4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/wireless/wext-sme.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 4697fe4

Please sign in to comment.