IW611 fails to connect an other device via WiFi P2P

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

IW611 fails to connect an other device via WiFi P2P

2,228 Views
OscarLi
Contributor III

Platform: NXP IMX6DL + IW611
OS: Linux kernel 5.10.72

---------------------------------

insmod mlan.ko
[ 50.313625] mlan: loading out-of-tree module taints kernel.
root@imx6qsabresd:/lib/modules/5.10.72# insmod moal.ko mod_para=nxp/wifi_mod_par a.conf
[ 56.075314] wlan: Loading MWLAN driver
[ 56.079417] wlan: Register to Bus Driver...
[ 56.089609] vendor=0x0471 device=0x0205 class=0 function=1
[ 56.095465] Attach moal handle ops, card interface type: 0x109
[ 56.101334] rps set to 0 from module param
[ 56.112206] SDIW612: init module param from usr cfg
[ 56.117139] card_type: SDIW612, config block: 0
[ 56.121683] cfg80211_wext=0xf
[ 56.124671] max_vir_bss=1
[ 56.127299] cal_data_cfg=none
[ 56.130272] wfd_name=wfd
[ 56.132809] drv_mode = 7
[ 56.135400] ps_mode = 2
[ 56.137862] auto_ds = 2
[ 56.140312] fw_name=nxp/sd_w61x_v1.bin.se
[ 56.144386] SDIO: max_segs=128 max_seg_size=65535
[ 56.149093] rx_work=1 cpu_num=2
[ 56.152238] Enable moal_recv_amsdu_packet
[ 56.156341] Attach mlan adapter operations.card_type is 0x109.
[ 56.168428] wlan: Enable TX SG mode
[ 56.171925] wlan: Enable RX SG mode
[ 56.184487] Request firmware: nxp/sd_w61x_v1.bin.se
[ 56.401389] random: crng init done
[ 56.404809] random: 2 urandom warning(s) missed due to ratelimiting
[ 56.426047] Wlan: FW download over, firmwarelen=665336 downloaded 553136
[ 56.824587] WLAN FW is active
[ 56.827580] on_time is 56823365339
[ 56.854987] VDLL image: len=112200
[ 56.859219] fw_cap_info=0x487cff03, dev_cap_mask=0xffffffff
[ 56.864917] uuid: fc3e90f2b894523c925a8d1200d70370
[ 56.869728] max_p2p_conn = 8, max_sta_conn = 16
[ 56.971501] Register NXP 802.11 Adapter mlan0
[ 56.976273] wlan: uap%d set max_mtu 2000
[ 56.985462] Register NXP 802.11 Adapter uap0
[ 57.042373] Register NXP 802.11 Adapter wfd0
[ 57.048806] wlan: version = SDIW612---18.99.3.p21.10-MM6X18505.p4-GPL-(FP92)
[ 57.059323] Set REG 0x90002328: 0x13d57 slew_rate=3
[ 57.071217] wlan: Register to Bus Driver Done
[ 57.076444] wlan: Driver loaded successfully

---------------------------------------------------------------------

wpa_cli v2.5
Copyright (c) 2004-2015, 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 10
OK
> [ 98.000929] wlan: wfd0 START SCAN
<3>CTRL-EVENT-SCAN-STARTED
[ 101.653006] wlan: SCAN COMPLETED: scanned AP count=1
[ 101.897302] wlan: wfd0 START SCAN
<3>CTRL-EVENT-SCAN-STARTED
[ 102.045817] wlan: SCAN COMPLETED: scanned AP count=1
[ 102.391409] Cancel Remain on Channel before scan request
[ 102.399535] wlan: wfd0 START SCAN
<3>CTRL-EVENT-SCAN-STARTED
[ 102.547847] wlan: SCAN COMPLETED: scanned AP count=2
<3>P2P-DEVICE-FOUND a8:10:87:6e:2d:1f p2p_dev_addr=a8:10:87:6e:2d:1f pri_dev_typ e=10-0050F204-5 name='cc3200-p2p-go' config_methods=0x188 dev_capab=0x21 group_c apab=0x0 new=1
[ 102.789856] Cancel Remain on Channel before scan request

 

p2p_connect a8:10:87:6e:2d:1f pbc persistent go_intent=1
[ 125.839661] Add virtual interface p2p-wfd0-0
[ 125.908314] Can not set data rate in disconnected state
OK
> [ 125.914980] wlan: TX P2P Group Owner Negotiation Req Frame, channel=11
[ 125.933575] wlan: RX P2P Group Owner Negotiation Rsp Frame, channel=11
[ 127.984161] wlan: RX P2P Group Owner Negotiation Req Frame, channel=1
[ 127.991542] wlan: TX P2P Group Owner Negotiation Rsp Frame, channel=1
[ 128.009820] wlan: RX P2P Group Owner Negotiation Confirm Frame, channel=1
<3>P2P-GO-NEG-SUCCESS role=client freq=2437 ht40=0 peer_dev=a8:[ 128.043809] Ca n not set data rate in disconnected state
10:87:6e:2d:1f peer_iface=a8:10:87:6e:2d:1f wps_method=PBC
[ 128.097846] wlan: p2p-wfd0-0 START SCAN
[ 128.149337] wlan: SCAN COMPLETED: scanned AP count=1
<3>CTRL-EVENT-SCAN-RESULTS
[ 128.407007] wlan: p2p-wfd0-0 START SCAN
[ 128.458666] wlan: SCAN COMPLETED: scanned AP count=1
[ 128.685888] wlan: HostMlme p2p-wfd0-0 send auth to bssid a8:XX:XX:XX:2d:1f
[ 128.772322] p2p-wfd0-0:
[ 128.772343] wlan: HostMlme Auth received from a8:XX:XX:XX:2d:1f
[ 128.875716] wlan: HostMlme p2p-wfd0-0 Connected to bssid a8:XX:XX:XX:2d:1f su ccessfully
[ 128.885914] p2p-wfd0-0:
[ 128.885935] wlan: Send EAPOL pkt to a8:XX:XX:XX:2d:1f
[ 129.119201] p2p-wfd0-0:
[ 129.119211] wlan: Send EAPOL pkt to a8:XX:XX:XX:2d:1f
[ 129.430664] p2p-wfd0-0:
[ 129.430674] wlan: Send EAPOL pkt to a8:XX:XX:XX:2d:1f
[ 129.488285] p2p-wfd0-0:
[ 129.488307] wlan: Send EAPOL pkt to a8:XX:XX:XX:2d:1f
[ 129.588705] p2p-wfd0-0:
[ 129.588725] wlan: Send EAPOL pkt to a8:XX:XX:XX:2d:1f
<3>P2P-GROUP-FORMATION-SUCCES[ 129.693434] p2p-wfd0-0:
S
[ 129.693445] wlan: Send EAPOL pkt to a8:XX:XX:XX:2d:1f
[ 129.794388] wlan: Received disassociation request on p2p-wfd0-0, reason: 3
[ 129.801285] wlan: REASON: (Deauth) Sending STA is leaving (or has left) IBSS or ESS
[ 129.804429] p2p-wfd0-0:
[ 129.808965] wlan: HostMlme Disconnected: sub_type=12 a8:XX:XX:XX:2d:1f
[ 130.055877] wlan: HostMlme p2p-wfd0-0 send auth to bssid a8:XX:XX:XX:2d:1f
[ 130.096961] p2p-wfd0-0:
[ 130.096983] wlan: HostMlme Auth received from a8:XX:XX:XX:2d:1f
[ 130.207597] wlan: HostMlme p2p-wfd0-0 Connected to bssid a8:XX:XX:XX:2d:1f su ccessfully
[ 130.217090] p2p-wfd0-0:
[ 130.217102] wlan: Send EAPOL pkt to a8:XX:XX:XX:2d:1f
[ 130.319644] p2p-wfd0-0:
[ 130.319655] wlan: Send EAPOL pkt to a8:XX:XX:XX:2d:1f
[ 130.327574] p2p-wfd0-0:
[ 130.327584] wlan: Send EAPOL pkt to a8:XX:XX:XX:2d:1f
[ 130.335519] p2p-wfd0-0:
[ 130.335529] wlan: Send EAPOL pkt to a8:XX:XX:XX:2d:1f
[ 130.344939] IPv6: ADDRCONF(NETDEV_CHANGE): p2p-wfd0-0: link becomes ready
<3>P2P-GROUP-STARTED p2p-wfd0[ 130.352705] woal_cfg80211_set_rekey_data return: gtk_rekey_offload is DISABLE
-0 client ssid="DIRECT-fo" freq=2437 psk=5a4529654a93eafc6c63a7ec8813c8678671c5c f7f550068f7e9dead2e557fe7 go_dev_addr=a8:10:87:6e:2d:1f
[ 130.416083] p2p-wfd0-0:
[ 130.416106] wlan: Send EAPOL pkt to a8:XX:XX:XX:2d:1f
[ 130.426502] woal_cfg80211_set_rekey_data return: gtk_rekey_offload is DISABLE

> >

 

Regards,

Oscar

 

 

Tags (2)
0 Kudos
Reply
9 Replies

2,216 Views
Christine_Li
NXP TechSupport
NXP TechSupport

Hi, @OscarLi 

I tested with 2 IW612 modules, can connect P2P successfully.

Please see attached file for detailed steps.

With the referred steps, if still failed, please provide me full logs to check further.

 

Best regards,

Christine.

0 Kudos
Reply

2,207 Views
OscarLi
Contributor III

I tested with an IW611 module connect other module from other manufacturers
(non NXP). 

0 Kudos
Reply

2,203 Views
Christine_Li
NXP TechSupport
NXP TechSupport

Hi, @OscarLi 

Thanks for your reply.

Can you please try with my steps and let me know your results?

If still failed, please share me your full logs.

 

Best regards,

Christine.

0 Kudos
Reply

2,193 Views
OscarLi
Contributor III

Hi,  Christine Li 

      Two modules connect successfully. Thanks.

      But , IW611/2 firmware does not support the " wpa_cli -i p2p0 wps_pin 123456" command.

 

0 Kudos
Reply

2,188 Views
Christine_Li
NXP TechSupport
NXP TechSupport

Hi, @OscarLi 

Very glad to hear that can connect successfully on your side.

What do you want to do with this command " wpa_cli -i p2p0 wps_pin 123456."? to connect?

Later I can test on my local side.

 

Best regards,

Christine.

0 Kudos
Reply

2,180 Views
OscarLi
Contributor III

Hi, @Christine_Li ,

Start WPS PIN method for P2P connection.

A P2P client joins an existing group with a correct PIN code.

 

0 Kudos
Reply

2,172 Views
Christine_Li
NXP TechSupport
NXP TechSupport

Hi, @OscarLi 

Thanks for your quick reply.

So you prefer to use this method finish connection, right?

 

Best regards,

Christine.

0 Kudos
Reply

2,164 Views
OscarLi
Contributor III

Hi, @Christine_Li ,

 Yes.

Without PIN code, just PBC method, anyone can connect our device through mobile.

0 Kudos
Reply

2,035 Views
Christine_Li
NXP TechSupport
NXP TechSupport

Hi, @OscarLi 

I tested locally with below commands, it can connect successfully.

Please have a try on your side, and let me know whether it works for you.

On the GO side:

wps_pin <BSSID> <pin code>

On the client side:

p2p_connect <BSSID> <pin code> join

 

Attachment is my test steps and test results for your reference.

 

Best regards,

Christine.

0 Kudos
Reply