EasyManua.ls Logo

NXP Semiconductors UM11490 - Configure and test Wi-Fi direct

NXP Semiconductors UM11490
88 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
NXP Semiconductors
UM11490
Feature Configuration Guide for NXP-based Wireless Modules on i.MX 8M Quad EVK
2.6 Configure and test Wi-Fi direct
This section describes the Wi-Fi direct feature which is used to establish a connection
that allows for device-to-device or peer-to-peer communication, linking devices together
without a nearby centralized network.
Use the following steps to test the Wi-Fi direct feature:
Edit wifi_mod_para_sd8987.conf configuration file to add p2p_enh=1 and
host_mlme=1 parameter-value pairs
root@imx8mqevk:~# nano /lib/firmware/nxp/wifi_mod_para_sd8987.conf
Updates in the configuration file:
SD8987 = {
cfg80211_wext=0xf
wfd_name=p2p
max_vir_bss=1
cal_data_cfg=none
drv_mode=7
ps_mode=2
auto_ds=2
fw_name=nxp/sdiouart8987_combo_v0.bin
p2p_enh=1
host_mlme=1
}
Load the modules in the kernel:
root@imx8mqevk:~# modprobe moal mod_para=nxp/wifi_mod_para_sd8987.conf
Command output example:
[ 2896.073550] wlan: Loading MWLAN driver
[ 2896.178399] vendor=0x02DF device=0x9149 class=0 function=1
[ 2896.183972] Attach moal handle ops, card interface type:0x105
[ 2896.189935] SD8987: init module param from usr cfg
[ 2896.194807] card_type: SD8987, config block: 0
[ 2896.199291] cfg80211_wext=0xf
[ 2896.202274] wfd_name=p2p
[ 2896.204855] max_vir_bss=1
[ 2896.207509] cal_data_cfg=none
[ 2896.210494] drv_mode = 7
[ 2896.213054] ps_mode = 2
[ 2896.215532] auto_ds = 2
[ 2896.218007] fw_name=nxp/sdiouart8987_combo_v0.bin
[ 2896.222747] host_mlme=disable
[ 2896.225747] SDIO: max_segs=128 max_seg_size=65535
[ 2896.230505] rx_work=1 cpu_num=4
[ 2896.233724] Attach mlan adapter operations.card_type is 0x105.
[ 2896.240142] wlan: Enable TX SG mode
[ 2896.243666] wlan: Enable RX SG mode
[ 2896.251307] Request firmware: nxp/sdiouart8987_combo_v0.bin
[ 2896.667066] Wlan: FW download over, firmwarelen=526996 downloaded 526996
[ 2897.601246] WLAN FW is active
[ 2897.604233] on_time is 2897601629500
[ 2897.638511] fw_cap_info=0x181c3f03, dev_cap_mask=0xffffffff
[ 2897.644138] max_p2p_conn = 8, max_sta_conn = 8
[ 2897.671116] wlan: version = SD8987---16.92.10.p207-MXM4X16186.p6-GPL-(FP92)
[ 2897.682184] wlan: Driver loaded successfully
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
23 / 88

Table of Contents

Related product manuals