cfg80211: fix wext setting SSID
Johannes Berg
maintainerPATCH 1/1 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 <[email protected]>
Signed-off-by Johannes Berg <[email protected]>
---
*sigh*
tons of stupid mistakes
net/wireless/wext-sme.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
net/wireless/wext-sme.c +1 -1
@@ -166,7 +166,7 @@ int cfg80211_mgd_wext_siwessid(struct neif (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 ) {
Quoted 7 lines · Johannes Berg
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 <[email protected]>Signed-off-by Johannes Berg <[email protected]>
Tested-by Pavel Roskin <[email protected]>
Quoted 2 lines
*sigh*
tons of stupid mistakes
Two mistakes less. Thank you!
Signature · 2 lines
Regards, Pavel Roskin