NXP Semiconductors
UM11490
Feature Configuration Guide for NXP-based Wireless Modules on i.MX 8M Quad EVK
•
Start the wpa_supplicant on i.MX 8M Quad:
root@imx8mqevk:~# killall wpa_supplicant
root@imx8mqevk:~# killall hostapd
root@imx8mqevk:~# wpa_supplicant -g/var/run/wpa_supplicant-global -D
nl80211 –B &
•
Start the wpa_cli on i.MX 8M Quad:
root@imx8mqevk:~# wpa_cli -g/var/run/wpa_supplicant-global
interface_add p2p0 "" nl80211 /var/run/wpa_supplicant
root@imx8mqevk:~# wpa_cli
> set p2p_no_group_iface 1
•
Start Wi-Fi Direct on the User Interface for the peer or mobile device.
•
Enable the p2p device discovery on i.MX 8M Quad:
> p2p_find
Command output example:
OK
[ 59.511943] wlan: p2p0 START SCAN
<3>CTRL-EVENT-SCAN-STARTED
> [ 59.643151] wlan: SCAN COMPLETED: scanned AP count=0
[ 59.979884] wlan: p2p0 START SCAN
<3>CTRL-EVENT-SCAN-STARTED
> [ 60.111610] wlan: SCAN COMPLETED: scanned AP count=1
<3>P2P-DEVICE-FOUND ba:c7:4a:41:e3:3f p2p_dev_addr=ba:c7:4a:41:e3:3f
pri_dev_type=10-0050F204-5 name='Peer_Device' config_methods=0x188
dev_capab=0x25
group_capab=0x0 new=1
•
Stop the ongoing p2p discovery
> p2p_stop_find
•
Connect with the p2p device
> p2p_connect <peer_device_addr> pbc go_intent=1 freq=2412
[ 89.733043] Add virtual interface p2p-p2p0-0
[ 89.747139] Can not set data rate in disconnected state
OK[ 89.752877] wlan: TX P2P Group Owner Negotiation Req
Frame, channel=6
> [ 90.093921] wlan: TX P2P Group Owner Negotiation Req
Frame, channel=6
[ 90.110123] wlan: RX P2P Group Owner Negotiation Rsp Frame,
channel=6
UM11490
All information provided in this document is subject to legal disclaimers.
© NXP B.V. 2021. All rights reserved.
User manual
Rev. 2 — 29 January 2021
24 / 88