summaryrefslogtreecommitdiffstats
path: root/components/wifi/wifi_service_win.cc
diff options
context:
space:
mode:
authormgiuca <mgiuca@chromium.org>2015-07-06 21:39:31 -0700
committerCommit bot <commit-bot@chromium.org>2015-07-07 04:40:04 +0000
commitf38b0349ac26baf2d936183df96c3c1a4e6d60f1 (patch)
treeab7615fe29bbc8a590ea778d69e47da5addf1a32 /components/wifi/wifi_service_win.cc
parent01a75fbc88c17d50f87c35f260e5dbbb48c1ec8b (diff)
downloadchromium_src-f38b0349ac26baf2d936183df96c3c1a4e6d60f1.zip
chromium_src-f38b0349ac26baf2d936183df96c3c1a4e6d60f1.tar.gz
chromium_src-f38b0349ac26baf2d936183df96c3c1a4e6d60f1.tar.bz2
WiFiServiceImpl (Windows): Fixed wrong authentication type with WEP-PSK.
Previously the "authentication" field was set to "open" when using WEP-PSK security, which seems to be a copy-paste error. It should be set to "WEP". BUG=506445,505319 Review URL: https://codereview.chromium.org/1212173003 Cr-Commit-Position: refs/heads/master@{#337561}
Diffstat (limited to 'components/wifi/wifi_service_win.cc')
-rw-r--r--components/wifi/wifi_service_win.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/wifi/wifi_service_win.cc b/components/wifi/wifi_service_win.cc
index 661f602..1207398 100644
--- a/components/wifi/wifi_service_win.cc
+++ b/components/wifi/wifi_service_win.cc
@@ -1797,7 +1797,7 @@ bool WiFiServiceImpl::AuthEncryptionFromSecurity(
*authentication = kAuthenticationOpen;
*encryption = kEncryptionNone;
} else if (security == onc::wifi::kWEP_PSK) {
- *authentication = kAuthenticationOpen;
+ *authentication = kAuthenticationWepPsk;
*encryption = kEncryptionWEP;
*key_type = kKeyTypeNetwork;
} else if (security == onc::wifi::kWPA_PSK) {