Implementation of HDMI cable replacement with WIFI network

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Implementation of HDMI cable replacement with WIFI network

5,947 Views
Jtac
Contributor I

Hello,

  With reference to my previous case 

https://community.nxp.com/t5/Wireless-Connectivity/88W8987-WIFI-Bluetooth-module-interface/td-p/1661...

  I enabled WIFI interface on my Nvidia Jetson TX2 NX platform.

  Normal LAN connection operation are working fine.

  But I want to implement HDMI cable replacement with WIFI network ie nothing but Miracast.

  As 88W8987 is 802.11 ac (WIFI 5) module it should support Miracast.

  Basically to start the functionality I need to enable peer to peer communication.

  As per given reference I enabled peer to peer connection.

  Then I started wpa_cli mode in system.

user@user-desktop:~/bin_wlan$ sudo wpa_cli
[sudo] password for user:
wpa_cli v2.6
Copyright (c) 2004-2016, Jouni Malinen <j@w1.fi> and contributors

This software may be distributed under the terms of the BSD license.
See README for more details.


Selected interface 'uap0'

Interactive mode

Interface I select as p2p0

<3>CTRL-EVENT-SCAN-STARTED
> interface p2p0


Connected to interface 'p2p0.

Then I started finding other p2p devices 

> p2p_find
FAIL

But its failing.

When I check SCAN status

> scan
FAIL-BUSY

Its BUSY.

I am trying to connect this module to my mobile or Laptop in wifi direct mode but this module is not visible in there device list.

Please guide me on this.

 

 

 

Labels (2)
0 Kudos
Reply
13 Replies

5,897 Views
Christine_Li
NXP TechSupport
NXP TechSupport

Hi, @Jtac 

Do you use wpa_supplicant commands before start wpa_cli?

If yes, can you please have a try with below wpa_supplicant_p2p.conf file and below commands? I just tested on my 88W9098, it works fine.

===========


root@imx8mqevk:~# cat wpa_supplicant_p2p.conf
ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=0
driver_param=use_p2p_group_interface=1
update_config=0

ap_scan=1
beacon_int=100
dtim_period=1
ignore_old_scan_res=1
scan_cur_freq=1
fast_reauth=1
bss_max_count=50
bss_expiration_age=180
hs20=1

interworking=0
go_interworking=0
go_access_network_type=0
go_venue_group=7
go_venue_type=1


device_name=NXP_Christine
manufacturer=NXP
model_name=NXP Wireless M1
model_number=1.0
serial_number=1.0
device_type=1-0050F204-1
os_version=01010100

config_methods=80
#config_methods=virtual_push_button physical_display keypad


#p2p_listen_reg_class=81
#p2p_listen_channel=1
#p2p_oper_reg_class=81
#p2p_oper_channel=1

###########################################
# Marvel 8887 channels:
# P2P: channels:
# (20MHz) 81:1,2,3,4,5,6,7,8,9,10,11
# (20MHz) 115:36,40,44,48
# (40MHz) 116:36,44
# (40MHz) 117:40,48
# (20MHz) 124:149,153,157,161
# (20MHz) 125:149,153,157,161,165
# (40MHz) 126:149,157
# (40MHz) 127:153,161
# (80MHz) 128:36,40,44,48
# (80MHz) 130:36,40,44,48
#
# RefTo : src/common/ieee_80211_common.c (wpa_supplicant)
# 20MHz : 115:36,115:40,115:44,115:48,124:149,125:165
# 40MHz : 116:36,116:44,117:40,117:48,126:149
# 80MHz : 128:36,128:40,128:44,128:48,130:36,130:40,130:44,130:48
#
p2p_pref_chan=115:36,115:40,115:44,115:48,124:149,125:165,116:36,116:44,117:40,117:48,126:149,128:36,128:40,128:44,128:48,130:36,130:40,130:44,130:48
p2p_go_intent=9
p2p_go_ht40=1
p2p_go_vht=1
p2p_no_group_iface=1
p2p_ssid_postfix=-STA5
p2p_go_max_inactivity=300
p2p_passphrase_len=8
p2p_search_delay=100
persistent_reconnect=1

root@imx8mqevk:~# wpa_supplicant -i wfd0 -c ./wpa_supplicant_p2p.conf -Bd

(You may need change to your p2p interface: p2p0)
wpa_supplicant v2.10
random: Trying to read entropy from /dev/random
Successfully initialized wpa_supplicant
Initializing interface 'wfd0' conf './wpa_supplicant_p2p.conf' driver 'default' ctrl_interface 'N/A' bridge 'N/A'
Configuration file './wpa_supplicant_p2p.conf' -> '/home/root/./wpa_supplicant_p2p.conf'
Reading configuration file '/home/root/./wpa_supplicant_p2p.conf'
ctrl_interface='/var/run/wpa_supplicant'
ctrl_interface_group='0'
driver_param='use_p2p_group_interface=1'
update_config=0
ap_scan=1
beacon_int=100
dtim_period=1
ignore_old_scan_res=1
scan_cur_freq=1
fast_reauth=1
bss_max_count=50
bss_expiration_age=180
hs20=1
interworking=0
go_interworking=0
go_access_network_type=0
go_venue_group=7
go_venue_type=1
device_name='NXP_Christine'
manufacturer='NXP'
model_name='NXP Wireless M1'
model_number='1.0'
serial_number='1.0'
os_version=01010100
config_methods='80'
P2P: Preferred class/channel pairs - hexdump(len=38): 73 24 73 28 73 2c 73 30 7c 95 7d a5 74 24 74 2c 75 28 75 30 7e 95 80 24 80 28 80 2c 80 30 82 24 82 28 82 2c 82 30
p2p_go_intent=9
p2p_go_ht40=1
p2p_go_vht=1
p2p_no_group_iface=1
p2p_ssid_postfix='-STA5'
p2p_go_max_inactivity=300
p2p_passphrase_len=8
p2p_search_delay=100
persistent_reconnect=1
nl80211: TDLS supported
nl80211: TDLS external setup
nl80211: Supported cipher 00-0f-ac:1
nl80211: Supported cipher 00-0f-ac:5
nl80211: Supported cipher 00-0f-ac:2
nl80211: Supported cipher 00-0f-ac:4
nl80211: Supported cipher 00-14-72:1
nl80211: Supported cipher 00-0f-ac:6
nl80211: Supported cipher 00-0f-ac:11
nl80211: Supported cipher 00-0f-ac:12
nl80211: Supported cipher 00-0f-ac:8
nl80211: Supported cipher 00-0f-ac:9
nl80211: Supported cipher 00-0f-ac:10
nl80211: Supports Probe Response offload in AP mode
nl80211: Using driver-based off-channel TX
nl80211: TDLS channel switch
nl80211: Driver-advertised extended capabilities (default) - hexdump(len=11): 00 00 00 00 21 00 00 40 00 00 00
nl80211: Driver-advertised extended capabilities mask (default) - hexdump(len=11): 00 00 00 00 21 00 00 40 00 00 00
nl80211: Supported vendor command: vendor_id=0x5043 subcmd=0
nl80211: Supported vendor command: vendor_id=0x5043 subcmd=4105
nl80211: Supported vendor command: vendor_id=0x5043 subcmd=7
nl80211: Supported vendor command: vendor_id=0x5043 subcmd=4608
nl80211: Supported vendor command: vendor_id=0x5043 subcmd=4609
nl80211: Supported vendor command: vendor_id=0x5043 subcmd=4610
nl80211: Supported vendor command: vendor_id=0x5043 subcmd=5376
nl80211: Supported vendor command: vendor_id=0x5043 subcmd=2
nl80211: Supported vendor command: vendor_id=0x5043 subcmd=5888
nl80211: Supported vendor command: vendor_id=0x5043 subcmd=5889
nl80211: Supported vendor command: vendor_id=0x5043 subcmd=5890
nl80211: Supported vendor command: vendor_id=0x5043 subcmd=3
nl80211: Supported vendor command: vendor_id=0x5043 subcmd=4
nl80211: Supported vendor command: vendor_id=0x5043 subcmd=5
nl80211: Supported vendor command: vendor_id=0x5043 subcmd=256
nl80211: Supported vendor command: vendor_id=0x5043 subcmd=5126
nl80211: Supported vendor command: vendor_id=0x5043 subcmd=5124
nl80211: Supported vendor command: vendor_id=0x5043 subcmd=4106
nl80211: Supported vendor command: vendor_id=0x5043 subcmd=4109
nl80211: Supported vendor command: vendor_id=0x5043 subcmd=5121
nl80211: Supported vendor command: vendor_id=0x5043 subcmd=5123
nl80211: Supported vendor command: vendor_id=0x5043 subcmd=5120
nl80211: Supported vendor command: vendor_id=0x5043 subcmd=5122
nl80211: Supported vendor command: vendor_id=0x5043 subcmd=5128
nl80211: Supported vendor command: vendor_id=0x5043 subcmd=5125
nl80211: Supported vendor command: vendor_id=0x5043 subcmd=5127
nl80211: Supported vendor command: vendor_id=0x5043 subcmd=17
nl80211: Supported vendor command: vendor_id=0x5043 subcmd=18
nl80211: Supported vendor command: vendor_id=0x5043 subcmd=6400
nl80211: Supported vendor command: vendor_id=0x5043 subcmd=6401
nl80211: Supported vendor command: vendor_id=0x5043 subcmd=6402
nl80211: Supported vendor command: vendor_id=0x5043 subcmd=6403
nl80211: Supported vendor command: vendor_id=0x5043 subcmd=6404
nl80211: Supported vendor event: vendor_id=0x5043 subcmd=0
nl80211: Supported vendor event: vendor_id=0x5043 subcmd=1
nl80211: Supported vendor event: vendor_id=0x5043 subcmd=2
nl80211: Supported vendor event: vendor_id=0x5043 subcmd=3
nl80211: Supported vendor event: vendor_id=0x5043 subcmd=4
nl80211: Supported vendor event: vendor_id=0x5043 subcmd=5377
nl80211: Supported vendor event: vendor_id=0x5043 subcmd=65537
nl80211: Supported vendor event: vendor_id=0x5043 subcmd=65538
nl80211: Supported vendor event: vendor_id=0x5043 subcmd=65539
nl80211: Supported vendor event: vendor_id=0x5043 subcmd=65540
nl80211: Supported vendor event: vendor_id=0x5043 subcmd=65541
nl80211: Supported vendor event: vendor_id=0x5043 subcmd=65542
nl80211: Supported vendor event: vendor_id=0x5043 subcmd=65543
nl80211: Supported vendor event: vendor_id=0x5043 subcmd=65544
nl80211: Supported vendor event: vendor_id=0x5043 subcmd=65547
nl80211: Supported vendor event: vendor_id=0x5043 subcmd=65548
nl80211: Supported vendor event: vendor_id=0x5043 subcmd=65549
nl80211: Supported vendor event: vendor_id=0x5043 subcmd=65550
nl80211: Use separate P2P group interface (driver advertised support)
nl80211: key_mgmt=0x1ff0f enc=0x7ef auth=0x7 flags=0x1000c008d7fbfae0 rrm_flags=0x38 probe_resp_offloads=0x0 max_stations=8 max_remain_on_chan=5000 max_scan_ssids=10
nl80211: interface wfd0 in phy mwiphy0
nl80211: Set mode ifindex 5 iftype 2 (STATION)
nl80211: Subscribe to mgmt frames with non-AP handle 0xaaaaf2db0e10
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0xaaaaf2db0e10 match=0104 multicast=0
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0xaaaaf2db0e10 match=040a multicast=0
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0xaaaaf2db0e10 match=040b multicast=0
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0xaaaaf2db0e10 match=040c multicast=0
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0xaaaaf2db0e10 match=040d multicast=0
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0xaaaaf2db0e10 match=090a multicast=0
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0xaaaaf2db0e10 match=090b multicast=0
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0xaaaaf2db0e10 match=090c multicast=0
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0xaaaaf2db0e10 match=090d multicast=0
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0xaaaaf2db0e10 match=0409506f9a09 multicast=0
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0xaaaaf2db0e10 match=7f506f9a09 multicast=0
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0xaaaaf2db0e10 match=0409506f9a1a multicast=0
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0xaaaaf2db0e10 match=0800 multicast=0
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0xaaaaf2db0e10 match=0801 multicast=0
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0xaaaaf2db0e10 match=040e multicast=0
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0xaaaaf2db0e10 match=06 multicast=0
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0xaaaaf2db0e10 match=0a07 multicast=0
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0xaaaaf2db0e10 match=0a11 multicast=0
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0xaaaaf2db0e10 match=0a0b multicast=0
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0xaaaaf2db0e10 match=0a1a multicast=0
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0xaaaaf2db0e10 match=1101 multicast=0
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0xaaaaf2db0e10 match=1102 multicast=0
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0xaaaaf2db0e10 match=0505 multicast=0
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0xaaaaf2db0e10 match=0500 multicast=0
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0xaaaaf2db0e10 match=0502 multicast=0
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0xaaaaf2db0e10 match=1301 multicast=0
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0xaaaaf2db0e10 match=1305 multicast=0
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0xaaaaf2db0e10 match=7e506f9a1a multicast=0
rfkill: Cannot open RFKILL control device
nl80211: RFKILL status not available
netlink: Operstate: ifindex=5 linkmode=1 (userspace-control), operstate=5 (IF_OPER_DORMANT)
nl80211: driver param='use_p2p_group_interface=1'
nl80211: Use separate P2P group interface
Add interface wfd0 to a new radio mwiphy0
nl80211: Regulatory information - country=00
nl80211: 755-928 @ 2 MHz 20 mBm (no IR)
nl80211: 2402-2472 @ 40 MHz 20 mBm
nl80211: 2457-2482 @ 20 MHz 20 mBm (no IR)
nl80211: 2474-2494 @ 20 MHz 20 mBm (no OFDM) (no IR)
nl80211: 5170-5250 @ 80 MHz 20 mBm (no IR)
nl80211: 5250-5330 @ 80 MHz 20 mBm (DFS) (no IR)
nl80211: 5490-5730 @ 160 MHz 20 mBm (DFS) (no IR)
nl80211: 5735-5835 @ 80 MHz 20 mBm (no IR)
nl80211: 57240-63720 @ 2160 MHz 0 mBm
nl80211: Added 802.11b mode based on 802.11g information
nl80211: Mode IEEE 802.11g: 2412 2417 2422 2427 2432 2437 2442 2447 2452 2457 2462 2467[NO_IR] 2472[NO_IR] 2484[NO_IR]
nl80211: Mode IEEE 802.11a: 5180[NO_IR] 5200[NO_IR] 5220[NO_IR] 5240[NO_IR] 5260[NO_IR][RADAR] 5280[NO_IR][RADAR] 5300[NO_IR][RADAR] 5320[NO_IR][RADAR] 5500[NO_IR][RADAR] 5520[NO_IR][RADAR] 5540[NO_IR][RADAR]
nl80211: Mode IEEE 802.11b: 2412 2417 2422 2427 2432 2437 2442 2447 2452 2457 2462 2467[NO_IR] 2472[NO_IR] 2484[NO_IR]
wfd0: Own MAC address: 4a:e7:da:25:61:3d
wpa_driver_nl80211_set_key: ifindex=5 (wfd0) alg=0 addr=(nil) key_idx=0 set_tx=0 seq_len=0 key_len=0 key_flag=0x10
nl80211: DEL_KEY
broadcast key
wpa_driver_nl80211_set_key: ifindex=5 (wfd0) alg=0 addr=(nil) key_idx=1 set_tx=0 seq_len=0 key_len=0 key_flag=0x10
nl80211: DEL_KEY
broadcast key
wpa_driver_nl80211_set_key: ifindex=5 (wfd0) alg=0 addr=(nil) key_idx=2 set_tx=0 seq_len=0 key_len=0 key_flag=0x10
nl80211: DEL_KEY
broadcast key
wpa_driver_nl80211_set_key: ifindex=5 (wfd0) alg=0 addr=(nil) key_idx=3 set_tx=0 seq_len=0 key_len=0 key_flag=0x10
nl80211: DEL_KEY
broadcast key
wpa_driver_nl80211_set_key: ifindex=5 (wfd0) alg=0 addr=(nil) key_idx=4 set_tx=0 seq_len=0 key_len=0 key_flag=0x10
nl80211: DEL_KEY
broadcast key
wpa_driver_nl80211_set_key: ifindex=5 (wfd0) alg=0 addr=(nil) key_idx=5 set_tx=0 seq_len=0 key_len=0 key_flag=0x10
nl80211: DEL_KEY
broadcast key
wfd0: RSN: flushing PMKID list in the driver
nl80211: Flush PMKIDs
wfd0: State: DISCONNECTED -> INACTIVE
TDLS: TDLS operation supported by driver
TDLS: Driver uses external link setup
TDLS: Driver supports TDLS channel switching
wfd0: WPS: UUID based on MAC address: e691e054-34e4-5ac0-bec6-057c512b23eb
ENGINE: Loading builtin engines
ENGINE: Loading builtin engines
EAPOL: SUPP_PAE entering state DISCONNECTED
EAPOL: Supplicant port status: Unauthorized
nl80211: Skip set_supp_port(unauthorized) while not associated
EAPOL: KEY_RX entering state NO_KEY_RECEIVE
EAPOL: SUPP_BE entering state INITIALIZE
EAP: EAP entering state DISABLED
ctrl_interface_group=0
P2P: Add operating class 81
P2P: Channels - hexdump(len=11): 01 02 03 04 05 06 07 08 09 0a 0b
P2P: Own listen channel: 81:6
P2P: Random operating channel: 81:6
P2P: initialized
P2P: channels: 81:1,2,3,4,5,6,7,8,9,10,11
P2P: cli_channels:
MBO: Update non-preferred channels, non_pref_chan=N/A
wfd0: Added interface wfd0
wfd0: State: INACTIVE -> DISCONNECTED
nl80211: Set wfd0 operstate 0->0 (DORMANT)
netlink: Operstate: ifindex=5 linkmode=-1 (no change), operstate=5 (IF_OPER_DORMANT)
wfd0: Determining shared radio frequencies (max len 1)
wfd0: Shared frequencies (len=0): completed iteration
P2P: Add operating class 81
P2P: Channels - hexdump(len=11): 01 02 03 04 05 06 07 08 09 0a 0b
P2P: Update channel list
P2P: channels: 81:1,2,3,4,5,6,7,8,9,10,11
P2P: cli_channels:
Daemonize..
root@imx8mqevk:~# wpa_cli
wpa_cli v2.10
Copyright (c) 2004-2022, Jouni Malinen <j@w1.fi> and contributors

This software may be distributed under the terms of the BSD license.
See README for more details.


Selected interface 'wfd0'

Interactive mode

>
>
> p2p_find
[14884.557026] wlan: wfd0 START SCAN
OK
<3>CTRL-EVENT-SCAN-STARTED
> [14887.357769] wlan: SCAN COMPLETED: scanned AP count=0
[14887.592283] wlan: wfd0 START SCAN

==================

Best regards,

Christine.

0 Kudos
Reply

5,845 Views
Christine_Li
NXP TechSupport
NXP TechSupport

Hi, @Jtac 

Hope you are doing well~

Do you have any change to try my solutions?

If have any problem, please feel free to contact me.

 

Regards,

Christine.

0 Kudos
Reply

5,826 Views
Jtac
Contributor I

Hello Christine,

     Sorry for delayed response.

     Actually I was rechecking our Nvidia systems wpa supplicant configurations.Its slightly different from iMX platform. After rechecking all the configuration  I again gone through whole procedure from  your given manual UM11490 (page 25).

    I carefully redo all the steps in the manual and successfully able to make p2p connection between my CM358 module and another linux laptop.

    Please check attached  log16062023_MOD document.

    Now when I  try to find the device on both side using "p2p_find" command, both devices are visible on other side.

<3>CTRL-EVENT-SCAN-STARTED
> P2P-DEVICE-FOUND 0c:d2:92:e3:90:0f p2p_dev_addr=0c:d2:92:e3:90:0f pri_dev_type=0-00000000-0 name='' config_methods=0x1108 dev_capab=0x25 group_capab=0x0 new=1
<3>P2P-DEVICE-FOUND 0c:d2:92:e3:90:0f p2p_dev_addr=0c:d2:92:e3:90:0f pri_dev_type=0-00000000-0 name='' config_methods=0x1108 dev_capab=0x25 group_capab=0x0 new=1
<3>CTRL-EVENT-SCAN-STARTED

   Even I can able to connect device to each other using "p2p_connect" command.

> p2p_connect 0c:d2:92:e3:90:0f pbc go_intent=1 freq=2412
OK

  I have to give same command with each others MAC ID on both the systems.

  There is issue come.

   On module side as soon as I gave "p2p_connect" command I got following log.

> p2p_connect 0c:d2:92:e3:90:0f pbc go_intent=1 freq=2412
OK
> P2P-GO-NEG-SUCCESS role=client freq=2412 ht40=0 peer_dev=0c:d2:92:e3:90:0f peer_iface=0c:d2:92:e3:90:10 wps_method=PBC
<3>P2P-GO-NEG-SUCCESS role=client freq=2412 ht40=0 peer_dev=0c:d2:92:e3:90:0f peer_iface=0c:d2:92:e3:90:10 wps_method=PBC
<3>CTRL-EVENT-SCAN-STARTED
<3>CTRL-EVENT-SCAN-RESULTS
<3>CTRL-EVENT-SCAN-STARTED
<3>CTRL-EVENT-SCAN-RESULTS
<3>WPS-AP-AVAILABLE-PBC
> p2p0: SME: Trying to authenticate with 0c:d2:92:e3:90:10 (SSID='DIRECT-6r' freq=2412 MHz)
<3>SME: Trying to authenticate with 0c:d2:92:e3:90:10 (SSID='DIRECT-6r' freq=2412 MHz)
> p2p0: Trying to associate with 0c:d2:92:e3:90:10 (SSID='DIRECT-6r' freq=2412 MHz)
<3>Trying to associate with 0c:d2:92:e3:90:10 (SSID='DIRECT-6r' freq=2412 MHz)
> p2p0: Associated with 0c:d2:92:e3:90:10
<3>Associated with 0c:d2:92:e3:90:10
p2p0: CTRL-EVENT-SUBNET-STATUS-UPDATE status=0
<3>CTRL-EVENT-SUBNET-STATUS-UPDATE status=0
> p2p0: CTRL-EVENT-EAP-STARTED EAP authentication started
<3>CTRL-EVENT-EAP-STARTED EAP authentication started
<3>CTRL-EVENT-EAP-STATUS status='started' parameter=''
> p2p0: CTRL-EVENT-EAP-PROPOSED-METHOD vendor=14122 method=1
<3>CTRL-EVENT-EAP-PROPOSED-METHOD vendor=14122 method=1
p2p0: CTRL-EVENT-EAP-METHOD EAP vendor 14122 method 1 (WSC) selected
<3>CTRL-EVENT-EAP-STATUS status='accept proposed method' parameter='WSC'
<3>CTRL-EVENT-EAP-METHOD EAP vendor 14122 method 1 (WSC) selected
> p2p0: WPS-CRED-RECEIVED
p2p0: WPS-SUCCESS
<3>WPS-CRED-RECEIVED
<3>WPS-SUCCESS
> P2P-GROUP-FORMATION-SUCCESS
<3>P2P-GROUP-FORMATION-SUCCESS
> p2p0: CTRL-EVENT-EAP-FAILURE EAP authentication failed
<3>CTRL-EVENT-EAP-STATUS status='completion' parameter='failure'
<3>CTRL-EVENT-EAP-FAILURE EAP authentication failed
> p2p0: CTRL-EVENT-DISCONNECTED bssid=0c:d2:92:e3:90:10 reason=3 locally_generated=1
nl80211: Was expecting local deauth but got another disconnect event first
<3>CTRL-EVENT-DISCONNECTED bssid=0c:d2:92:e3:90:10 reason=3 locally_generated=1
> p2p0: SME: Trying to authenticate with 0c:d2:92:e3:90:10 (SSID='DIRECT-6r' freq=2412 MHz)
<3>SME: Trying to authenticate with 0c:d2:92:e3:90:10 (SSID='DIRECT-6r' freq=2412 MHz)
> p2p0: CTRL-EVENT-REGDOM-CHANGE init=CORE type=WORLD
<3>CTRL-EVENT-REGDOM-CHANGE init=CORE type=WORLD
> p2p0: Trying to associate with 0c:d2:92:e3:90:10 (SSID='DIRECT-6r' freq=2412 MHz)
<3>Trying to associate with 0c:d2:92:e3:90:10 (SSID='DIRECT-6r' freq=2412 MHz)
> p2p0: Associated with 0c:d2:92:e3:90:10
<3>Associated with 0c:d2:92:e3:90:10
> p2p0: CTRL-EVENT-SUBNET-STATUS-UPDATE status=0
<3>CTRL-EVENT-SUBNET-STATUS-UPDATE status=0
> p2p0: WPA: Key negotiation completed with 0c:d2:92:e3:90:10 [PTK=CCMP GTK=CCMP]
p2p0: CTRL-EVENT-CONNECTED - Connection to 0c:d2:92:e3:90:10 completed [id=0 id_str=]
<3>WPA: Key negotiation completed with 0c:d2:92:e3:90:10 [PTK=CCMP GTK=CCMP]
<3>CTRL-EVENT-CONNECTED - Connection to 0c:d2:92:e3:90:10 completed [id=0 id_str=]
> P2P-GROUP-STARTED p2p0 client ssid="DIRECT-6r" freq=2412 go_dev_addr=0c:d2:92:e3:90:0f
<3>P2P-GROUP-STARTED p2p0 client ssid="DIRECT-6r" freq=2412 psk=36824eeb06d694d206de8f4d01693c6ff247a642d8dab50dcd597bf57cf7dc66 go_dev_addr=0c:d2:92:e3:90:0f

  Also it shows status as follows

> status
bssid=0c:d2:92:e3:90:10         
freq=2412
ssid=DIRECT-6r
id=0
mode=station
pairwise_cipher=CCMP
group_cipher=CCMP
key_mgmt=WPA2-PSK
wpa_state=COMPLETED
p2p_device_address=36:6f:24:df:75:23
address=36:6f:24:df:75:23
uuid=74ab7017-11db-5ec3-bb4a-865bdb558fc

  But on laptop side when I gave "p2p_connect" command following things come.

> p2p_connect 36:6f:24:df:75:23 pbc go_intent=1 freq=2412
OK
<3>P2P-GO-NEG-SUCCESS role=GO freq=2412 ht40=0 peer_dev=36:6f:24:df:75:23 peer_iface=36:6f:24:df:75:23 wps_method=PBC
<3>P2P-GROUP-FORMATION-SUCCESS
<3>P2P-GROUP-STARTED p2p-wlp2s0-0 GO ssid="DIRECT-6r" freq=2412 passphrase="sE8hWVDN" go_dev_addr=0c:d2:92:e3:90:0f
<3>AP-STA-CONNECTED 36:6f:24:df:75:23 p2p_dev_addr=36:6f:24:df:75:23

 And status shows Disconnected.

> status
wpa_state=DISCONNECTED
p2p_device_address=0c:d2:92:e3:90:0f
address=0c:d2:92:e3:90:0f
uuid=3dbf136c-5e0d-52eb-90ff-718acfaaaca8
> status

  Do you have any clue on this, why laptop shows like this?

  I am also trying to find solution on this.

  Thanks for support.

 

 

 

 

   

 

 

    

     

0 Kudos
Reply

5,795 Views
Christine_Li
NXP TechSupport
NXP TechSupport

Hi, @Jtac 

From your given info, I see that AW-CM358 module works fine as GC and laptop as GO.

But on your laptop, the status shows "disconnect", it is not normal.

Can you please help to check with another reference device working in p2p mode to connect your laptop, then we can know whether the issue is from laptop or AW-CM358?

 

Best regards,

Christine.

0 Kudos
Reply

5,750 Views
Jtac
Contributor I

Hello Christine,

    Sorry for delayed reply.

    As per your suggestion I tried to check all the possible combination.

    I have tried following combination.

    1) Laptop to Laptop p2p connection.

       Its successful and on both side it shows successful connection.

       Please check attached document wpa_cli_20_06_2023_laptop_to_laptop.txt

       After connect command if we check status on both side it shows DISCONNECTED but if we quit session and again restart session and recheck status then it shows new common bssid.

 

     2) Laptop to module p2p connection.

        This is not successful yet.  It shows FORMATION ERROR.

       Please check attached document wpa_cli_21_06_2023_module_to_laptop.txt and wpa_cli_21_06_2023_laptop_to_module.txt

    3) module to module p2p connection.

        This is also not successful yet. It shows same FORMATION ERROR as previous case.

         Please check attached document wpa_cli_log_module_to_module.txt

         It look like I am missing some configuration on module side. 

         I am working on that, if you have any suggestion then please let me know.

 

   Thanks.

        

      

        

 

   

0 Kudos
Reply

5,731 Views
Christine_Li
NXP TechSupport
NXP TechSupport

Hi,@Jtac,

Thanks for you trying.

Can you please help to check whether the P2P function is working fine or not? I prefer to know whether is a “status” displaying issue or the P2P function is also not working.

At the same time, I will also try on my side to check whether we have any other different configurations and observations.

 

Best regards,

Christine.

0 Kudos
Reply

5,709 Views
Jtac
Contributor I

Hello Christine,

    Today I tried few more iterations.

    Actually I tried module and Laptop communication. I just gone through given document and it works.

   Now the peer to peer connection between the module and Laptop is established.

   Please check the attached documents.

   Things are proper. 

   Thanks a lot for support and documentation.

   But there is one issue during this set up.

   When we run these commands according to given documentation things work properly.

   But one thing I have observed that, when we make some mistakes in wpa_cli commands and due to that if connection lost then we can not able to connect it back to the module.

    As something goes wrong during wpa_cli setup then module always goes continuously in GROUP FORMATION ERROR.

   Please check attached fail log.

   In this case we cant able regain the connection with module.

   There are only two way we can regain the connection.

   1) Reflash our Nvidia SOM. 

   2) Change intent number in connect command. 

    As this document guide us to establish peer to peer communication with the module, but I can not found any command to disconnect or reset peer to peer communication.

     I tried wpa_cli disconnect command but that is also not working.

     If you have any clue let me know.

Thanks.

   

   

    

0 Kudos
Reply

5,695 Views
Christine_Li
NXP TechSupport
NXP TechSupport

Hi, @Jtac 

Great job!
Could you also help to provide the original correct and mistake original configurations, I prefer to know which parameter is different. It will help to track the root cause.Thanks again for your trials.

Best regards,

Christine.

 

0 Kudos
Reply

5,661 Views
Jtac
Contributor I

Hello Christine,

   Thanks for reply.

    Actually there are multiple reason for failing p2p connection.

    When client request for connection to GO(station) and if GO(station) is not replied within certain time then timeout happend and GROUP formation failed.

    Sometime if we put some wrong entry during connect command (intent,freq,mac) then also command fail and from that instant module start failing for GROUP FORMATION.

    As I said we can overcome on this using different intent number.

    But I want to know that is there any way we can resent or disconnect /reconnect p2p connection between client and station after failure?

    There is DISCONNECT and remove client commands are there in wpa_cli command set but that also not effective after failure occure.

 Thanks.    

0 Kudos
Reply

5,599 Views
Christine_Li
NXP TechSupport
NXP TechSupport

Hi, @Jtac 

Can you please have a try with below command:

p2p_group_remove p2p0 (here is your interface which is using for p2p)

This command can be used to disconnect and remove the connection.

Show you my result as below:

Christine_Li_0-1687761204589.png

 

Best regards,

Christine.

0 Kudos
Reply

5,611 Views
Christine_Li
NXP TechSupport
NXP TechSupport

Hi, @Jtac 

Thanks for your feedback and sorry for late reply because I was in Chinese Dragon Boat festival.

I will check it today and feedback to you ASAP.

 

Best regards,

Christine.

0 Kudos
Reply

5,540 Views
Jtac
Contributor I

Hello Christine,

   Sorry for delayed response.

    Thanks a lot for suggestion.

    I tried give command it works, please check attached document.

    I also tried DISCONNECT commad with mac id that is also working.

    Thanks a lot for support.

 

0 Kudos
Reply

5,523 Views
Christine_Li
NXP TechSupport
NXP TechSupport

Hi, @Jtac 

I am very glad to hear that.

Then, I will close this ticket for now. If you have any other queries, please feel free to create new case to us.

Have a nice weekend~

 

Best regards,

Christine.

Tags (1)
0 Kudos
Reply