The device is a P2P client by automatic connection, with no fast connection after each reset or disconnection. The device does not store the parameters of the last connection.
At least one profile should be configured in the system.
As in the first case, perform a profile P2P find with stored networks, examine the results, and send a negotiation request according to remote device GO capabilities (group owner).
- Configure P2P global parameters.
- Configure P2P profile policy with SL_P2P_ROLE_CLIENT (intent 0), and with SL_P2P_NEG_INITIATOR_RAND_BACKOFF (negotiation initiator don't care). SL_P2P_POLICY(SL_P2P_ROLE_CLIENT, SL_P2P_NEG_INITIATOR_RAND_BACKOFF)
- Configure P2P profile policy connection with auto-start and fast connection. SL_CONNECTION_POLICY(true, false, false, false)
- Configure P2P profile according to the willing parameters of the remote device such as name, MAC address, and so forth
- If the peer parameters are unknown, operate a discover P2P operation, find P2P peers, and then configure profiles.