EasyManua.ls Logo

NXP Semiconductors UM11490 - Configure WPA to Connect with AP Using the Open Source Supplicant

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.4.4 Configure WPA to connect with AP using the open source supplicant
This section describes the configuration for wpa_supplicant to configure WPA security
and connect with the Access Point.
Edit the configuration
Command to configure WPA to connect with AP for an open source supplicant:
root@imx8mqevk:~# nano /etc/wpa_supplicant.conf
Configuration file content:
ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=0
update_config=1
network={
ssid="NXP_Demo"
key_mgmt=WPA-PSK
psk="123456789"
}
Connect with the AP
Commands to connect the device with the WPA-based AP:
root@imx8mqevk:~# killall wpa_supplicant
root@imx8mqevk:~# killall hostapd
root@imx8mqevk:~# wpa_supplicant -i mlan0 -Dnl80211 –c /etc/
wpa_supplicant.conf
Command output example:
Successfully initialized wpa_supplicant
rfkill: Cannot open RFKILL contro[29837.078281] IPv6:
ADDRCONF(NETDEV_UP): mlan0: link is not read
[29837.210057] wlan: mlan0 START SCAN
[29841.854417] wlan: SCAN COMPLETED: scanned AP count=20
mlan0: Trying to associate with 40:49:0f:9e:66:fd (SSID='NXP_Demo'
freq=2437 MHz)
[29841.873434] wlan: Connected to bssid 40:XX:XX:XX:66:fd successfully
mlan0: Associated with 40:49:0f:9e:66:fd
mlan0: CTRL-EVENT-SUBNET-STATUS-UPDATE status=0
mlan0: WPA: Key negotiation compl[29841.891468] IPv6:
ADDRCONF(NETDEV_CHANGE): mlan0: link becomes ready
eted with 40:49:0f:9e:66:fd [PTK=[29841.901022]
woal_cfg80211_set_rekey_data return: gtk_rekey_offload is DISABLE
TKIP GTK=TKIP]
mlan0: CTRL-EVENT-CONNECTED - Connection to 40:49:0f:9e:66:fd
completed [id=0 id_str=]
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
19 / 88

Table of Contents

Related product manuals