Loading wifi/supplicant/1.4/ISupplicantStaNetwork.hal +18 −0 Original line number Diff line number Diff line Loading @@ -143,4 +143,22 @@ interface ISupplicantStaNetwork extends @1.3::ISupplicantStaNetwork { */ registerCallback_1_4(ISupplicantStaNetworkCallback callback) generates (SupplicantStatus status); /** * Set whether to enable SAE H2E (Hash-to-Element) only mode. * * When enabled, only SAE H2E network is allowed; othewise * H&P (Hunting and Pecking) and H2E are both allowed. * H&P only mode is not supported. * If this API is not called before connecting to a SAE * network, the behavior is undefined. * * @param enable true to set, false otherwise. * @return status Status of the operation. * Possible status codes: * |SupplicantStatusCode.SUCCESS|, * |SupplicantStatusCode.FAILURE_UNKNOWN|, * |SupplicantStatusCode.FAILURE_NETWORK_INVALID| */ enableSaeH2eOnlyMode(bool enable) generates (SupplicantStatus status); }; wifi/supplicant/1.4/vts/functional/supplicant_sta_network_hidl_test.cpp +12 −0 Original line number Diff line number Diff line Loading @@ -90,6 +90,18 @@ TEST_P(SupplicantStaNetworkHidlTest, RegisterCallback_1_4) { }); } /* * enable SAE H2E (Hash-to-Element) only mode */ TEST_P(SupplicantStaNetworkHidlTest, EnableSaeH2eOnlyMode) { v1_4->enableSaeH2eOnlyMode(true, [&](const SupplicantStatus& status) { EXPECT_EQ(SupplicantStatusCode::SUCCESS, status.code); }); v1_4->enableSaeH2eOnlyMode(false, [&](const SupplicantStatus& status) { EXPECT_EQ(SupplicantStatusCode::SUCCESS, status.code); }); } GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(SupplicantStaNetworkHidlTest); INSTANTIATE_TEST_CASE_P( PerInstance, SupplicantStaNetworkHidlTest, Loading Loading
wifi/supplicant/1.4/ISupplicantStaNetwork.hal +18 −0 Original line number Diff line number Diff line Loading @@ -143,4 +143,22 @@ interface ISupplicantStaNetwork extends @1.3::ISupplicantStaNetwork { */ registerCallback_1_4(ISupplicantStaNetworkCallback callback) generates (SupplicantStatus status); /** * Set whether to enable SAE H2E (Hash-to-Element) only mode. * * When enabled, only SAE H2E network is allowed; othewise * H&P (Hunting and Pecking) and H2E are both allowed. * H&P only mode is not supported. * If this API is not called before connecting to a SAE * network, the behavior is undefined. * * @param enable true to set, false otherwise. * @return status Status of the operation. * Possible status codes: * |SupplicantStatusCode.SUCCESS|, * |SupplicantStatusCode.FAILURE_UNKNOWN|, * |SupplicantStatusCode.FAILURE_NETWORK_INVALID| */ enableSaeH2eOnlyMode(bool enable) generates (SupplicantStatus status); };
wifi/supplicant/1.4/vts/functional/supplicant_sta_network_hidl_test.cpp +12 −0 Original line number Diff line number Diff line Loading @@ -90,6 +90,18 @@ TEST_P(SupplicantStaNetworkHidlTest, RegisterCallback_1_4) { }); } /* * enable SAE H2E (Hash-to-Element) only mode */ TEST_P(SupplicantStaNetworkHidlTest, EnableSaeH2eOnlyMode) { v1_4->enableSaeH2eOnlyMode(true, [&](const SupplicantStatus& status) { EXPECT_EQ(SupplicantStatusCode::SUCCESS, status.code); }); v1_4->enableSaeH2eOnlyMode(false, [&](const SupplicantStatus& status) { EXPECT_EQ(SupplicantStatusCode::SUCCESS, status.code); }); } GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(SupplicantStaNetworkHidlTest); INSTANTIATE_TEST_CASE_P( PerInstance, SupplicantStaNetworkHidlTest, Loading