diff options
author | android-build-team Robot <android-build-team-robot@google.com> | 2019-10-17 01:09:10 +0000 |
---|---|---|
committer | android-build-team Robot <android-build-team-robot@google.com> | 2019-10-17 01:09:10 +0000 |
commit | 86a84d9822f2de47420a5974b0c31a0211ccee50 (patch) | |
tree | a578f2ef38d0e4e7896aae4ec7b316331fd47ddc | |
parent | a0b9266190cef362da3fc2b562f0fbeb69869393 (diff) | |
parent | a434a5e73983647993194e4c6a04cd55c8f11e47 (diff) | |
download | wpa_supplicant_8-86a84d9822f2de47420a5974b0c31a0211ccee50.tar.gz |
Snap for 5945193 from a434a5e73983647993194e4c6a04cd55c8f11e47 to qt-qpr2-release
Change-Id: I6bf91c09384237028226eb952cbda9b343076433
-rw-r--r-- | wpa_supplicant/hidl/1.2/sta_network.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/wpa_supplicant/hidl/1.2/sta_network.cpp b/wpa_supplicant/hidl/1.2/sta_network.cpp index 9f4e9d2f..57622f83 100644 --- a/wpa_supplicant/hidl/1.2/sta_network.cpp +++ b/wpa_supplicant/hidl/1.2/sta_network.cpp @@ -1011,8 +1011,9 @@ SupplicantStatus StaNetwork::setWepTxKeyIdxInternal(uint32_t key_idx) SupplicantStatus StaNetwork::setRequirePmfInternal(bool enable) { struct wpa_ssid *wpa_ssid = retrieveNetworkPtr(); - wpa_ssid->ieee80211w = - enable ? MGMT_FRAME_PROTECTION_REQUIRED : NO_MGMT_FRAME_PROTECTION; + if (enable) { + wpa_ssid->ieee80211w = MGMT_FRAME_PROTECTION_REQUIRED; + } resetInternalStateAfterParamsUpdate(); return {SupplicantStatusCode::SUCCESS, ""}; } |