How to connect Samsung GT-i8160 and Debian via WiFi-Direct? The wpa_supplicant documentation contains information suggesting it is possible to set up a WiFi-Direct connection between a Linux box and another WiFi-Direct device. It seems it is necessary to use wpa_cli and issue a series of commands first of which is p2p_find.

However when I use wpa_cli this command does not seem available. I am using Debian Wheezy.
The issue is that there is only wpa_supplicant version 1.0 available in Debian Wheezy.

For support of WiFi Direct you need wpa_supplicant version 1.1 or higher.

You can download and compile the latest wpa_supplicant on your own. This way you make sure wpa_cli is available and WiFi Direct is supported.