NXP Semiconductors
UM11490
Feature Configuration Guide for NXP-based Wireless Modules on i.MX 8M Quad EVK
2.2.3 Configure the 5 GHz Access Point
Edit the configuration file:
root@imx8mqevk:~# nano /etc/hostapd-5g.conf
Parameter values in the configuration file:
interface=uap0
hw_mode=a
channel=0
country_code=US
ssid=NXP_Demo
ieee80211n=1
2.2.4 Set up udhcp server
The udhcp server is used to assign the IP to the client devices that are associated with
the access point.
Step 1
- Create the configuration file for udhcp server
•
Create the configuration file
udhcpd.conf
in
etc
repository
root@imx8mqevk:~# nano /etc/udhcpd.conf
•
Add the following content to
udhcpd.conf
file
start 192.168.1.10
end 192.168.1.20
interface uap0
Step 2
- Create udhcp client lease database file
udhcp server uses the database file to store all the leases that is has assigned.
•
Create the lease database file
udhcpd.leases
in
/var/lib/misc/
repository so udhcp
server can start
•
The newly created file does not require any content.
root@imx8mqevk:~# touch /var/lib/misc/udhcpd.leases
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
8 / 88