Project Home
Project Home
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - Peer-to-peer connection (WiFi Direct) : (5 Items)
   
Peer-to-peer connection (WiFi Direct)  
We are trying to run some tests on peer-to-peer connection using WiFi direct protocol on TI WL1281Q. Unfortunately we 
cannot get other devices to see our board. We have following questions.

1.	After running io-pkt-v4-hc, we got the following interfaces: lo0, tiw_drv0, tiw_sta0, tiw_sap0, tiw_p2pdev0, 
tiw_p2pgrp0, tiw_ibss0. Is tiw_p2pdev0 for p2p device and  tiw_p2pgrp0 for group owner? Can we run these interfaces  
simultaneously? If so, can we use same IP address?

2.	We received wpa_supplicant, P2P_supplicant, and wpa_cli binaries from QNX. What is the different from P2P_supplicant 
and wpa_supplicant? We got an error when we tried to run wpa_supplicant with p2p.conf. P2P_supplicant with p2p.conf 
works better.  However, we got an error when we tried to run with wpa_cli which requires wpa_supplicant process to be 
run . After rename P2P_supplicant to wpa_supplicant and rerun the process as wpa_supplicant, we do not get the error 
message. However, wpa_cli does not give any p2p options such as p2p_find. 

Do we need p2p_cli binaries? Or do we need enable P2P_CONFIG in P2P_supplicant source code? Could you please check on 
this issue and let us know?

Thank you. 

Re: Peer-to-peer connection (WiFi Direct)  
Hi, 

I include README-P2P in wpa_supplicant source code here. Seems like we need to add the following in to the .config file.


CONFIG_DRIVER_NL80211=y
CONFIG_CTRL_IFACE=y
CONFIG_P2P=y
CONFIG_AP=y
CONFIG_WPS=y

Since NL80211 is for linux. Here I am not sure which driver we should use. In addition, we are not sure what are other 
hardware (QNX related) config's that we will need for our board. Is it possible that you could add these configurations 
in your build and send us the binary files? Thank you.
Attachment: Text README-P2P 17.54 KB
Re: Peer-to-peer connection (WiFi Direct)  
For a WiFi-Direct network node both interfaces tiw_p2pdev0 and tiw_p2pgrp0 need to be brought up in addition to the 
tiw_drv0. The IP address is assigned to the tiw_p2pgrp0 interface. The following commands can be used to configure the 
interfaces and start the supplicant:

random -p &
ifconfig tiw_drv0 up
ifconfig tiw_p2pdev0 up
ifconfig tiw_p2pgrp0 192.168.100.10/24 up
P2P_supplicant_ti -Dwilink -itiw_p2pdev0 -c /etc/p2p.conf &


The QNX stock 6.50 version of the wpa_cli utility does not support the p2p options. We are looking into adding an 
updated wpa_cli utility with p2p support into our wifi driver patch deliverable. As an interim solution, the wlan_cu 
utility can be used to establish P2P connections as follows:

wlan_cu
/ m 2 p 1
/ m 2 p 2
/ m 2 p 3 08:00:28:32:DD:01 pbc go_intent=0
or
/ m 2 p 3 08:00:28:32:DD:01 pbc go_intent=15

To kill a connection:
wlan-cu
/ m 2 p 5 tiw_p2pgrp0

The go_intent value of 15 is used for the Group Owner and lower values for devices. The MAC address has to be unique in 
the network. If two target boards are used to establish network connections, the nvs_map.bin file can be edited with a 
Hex Editor to give unique MAC addresses.

The compile time configuration file already has the p2p options enabled:
file: config_p2p
# Enable P2P
CONFIG_P2P=y
CONFIG_AP=y

Regards,
   Denes Pap
Re: Peer-to-peer connection (WiFi Direct)  
It works now. Please also let us know once wpa_cli utility has p2p support.

Thank you very much. 
Re: Peer-to-peer connection (WiFi Direct)  
Hello all,

We are currently on the lookout for QNX drivers for WL127x/WL128x series of WiFi Modules. Based on you discussions it 
seems QNX already supplied these. I'd appreciate if you can direct me to the right person within QNX's WiFi Direct group
.

Thanks,
Sesh