aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKumar Anand <kumaranand@google.com>2019-04-11 23:02:55 +0000
committerKumar Anand <kumaranand@google.com>2019-04-17 20:49:03 +0000
commit33df1fd2f293bdf6a26938c701064f94d620c92a (patch)
tree93299017b063e03e925fa5bf4e3bcfc8799a577e
parent021b0b5d022e627c642aaab185d486e5891e2745 (diff)
downloadwpa_supplicant_8-33df1fd2f293bdf6a26938c701064f94d620c92a.tar.gz
Revert "wpa_supplicant(hidl): Set 'ieee80211w' when PMF required"
This reverts commit 9df0f4fb550e51de9b1c82a6cc076d6ca41e3008. Reason for revert: Wifi connection failure, See b/130449698, b/129881116, b/129925214 Bug: 129936178 Change-Id: I4e72f720eeb311e039c94c5a67ecb49d92969741
-rw-r--r--wpa_supplicant/hidl/1.2/sta_network.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/wpa_supplicant/hidl/1.2/sta_network.cpp b/wpa_supplicant/hidl/1.2/sta_network.cpp
index 1b1ee483..13540557 100644
--- a/wpa_supplicant/hidl/1.2/sta_network.cpp
+++ b/wpa_supplicant/hidl/1.2/sta_network.cpp
@@ -1010,9 +1010,8 @@ SupplicantStatus StaNetwork::setWepTxKeyIdxInternal(uint32_t key_idx)
SupplicantStatus StaNetwork::setRequirePmfInternal(bool enable)
{
struct wpa_ssid *wpa_ssid = retrieveNetworkPtr();
- if (enable) {
- wpa_ssid->ieee80211w = MGMT_FRAME_PROTECTION_REQUIRED;
- }
+ wpa_ssid->ieee80211w =
+ enable ? MGMT_FRAME_PROTECTION_REQUIRED : NO_MGMT_FRAME_PROTECTION;
resetInternalStateAfterParamsUpdate();
return {SupplicantStatusCode::SUCCESS, ""};
}