mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-01 11:36:00 +00:00
Merge "wifi: add API for setting roaming consortium selection"
This commit is contained in:
committed by
Android (Google) Code Review
commit
a6edb0b76c
@@ -125,6 +125,7 @@ interface ISupplicantStaNetwork {
|
||||
void setWapiCertSuite(in String suite);
|
||||
void setWepKey(in int keyIdx, in byte[] wepKey);
|
||||
void setWepTxKeyIdx(in int keyIdx);
|
||||
void setRoamingConsortiumSelection(in byte[] selectedRcoi);
|
||||
const int SSID_MAX_LEN_IN_BYTES = 32;
|
||||
const int PSK_PASSPHRASE_MIN_LEN_IN_BYTES = 8;
|
||||
const int PSK_PASSPHRASE_MAX_LEN_IN_BYTES = 63;
|
||||
|
||||
@@ -1092,4 +1092,17 @@ interface ISupplicantStaNetwork {
|
||||
* |SupplicantStatusCode.FAILURE_NETWORK_INVALID|
|
||||
*/
|
||||
void setWepTxKeyIdx(in int keyIdx);
|
||||
|
||||
/**
|
||||
* Set the roaming consortium selection.
|
||||
*
|
||||
* @param selectedRcoi Indicates the roaming consortium selection. This is a
|
||||
* 3 or 5-octet long byte array that indicates the selected RCOI
|
||||
* used for a Passpoint connection.
|
||||
* @throws ServiceSpecificException with one of the following values:
|
||||
* |SupplicantStatusCode.FAILURE_ARGS_INVALID|,
|
||||
* |SupplicantStatusCode.FAILURE_UNKNOWN|,
|
||||
* |SupplicantStatusCode.FAILURE_NETWORK_INVALID|
|
||||
*/
|
||||
void setRoamingConsortiumSelection(in byte[] selectedRcoi);
|
||||
}
|
||||
|
||||
@@ -784,6 +784,14 @@ TEST_P(SupplicantStaNetworkAidlTest, GetWpsNfcConfigurationToken) {
|
||||
EXPECT_NE(retrievedToken.size(), 0);
|
||||
}
|
||||
|
||||
/*
|
||||
* SetRoamingConsortiumSelection
|
||||
*/
|
||||
TEST_P(SupplicantStaNetworkAidlTest, SetRoamingConsortiumSelection) {
|
||||
const std::vector<uint8_t> testSelection = std::vector<uint8_t>({0x11, 0x21, 0x33, 0x44});
|
||||
EXPECT_TRUE(sta_network_->setRoamingConsortiumSelection(testSelection).isOk());
|
||||
}
|
||||
|
||||
GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(SupplicantStaNetworkAidlTest);
|
||||
INSTANTIATE_TEST_SUITE_P(Supplicant, SupplicantStaNetworkAidlTest,
|
||||
testing::ValuesIn(android::getAidlHalInstanceNames(
|
||||
|
||||
Reference in New Issue
Block a user