SWRU368C May 2018 – January 2021 CC3100 , CC3100MOD , CC3200 , CC3200MOD
A scan policy is needed to start the P2P find and discover remote P2P peers. Setting the scan policy to P2P performs a full P2P scan.
The setting of the scan policy should be under the P2P role. P2P discovery is performed as part of any connection, but can also be activated using the SCAN_POLICY.
API:
SL_WlanPolicySet(SL_POLICY_SCAN, 1 /*enable scan*/, interval, 0)
The second parameter enables the P2P scan operation, and the interval indicates the waiting time between P2P find cycles.