- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello.
I write this simple code and launch it on CYW943907AEVAL1F.
This simple code configures BCM43907 as WiFi Direct Group Client.
void application_start(void)
{
/* Initializes the WICED system */
wiced_init ( );
/* Lauch CONNECTION_P2P_GC */
if ( connection_launch ( CONNECTION_P2P_GC ) != WICED_SUCCESS )
{
WPRINT_APP_INFO( ("connection_launch failed\n") );
return;
}
}
If I launch this code and I try to connect my HUAWEI MediaPad T5 (Android 8.0.0) using system menù
the connection works properly. Really sometimes the connection failed.
I obtain this Log.
Initialising NetX_Duo v5.12
Creating Packet pools
WLAN MAC Address : A4:08:EA:D9:C0:A2
WLAN Firmware : wl0: Jul 20 2020 00:08:56 version 7.15.168.149 (21d266a) FWID 01-d4dbc762
WLAN CLM : API: 12.2 Data: 9.10.74 Compiler: 1.31.3 ClmImport: 1.36.3 Creation: 2020-07-20 00:01:06
Creating p2p app worker thread
P2P GC Start was successful
No persistent GO information! Wait for the invitation
Launched P2P GC: 00000000
Connection Request from: 36:46:EC:AA:94:B2 HUAWEI MediaPad T5 status=02
Starting group formation in PBC mode
P2P group owner intent = 0
connection_p2p_wps_result_handler: WPS completed successfully
Obtaining IPv4 address via DHCP
L1434 : dhcp_client_init() : DHCP CLIENT hostname = [WICED IP]
IPv4 network ready IP: 192.168.49.178
Setting IPv6 link-local address
IPv6 network ready IP: FE80:0000:0000:0000:A408:EAFF:FED9:C0A2
Storing credentials for DIRECT-6S-HUAWEI MediaPad T5 into WIFI DCT[4] section.
status,COMPLETE,result,CLIENT,groupid,36:46:EC:AA:94:B2 DIRECT-6S-HUAWEI MediaPad T5
*** Associated on channel: 42 ***
If I launch this code and I try to connect my Galaxy Tab S6 (Android 10) using system menù
then connection fails very often. It succeeded just one/two times respect to 30 times.
I obtain this Log.
Starting WICED Wiced_006.006.000.0009
Platform CYW943907AEVAL1F initialised
Started ThreadX v5.9
WICED_core Initialized
Initialising NetX_Duo v5.12
Creating Packet pools
WLAN MAC Address : A4:08:EA:D9:C0:A2
WLAN Firmware : wl0: Jul 20 2020 00:08:56 version 7.15.168.149 (21d266a) FWID 01-d4dbc762
WLAN CLM : API: 12.2 Data: 9.10.74 Compiler: 1.31.3 ClmImport: 1.36.3 Creation: 2020-07-20 00:01:06
Creating p2p app worker thread
P2P GC Start was successful
No persistent GO information! Wait for the invitation
Launched P2P GC: 00000000
Connection Request from: FA:F1:E6:E8:2C:03 Galaxy Tab S6 status=02
Starting group formation in PBC mode
P2P group owner intent = 0
Here my Ggalaxy Tab S6 (Android 10) log taken with Android Studio and ADB ..
P2P - DEVICE - FOUND da: 68:c3: 52:84:27 p2p_dev_addr = da:68:c3: 52:04:27 pri_dev_type = 10 - 0050F204 - 5 name = '[Phone] Galaxy J3(2017)' config_methods = 0x188 dev_capab = 0x25 group_capab = 0xa9 vendor_elems = 1 new= 0 freq = 2412 icon = 0x100 fw_invite
P2P - DEVICE - FOUND a6: 08:ea: d9: c0: e6 p2p_dev_addr = a6:08:ea: d9: c0: e6 pri_dev_type = 10 - 0050F204 - 5 name = 'WICED_WIFI_CM_P2P' config_methods = 0x2388 dev_capab = 0x20 group_capab = 0x8 vendor_elems = 1 new= 0 freq = 2412
P2P - FIND - STOPPED
P2P: Provision Discovery Request with a6: 08:ea: d9: c0: e6(config methods 0x80)
P2P: Set prekey state(NONE->SEND)
P2P: Received Provision Discovery Response from a6:08:ea: d9: c0: e6 with config methods 0x80
P2P: Set prekey state(SEND->NONE)
P2P - PROV - DISC - PBC - RESP a6: 08:ea: d9: c0: e6
P2P: Sending GO Negotiation Request
P2P: Received GO Negotiation Response from a6:08:ea: d9: c0: e6(freq = 2412)
p2p0: P2P - BIGDATA - GROUP - OWNER - INTENT p2p_dev_addr = a6:08:ea: d9: c0: e6 go_intent = 0
P2P: Peer operating channel preference: 5745 MHz
P2P: own channels: 81:1,2,3,4,5,6,7,8,9,10,11,12,13 115:36,40,44,48 116:36,44 117:40,48 124:149,153,157,161 125:149,153,157,161,165,169 126:149,157 127:153,161 128:36,40,44,48 130:36,40,44,48
P2P: peer channels: 81:1,2,3,4,5,6,7,8,9,10,11 115:36,40,44,48 124:149,153,157,161
P2P: Sending GO Negotiation Confirm with status = 0
P2P: own channels: 81:1,2,3,4,5,6,7,8,9,10,11,12,13 115:36,40,44,48 116:36,44 117:40,48 124:149,153,157,161 125:149,153,157,161,165,169 126:149,157 127:153,161 128:36,40,44,48 130:36,40,44,48
P2P: peer channels: 81:1,2,3,4,5,6,7,8,9,10,11 115:36,40,44,48 124:149,153,157,161
P2P: Set prekey mode(ENABLED->ENABLED)
P2P - GO - NEG - SUCCESS role = GO freq = 5745 ht40 = 0 peer_dev = a6:08:ea: d9: c0: e6 peer_iface = a6:08:ea: d9: c0: e6 wps_method = PBC
rfkill: Cannot open RFKILL control device
P2P: Current p2p state = PROVISIONING
p2p - wlan0 - 0: interface state UNINITIALIZED->ENABLED
p2p-wlan0-0: AP-ENABLED
p2p-wlan0-0: CTRL-EVENT-CONNECTED - Connection to fa:f1:e6:e8:ac:03 completed[id = 0 id_str =]
P2P: Set prekey mode(ENABLED -> DISABLED)
p2p-wlan0-0: WPS-PBC-ACTIVE
p2p-wlan0-0: CTRL-EVENT-CHANNEL-SWITCH freq = 5745 ht_enabled=1 ch_offset=1 ch_width=80 MHz cf1 = 5775 cf2=0
p2p-wlan0-0: AP-CSA-FINISHED freq = 5745 dfs=0
p2p-wlan0-0: CTRL-EVENT-SUBNET-STATUS-UPDATE status = 0
p2p-wlan0-0: CTRL-EVENT-EAP-STARTED a6:08:ea:d9:c0:e6
p2p-wlan0-0: CTRL-EVENT-EAP-PROPOSED-METHOD vendor = 0 method=1
p2p-wlan0-0: CTRL-EVENT-SUBNET-STATUS-UPDATE status = 0
p2p-wlan0-0: CTRL-EVENT-EAP-STARTED a6:08:ea:d9:c0:e6
p2p-wlan0-0: CTRL-EVENT-EAP-PROPOSED-METHOD vendor = 0 method=1
p2p-wlan0-0: CTRL-EVENT-SUBNET-STATUS-UPDATE status = 0
p2p-wlan0-0: CTRL-EVENT-EAP-STARTED a6:08:ea:d9:c0:e6
p2p-wlan0-0: CTRL-EVENT-EAP-PROPOSED-METHOD vendor = 0 method=1
p2p-wlan0-0: CTRL-EVENT-SUBNET-STATUS-UPDATE status = 0
p2p-wlan0-0: CTRL-EVENT-EAP-STARTED a6:08:ea:d9:c0:e6
p2p-wlan0-0: CTRL-EVENT-EAP-PROPOSED-METHOD vendor = 0 method=1
p2p-wlan0-0: CTRL-EVENT-SUBNET-STATUS-UPDATE status = 0
p2p-wlan0-0: CTRL-EVENT-EAP-STARTED a6:08:ea:d9:c0:e6
p2p-wlan0-0: CTRL-EVENT-EAP-PROPOSED-METHOD vendor = 0 method=1
p2p-wlan0-0: CTRL-EVENT-SUBNET-STATUS-UPDATE status = 0
p2p-wlan0-0: CTRL-EVENT-EAP-STARTED a6:08:ea:d9:c0:e6
p2p-wlan0-0: CTRL-EVENT-EAP-PROPOSED-METHOD vendor = 0 method=1
p2p-wlan0-0: CTRL-EVENT-SUBNET-STATUS-UPDATE status = 0
p2p-wlan0-0: CTRL-EVENT-EAP-STARTED a6:08:ea:d9:c0:e6
p2p-wlan0-0: CTRL-EVENT-EAP-PROPOSED-METHOD vendor = 0 method=1
p2p-wlan0-0: CTRL-EVENT-SUBNET-STATUS-UPDATE status = 0
p2p-wlan0-0: CTRL-EVENT-EAP-STARTED a6:08:ea:d9:c0:e6
p2p-wlan0-0: CTRL-EVENT-EAP-PROPOSED-METHOD vendor = 0 method=1
p2p-wlan0-0: CTRL-EVENT-SUBNET-STATUS-UPDATE status = 0
p2p-wlan0-0: CTRL-EVENT-EAP-STARTED a6:08:ea:d9:c0:e6
p2p-wlan0-0: CTRL-EVENT-EAP-PROPOSED-METHOD vendor = 0 method=1
p2p-wlan0-0: CTRL-EVENT-SUBNET-STATUS-UPDATE status = 0
p2p-wlan0-0: CTRL-EVENT-EAP-STARTED a6:08:ea:d9:c0:e6
p2p-wlan0-0: CTRL-EVENT-EAP-PROPOSED-METHOD vendor = 0 method=1
p2p-wlan0-0: CTRL-EVENT-SUBNET-STATUS-UPDATE status = 0
p2p-wlan0-0: CTRL-EVENT-EAP-STARTED a6:08:ea:d9:c0:e6
p2p-wlan0-0: CTRL-EVENT-EAP-PROPOSED-METHOD vendor = 0 method=1
P2P-GROUP-FORMATION-FAILURE
P2P-GROUP-REMOVED p2p-wlan0-0 GO reason = FORMATION_FAILED
P2P-BIGDATA-CONNECTION-RESULT p2p_dev_addr = a6:08:ea:d9:c0:e6 result = 12
p2p0: P2P-BIGDATA-CONNECTION-RESULT p2p_dev_addr = a6:08:ea:d9:c0:e6 reason = 12
P2P: Set prekey state(NONE -> NONE)
P2P: Set prekey mode(DISABLED -> ENABLED)
P2P: Clear a pre-passphrase(State NONE)
p2p-wlan0-0: interface state ENABLED->DISABLED
p2p-wlan0-0: AP-DISABLED
p2p-wlan0-0: CTRL-EVENT-DISCONNECTED bssid = fa:f1:e6:e8:ac:03 reason=3 locally_generated=1
nl80211: deinit ifname = p2p - wlan0 - 0 disabled_11b_rates=0
P2P-DEVICE-LOST p2p_dev_addr = a6:08:ea:d9:c0:e6
P2P-DEVICE-LOST p2p_dev_addr = da:68:c3:52:04:27
Messaggio modificato da Mauro Fantina
- Labels:
-
Wi-Fi Direct
-
Wireless MCU
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Here WireShark Log for the Galaxy Tab S6
fa:f1:e6:e8:2c:03 is Galaxy Tab S6
a6:08:ea:d9:c0:a2 is the WICED
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Is not a WPS problem ?
In the log where connection fails I don't see
connection_p2p_wps_result_handler : WPS completed successfully
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Using Android Studio I capture Android Log from Galaxy Tab S6
In this Log I highlight P2P-GO-NEG-SUCCESS role=GO : The Group Owner Negotiation is OK and the role of Tablet is Group Owner,
But after I highlight "Device is trying to offload WPS ..." it seems that Device has some problems in this phase.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
With WireShark I see continuous Association and Reassociation packets
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Would you please share me the air logs from p2p connection ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I do other investigations.
It seems that some Tablets try to Authenticate only with TLSv1.2 while WICED not support this type.
Here a Log with a Tablet ... you see that EAP PROPOSED METHOD method=1 fails but EAP PROPOSED METHOD method=254 was ok
----
Here Android Log ...
P2P-DEVICE-FOUND a6:**:**:**:c0:a2 p2p_dev_addr=a6:**:**:**:c0:a2 pri_dev_type=10-0050F204-5 name='WICED_WIFI_CM_P2P' config_methods=0x2388 dev_capab=0x20 group_capab=0x8 vendor_elems=1 new=1
P2P-FIND-STOPPED
P2P-PROV-DISC-PBC-RESP a6:**:**:**:c0:a2
P2P-GO-NEG-SUCCESS role=GO freq=5785 ht40=1 peer_dev=a6:**:**:**:c0:a2 peer_iface=a6:**:**:**:c0:a2 wps_method=PBC
rfkill: Cannot open RFKILL control device
p2p-p2p0-2: interface state UNINITIALIZED->HT_SCAN
hostapd_set_freq_params:vht_oper_chwidth:1,center_segment0:155,center_segment1:0,sec_channel_offset:1
hostapd_set_freq_params:vht_oper_chwidth:1,center_segment0:155,center_segment1:0,sec_channel_offset:1
p2p-p2p0-2: interface state HT_SCAN->ENABLED
p2p-p2p0-2: AP-ENABLED
p2p-p2p0-2: CTRL-EVENT-CONNECTED - Connection to 3a:**:**:**:13:0b completed [id=0 id_str=]
hostapd_set_freq_params:vht_oper_chwidth:1,center_segment0:155,center_segment1:0,sec_channel_offset:1
p2p-p2p0-2: WPS-PBC-ACTIVE
P2P-DEVICE-FOUND a6:**:**:**:c0:a2 p2p_dev_addr=a6:**:**:**:c0:a2 pri_dev_type=10-0050F204-5 name='WICED_WIFI_CM_P2P' config_methods=0x2388 dev_capab=0x20 group_capab=0x8 vendor_elems=1 new=0
hostapd_set_freq_params:vht_oper_chwidth:1,center_segment0:155,center_segment1:0,sec_channel_offset:1
p2p-p2p0-2: CTRL-EVENT-SUBNET-STATUS-UPDATE status=0
p2p-p2p0-2: CTRL-EVENT-EAP-STARTED a6:**:**:**:c0:a2
p2p-p2p0-2: CTRL-EVENT-EAP-PROPOSED-METHOD vendor=0 method=1
P2P-DEVICE-FOUND a6:**:**:**:c0:a2 p2p_dev_addr=a6:**:**:**:c0:a2 pri_dev_type=10-0050F204-5 name='WICED_WIFI_CM_P2P' config_methods=0x2388 dev_capab=0x20 group_capab=0x8 vendor_elems=1 new=0
hostapd_set_freq_params:vht_oper_chwidth:1,center_segment0:155,center_segment1:0,sec_channel_offset:1
p2p-p2p0-2: CTRL-EVENT-SUBNET-STATUS-UPDATE status=0
p2p-p2p0-2: CTRL-EVENT-EAP-PROPOSED-METHOD vendor=14122 method=254
p2p-p2p0-2: WPS-REG-SUCCESS a6:**:**:**:c0:a2 775b6680-bfde-11d3-8d2f-a608ead9c0a2
P2P-GROUP-FORMATION-SUCCESS
hostapd_set_freq_params:vht_oper_chwidth:1,center_segment0:155,center_segment1:0,sec_channel_offset:1
P2P-GROUP-STARTED p2p-p2p0-2 GO ssid="DIRECT-Fs-HUAWEI P30 lite" freq=5785 go_dev_addr=3a:**:**:**:93:0b [PERSISTENT]
hostapd_set_freq_params:vht_oper_chwidth:1,center_segment0:155,center_segment1:0,sec_channel_offset:1
p2p-p2p0-2: WPS-PBC-DISABLE
p2p-p2p0-2: WPS-SUCCESS