This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hi All,
I want to implement a point-to-point connection for some data streaming. I would like to encrypt the data using AES which is part of WPA2. I am using the CC3200 as the group client and an Android tablet will be the Group Owner. I am developing using the CC3200-LaunchXL with the latest service pack and SDK1.3.0 (CCS v6.1.3.00034 if that matters). I have combined and modified the p2p and udp socket examples to get a working "open" test application, but I wanted to add some security. I see that WPA2 is supported, but it doesn't seem to be something I can set when using p2p. Here are the security settings that I tried:
secParams.Key = (signed char *)P2P_SECURITY_KEY; //(“PasswordTest”)
secParams.KeyLen = strlen(P2P_SECURITY_KEY);
secParams.Type = P2P_SECURITY_TYPE; //(SL_SEC_TYPE_WPA_WPA2)
lRetVal = sl_WlanConnect((signed char *) P2P_REMOTE_DEVICE,
strlen((const char *) P2P_REMOTE_DEVICE), 0, &secParams, 0);
ASSERT_ON_ERROR(lRetVal); //Asserts Error code -71
When I call WlanConnect to begin p2p Discovery Mode, I get an error -71 (SL_ERROR_INVALID_ROLE).
The connection process is the same as the p2p example code which works fine when the security is SL_SEC_TYPE_P2P_PBC with no password.
I have looked through examples and I can't find anything that explicitly shows WPA2 with Wi-Fi Direct and how to set it up.
Wi-Fi P2P Technical Specification v1.7 states, “The Credentials shall be fresh for each P2P Group formed. The Credentials for a P2P Group issued to a P2P Device shall:
-Use WPA2-Personal as Authentication Type.
-Use AES as Encryption Type…”
Anyone have some guidance here? Seems like I can only use WPS with p2p, but that's not what is called out in the tech specs for a Wi-Fi Direct capable device. Am I missing some other setting somewhere?
Thanks in Advance
Hi Charles,
Thanks for the reply. Again, I have read the section and I am aware of the P2P methods it describes. My confusion is that the Wifi Direct Specification itself mandates that WPA2 be used for wifi direct devices.
I've done a lot more digging on the subject since your last post, and I don't understand how a device that offers Wi-Fi Direct doesn't comply with the security requirements. My current understanding is that WPS provides the means to authenticate devices, and that WPA2 is being used after the authentication process is complete. Can you confirm that this is what is happening?
Thanks again for your help.
-Jason