EasyManua.ls Logo

NXP Semiconductors UM11490 - Using Wpa_Supplicant and Wpa_Cli; Commands

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.1.2 Using wpa_supplicant and wpa_cli commands
You can also use wpa_supplicant and wpa_cli to scan the visible access points.
Edit the configuration file:
root@imx8mqevk:~# nano /etc/wpa_supplicant.conf
Content of the configuration file:
ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=0
update_config=1
network={
key_mgmt=NONE
}
Start wpa_supplicant in the background
root@imx8mqevk:~# wpa_supplicant -B -i mlan0 -c /etc/
wpa_supplicant.conf
Start wpa_cli for the scan
root@imx8mqevk:~# wpa_cli
Command output:
wpa_cli v2.9
Copyright (c) 2004-2019, 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 'mlan0'
Interactive mode
Start the scanning:
> scan
Command output example showing the scanned AP count and the SCAN COMPLETE
event:
OK
[ 253.835605] wlan: mlan0 START SCAN
<3>CTRL-EVENT-SCAN-STARTED
> [ 258.910760] wlan: SCAN COMPLETED: scanned AP count=1
<3>CTRL-EVENT-SCAN-RESULTS
<3>CTRL-EVENT-NETWORK-NOT-FOUND
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
6 / 88

Table of Contents

Related product manuals