# MXM Wi-Fi Driver ================================================================================ U S E R M A N U A L Copyright 2008-2026 NXP 1) FOR DRIVER BUILD Goto source code directory make [clean] build The driver and utility binaries can be found in ../bin_wlan directory. The driver source code is compatible with hosts running Linux kernel versions ranging from 2.6.32 to 6.19.0. 2) FOR INTEGRATING DRIVER INTO LINUX KERNEL (BUILT-IN SUPPORT) a) mkdir -p /drivers/net/wireless/nxp b) Clone the WLAN source code from nxp-imx/mwifiex repo to the drivers/net/wireless/nxp directory in the kernel repo. cd /drivers/net/wireless/nxp git clone https://github.com/nxp-imx/mwifiex.git c) Make sure the directories mlan/, mlinux/ as well as the files Makefile, Kconfig are present in drivers/net/wireless/nxp/mwifiex. d) In /drivers/net/wireless/Kconfig, add the following line: 'source "drivers/net/wireless/nxp/mwifiex/Kconfig"' e) In /drivers/net/wireless/Makefile, add the following line: 'obj-$(CONFIG_WLAN_VENDOR_NXP) += nxp/mwifiex/' f) Run make defconfig or menuconfig to enable support for NXP WLAN devices: Device Drivers > Network device support > Wireless LAN [*] "NXP WLAN devices" g) To configure the driver as a module: "NXP WLAN Driver" Or to configure the driver as inbuilt: <*> "NXP WLAN Driver" h) Save. Verify the kernel .config file for CONFIG_WLAN_VENDOR_NXP and CONFIG_NXP_WLAN_DRIVER flags. i) source j) make There is a high chance that the inbuilt NXP WLAN driver would be loaded before rootfs is mounted. In such scenario, the firmware files can also be added to the linux kernel Image using the following steps: a) mkdir -p /kernel/firmware/nxp b) Copy FW files to /kernel/firmware/nxp/ c) In kernel .config, add 2 new config flags: i) CONFIG_EXTRA_FIRMWARE="nxp/wifi_mod_para.conf nxp/pcieuartaw693_combo_v1.bin nxp/sduart_nw61x_v1.bin.se" ii) CONFIG_EXTRA_FIRMWARE_DIR="kernel/firmware" d) make To pass module parameters to the inbuilt NXP WLAN driver, append the kernel bootargs with: moal.= For Example: moal.mod_para=nxp/wifi_mod_para.conf moal.ps_mode=2 moal.drvdbg=0x37 To speed up driver loading, WLAN interface creation and reduce boot time, append the kernel bootargs with: loglevel=2 Performance Comparison - WLAN Interface Creation Time (Example measurements): Test Platform: iMX8MQ + PCIE AW693 on Linux 6.12.32 iMX BSP a) WLAN drivers as loadable modules (rc.local/init script): 10 seconds b) WLAN drivers as auto-load modules (modprobe.d/modules-load.d): 7 seconds c) WLAN drivers built into kernel: 5 seconds d) WLAN drivers built into kernel with loglevel=2: 3 seconds Note: Option 2 is the default configuration in iMX Linux BSP from kernel version 6.12.xx onwards. 3) FOR DRIVER INSTALL a) Copy firmware image to /lib/firmware/nxp/, copy wifi_mod_para.conf to /lib/firmware/nxp/. b) Install WLAN driver There are drv_mode, max_sta_bss, max_uap_bss etc. module parameters. The bit settings of drv_mode are, Bit 0 : STA Bit 1 : uAP Bit 2 : WIFIDIRECT Bit 4 : NAN Bit 7 : Zero-Wait DFS max_sta_bss: Maximum number of STA BSS (default 1, max 1) sta_name: Name of the STA interface (default: "mlan") max_uap_bss: Maximum number of uAP BSS (default 1, max 2) uap_name: Name of the uAP interface (default: "uap") max_wfd_bss: Maximum number of WIFIDIRECT BSS (default 1, max 1) wfd_name: Name of the WIFIDIRECT interface (default: "wfd") max_vir_bss: Number of Virtual interfaces (default 1) nan_name: Name of the NAN interface (default: "nan") max_nan_bss: Number of NAN interfaces (default 1) uap_oper_ctrl: uAP operation control when in-STA disconnect with ext-AP 0: default do nothing, 2: uAP stops and restarts automatically For example, to install multi-chip driver, insmod mlan.ko insmod moal.ko mod_para=nxp/wifi_mod_para.conf [drvdbg=0x7] wifi_mod_para.conf is used to support multi-chips which has different load module parameters. It contains the module parameters for different chips. c) Uninstall WLAN driver, ifconfig mlanX down ifconfig uapX down rmmod moal rmmod mlan pref_dbc This load time parameter is used to config preferred DBC mode and takes effect when dmcs is enabled This parameter only used for AW693(BB) Usage: pref_dbc=[value] insmod mlan.ko; insmod pcieaw693.ko fw_name=aw693w.bin dmcs=1 pref_dbc=1 : default preferred DBC mode : Enable preferred DBC mode : Disable preferred DBC mode Example : insmod mlan.ko; insmod pcieaw693.ko fw_name=aw693w.bin dmcs=1 pref_dbc=1 : Enable preferred DBC mode insmod mlan.ko; insmod pcieaw693.ko fw_name=aw693w.bin dmcs=1 pref_dbc=2 : Disable preferred DBC mode To load driver with MFG firmware file, use mfg_mode=1 when insmod WLAN driver and specify MFG firmware name if needed. To load driver with rf_test firmware file, use rf_test_mode=1 when insmod WLAN driver. This parameter only used for 9177(FC) There are some other parameters for debugging purpose etc. Use modinfo to check details. drvdbg= Note: Bit 19 (MFW_D = 0x00080000) has protection - once enabled, it is automatically preserved to prevent accidental FW dump trigger disabling. Use override: mlanutl mlan0 drvdbg 0x7 0xFFFFFFFF dev_cap_mask= This load parameter is uses to configure device features support Usage: dev_cap_mask= : Mxmdriver does not refer these bits for now, please keep these bits as 1 because they may be used in future. : Indicates support for 11B : Indicates support for 11G : Indicates support for 11A, if this bit is set to 0, BIT13 will also be clear automatically. : Indicates support for 11N : Indicates support for 11AC 2G : Indicates support for 11AC 5G : Mxmdriver does not refer these bits for now, please keep these bits as 1 because they may be used in future. : Indicates support for 11AX : Indicates support for 6G Example: To disable 11AX and 6G support: dev_cap_mask=0xfffcffff mac_addr=xx:xx:xx:xx:xx:xx auto_ds=0|1|2 ext_scan=0|1|2 p2a_scan=0|1|2 scan_chan_gap=x