Revert "wpa_supplicant(hidl): Set 'ieee80211w' when PMF required"
am: 33df1fd2f2
Change-Id: I1d1fe63e887d464515282f867f681c107bce35e8
diff --git a/wpa_supplicant/hidl/1.2/sta_network.cpp b/wpa_supplicant/hidl/1.2/sta_network.cpp
index 1b1ee48..1354055 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::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, ""};
}