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: 298310537 Bug: 268236829 Bug: 218608010 Test: atest VtsHalWifiSupplicantP2pIfaceTargetTest Change-Id: Id5baa0f599d11a3563780aae15ff3cea0407060c Merged-In: Id5baa0f599d11a3563780aae15ff3cea0407060c
This commit is contained in:
parent
7d5727bf65
commit
858665687d
1 changed files with 7 additions and 11 deletions
|
@ -524,15 +524,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)
|
||||
kTestConnectPin, true, false, kTestConnectGoIntent,
|
||||
&pin)
|
||||
.isOk());
|
||||
}
|
||||
|
||||
|
@ -543,7 +539,7 @@ TEST_P(SupplicantP2pIfaceAidlTest, CancelConnect) {
|
|||
std::string pin;
|
||||
EXPECT_TRUE(p2p_iface_
|
||||
->connect(kTestMacAddr, WpsProvisionMethod::PBC,
|
||||
kTestConnectPin, false, false,
|
||||
kTestConnectPin, true, false,
|
||||
kTestConnectGoIntent, &pin)
|
||||
.isOk());
|
||||
EXPECT_TRUE(p2p_iface_->cancelConnect().isOk());
|
||||
|
|
Loading…
Reference in a new issue