Search code examples
wifiwifi-directwifip2p

Are Wi-Fi Direct and Wi-Fi P2P the same?


Maybe this is a stupid question but..

Are Wi-Fi Direct and Wi-Fi P2P the same thing?

And I mean, the EXACTLY same thing?

I'm getting really confused with this two.


Solution

  • Wifi Direct is a technology for peer to peer connections and is very different from wifi. Wi-Fi Direct, initially called Wi-Fi P2P, is a Wi-Fi standard enabling devices to easily connect with each other without requiring a wireless access point.It is usable for everything from internet browsing to file transfer

    Wifi Direct is not same as wifi . On Jelly Bean and above, when you try to use the WifiP2pManager API, WiFi-Direct is automatically enabled (as long as WiFi is on). Wifi can be switched on by calling:

    WifiManager wifiManager = (WifiManager) context.getSystemService(Context.WIFI_SERVICE); wifiManager.setWifiEnabled(true); 
    

    For ICS refer to this Can I turn on WiFi-Direct from code? on Android API-14 (ICS) This is the main reason to get confused between the two.