mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-01 15:58:43 +00:00
wifi: set join to true in p2p connect tests
After adding ag/21179155, auto join flag is not set for every p2p connect command. The tests are passing an unknown peer MAC address to connect(). To pass the tests, the connect should trigger a scan and try to find this unknown mac address. So set join flag to true to run the same scan logic. Bug: 268236829 Bug: 218608010 Test: atest VtsHalWifiSupplicantP2pIfaceTargetTest Change-Id: Id5baa0f599d11a3563780aae15ff3cea0407060c
This commit is contained in:
@@ -536,16 +536,11 @@ TEST_P(SupplicantP2pIfaceAidlTest, Flush) {
|
||||
* Connect
|
||||
*/
|
||||
TEST_P(SupplicantP2pIfaceAidlTest, Connect) {
|
||||
/*
|
||||
* Auto-join is not enabled before R. After enabling auto-join,
|
||||
* this should always succeed.
|
||||
*/
|
||||
std::string pin;
|
||||
EXPECT_TRUE(p2p_iface_
|
||||
->connect(kTestMacAddr, WpsProvisionMethod::PBC,
|
||||
kTestConnectPin, false, false,
|
||||
kTestConnectGoIntent, &pin)
|
||||
.isOk());
|
||||
->connect(kTestMacAddr, WpsProvisionMethod::PBC, kTestConnectPin, true,
|
||||
false, kTestConnectGoIntent, &pin)
|
||||
.isOk());
|
||||
}
|
||||
|
||||
/*
|
||||
@@ -554,10 +549,9 @@ TEST_P(SupplicantP2pIfaceAidlTest, Connect) {
|
||||
TEST_P(SupplicantP2pIfaceAidlTest, CancelConnect) {
|
||||
std::string pin;
|
||||
EXPECT_TRUE(p2p_iface_
|
||||
->connect(kTestMacAddr, WpsProvisionMethod::PBC,
|
||||
kTestConnectPin, false, false,
|
||||
kTestConnectGoIntent, &pin)
|
||||
.isOk());
|
||||
->connect(kTestMacAddr, WpsProvisionMethod::PBC, kTestConnectPin, true,
|
||||
false, kTestConnectGoIntent, &pin)
|
||||
.isOk());
|
||||
EXPECT_TRUE(p2p_iface_->cancelConnect().isOk());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user