P2P in Linux

Hi Guys ,

Most of the guys may be searching for p2p information for Linux like how to create p2p_connection using config_files . As I came through different blogs and websites . No blog or website give complete information. Most of the blogs specify so many details for config_files which make difficult to understand simple .

Here I explain in a simply way .


1. For initiating the p2p_connection . First of all we need to enable the wpa_supplicant using any wifi config file , even default one (/etc/wpa_supplicant.conf) is also fine .

Example : on Device 1

wpa_supplicant -B -i (wifi interface name ) -c /etc/wpa_supplicant.conf

Now open wpa_cli -i wifi interface name 

>stat   # this is for checking connection details , if we see connected to any AP , then disconnect 

>disconnect  # this is for disconnection , if we get connection to supplicant lose , please retry the same steps again

>p2p_group_add   # this is for creating the group 

>wps_pbc  # this is for activating wps_pbc method 


on Device 2 : 

wpa_supplicant -B -i (wifi interface name ) -c /etc/wpa_supplicant.conf

Now open wpa_cli -i wifi interface name 

>stat   # this is for checking connection details , if we see connected to any AP , then disconnect 

>disconnect  # this is for disconnection , if we get connection to supplicant lose , please retry the same steps again

>p2p_find 10   # this is for finding any p2p_group_device or p2p_peers to form a connection 

>p2p_peers

>p2p_connect Device 1 MAC address pbc join  # here we can opt for different p2p_methods like pin , push button 

>q

Check for p2p_connection details using iw dev wlan0 link 

That's it simple . If you queries please let me know

Comments

  1. I appreciate your article. You truly share relevant and extraordinary knowledge. Thank you for keep sharing these valuable thoughts. please check the links.

    FLEXI MULTI RADIO
    FXFC FLEXI 3-SECTOR RF MODULE
    FHFB FLEXI MULTIRADIO

    ReplyDelete

Post a Comment

Popular posts from this blog

PSK as PMK

Wi-Fi/WLAN Throughput issues