After connecting the OnePlus smartphone to a Wi-Fi Direct-enabled device, you can disconnect at any time if desired.

Wi-Fi Direct remains enabled on the device until the last connection to another device is disconnected.

Android 10 | OxygenOS 10.0
Step 1:  Open the  Settings
Step 2:  Tap on  Wi-Fi & network
Step 3:  Tap on  Wi-Fi
Step 4:  Tap on  Wi-Fi preferences
Step 5:  Tap on  Wi-Fi Direct
Step 6:  Tap on the  connected device
Step 7:  Confirm with  O  K
  1. Open the Settings
  2. Tap on Wi-Fi & network
  3. Tap on Wi-Fi
  4. Tap on Wi-Fi preferences
  5. Tap on Wi-Fi Direct
  6. Tap on the connected device
  7. Confirm with OK

OnePlus Instructions