diff options
author | maheshkkv <maheshkkv@google.com> | 2023-11-28 17:02:46 -0800 |
---|---|---|
committer | maheshkkv <maheshkkv@google.com> | 2023-11-30 12:59:19 -0800 |
commit | ae58771063be003f1752eb4ae486044d565c9df6 (patch) | |
tree | 13e63f5a872621748d48a16caf6ebadec2d1f908 | |
parent | 0dd195094cd39bbd711dd2a974ba07bec506bb4d (diff) | |
download | wpa_supplicant_8-ae58771063be003f1752eb4ae486044d565c9df6.tar.gz |
Add AIDL support to control EHT mode
Bug: 308711070
Test: atest VtsHalWifiSupplicantStaNetworkTargetTest
Change-Id: I85cc91a700882f08733fbc0415d5f4f5a312ebc6
-rw-r--r-- | wpa_supplicant/aidl/sta_network.cpp | 18 | ||||
-rw-r--r-- | wpa_supplicant/aidl/sta_network.h | 2 |
2 files changed, 20 insertions, 0 deletions
diff --git a/wpa_supplicant/aidl/sta_network.cpp b/wpa_supplicant/aidl/sta_network.cpp index 2604d2e2..7b8b6ad7 100644 --- a/wpa_supplicant/aidl/sta_network.cpp +++ b/wpa_supplicant/aidl/sta_network.cpp @@ -891,6 +891,13 @@ ndk::ScopedAStatus StaNetwork::getBssid( &StaNetwork::setMinimumTlsVersionEapPhase1ParamInternal, in_tlsVersion); } +::ndk::ScopedAStatus StaNetwork::disableEht() +{ + return validateAndCall( + this, SupplicantStatusCode::FAILURE_NETWORK_INVALID, + &StaNetwork::disableEhtInternal); +} + std::pair<uint32_t, ndk::ScopedAStatus> StaNetwork::getIdInternal() { return {network_id_, ndk::ScopedAStatus::ok()}; @@ -2698,6 +2705,17 @@ ndk::ScopedAStatus StaNetwork::setMinimumTlsVersionEapPhase1ParamInternal(TlsVer return ndk::ScopedAStatus::ok(); } +ndk::ScopedAStatus StaNetwork::disableEhtInternal() +{ + struct wpa_ssid *wpa_ssid = retrieveNetworkPtr(); + if (wpa_ssid == nullptr ) { + return createStatus(SupplicantStatusCode::FAILURE_NETWORK_INVALID); + } + wpa_ssid->disable_eht = 1; + resetInternalStateAfterParamsUpdate(); + return ndk::ScopedAStatus::ok(); +} + /** * WPA3-Enterprise 192-bit mode workaround to force the connection to EAP-TLSv1.2 due to * interoperability issues in TLSv1.3 which disables the SSL_SIGN_RSA_PKCS1_SHA384 diff --git a/wpa_supplicant/aidl/sta_network.h b/wpa_supplicant/aidl/sta_network.h index 1c24702a..879d8746 100644 --- a/wpa_supplicant/aidl/sta_network.h +++ b/wpa_supplicant/aidl/sta_network.h @@ -178,6 +178,7 @@ public: const std::vector<uint8_t>& in_selectedRcoi) override; ::ndk::ScopedAStatus setMinimumTlsVersionEapPhase1Param( TlsVersion in_tlsVersion) override; + ::ndk::ScopedAStatus disableEht() override; private: // Corresponding worker functions for the AIDL methods. @@ -310,6 +311,7 @@ private: ndk::ScopedAStatus setRoamingConsortiumSelectionInternal( const std::vector<uint8_t>& selectedRcoi); ndk::ScopedAStatus setMinimumTlsVersionEapPhase1ParamInternal(TlsVersion tlsVersion); + ndk::ScopedAStatus disableEhtInternal(); struct wpa_ssid* retrieveNetworkPtr(); struct wpa_supplicant* retrieveIfacePtr(); |