I am finding a way to turn ON WiFi-Direct when internet connectivity is not available but when internet connectivity active and the device is connected to some other device with WiFi-Direct then it preventing to connect with the internet.
My purpose is to turn OFF WiFi-Direct when the internet is available and turn ON WiFi-Direct when the internet not available.