We are building our own IoT device using an i.MX8MN and AW-CM385SM WIFI module (which is based on the NXP88W8987 WLAN+BT chip). We have registered a MAC address OUI for our company and would like to program the BSSID/MAC address at manufacturing time, based on our OUI. I know how to program the ethernet MAC address in u-boot but don't know if its possible to do something similar for the WIFI BSSID. Please let me know if there is a way to tell the WIFI driver the BSSID.
已解决! 转到解答。
Hello Dvlogic,
It is my mistake, sorry!
See README_UAP, please! the file is in the wlan_src of wifi driver.
----------------------------------
----------------------
"./uaputl.exe sys_cfg_ap_mac_address [AP_MAC_ADDRESS]"
This command is used to set or get the AP MAC address.
If no arguments are given, this command returns the current AP MAC
address.
Otherwise, this MAC address becomes the BSSID of the infrastructure
network created by the AP.
Example:
./uaputl.exe sys_cfg_ap_mac_address 00:50:43:20:aa:bb
Set AP MAC address to 00:50:43:20:aa:bb
./uaputl.exe sys_cfg_ap_mac_address
Get AP MAC address"
----------------------------------------------------
Have a good day!
Regards,
weidong
Hello Dvlogic,
It is my mistake, sorry!
See README_UAP, please! the file is in the wlan_src of wifi driver.
----------------------------------
----------------------
"./uaputl.exe sys_cfg_ap_mac_address [AP_MAC_ADDRESS]"
This command is used to set or get the AP MAC address.
If no arguments are given, this command returns the current AP MAC
address.
Otherwise, this MAC address becomes the BSSID of the infrastructure
network created by the AP.
Example:
./uaputl.exe sys_cfg_ap_mac_address 00:50:43:20:aa:bb
Set AP MAC address to 00:50:43:20:aa:bb
./uaputl.exe sys_cfg_ap_mac_address
Get AP MAC address"
----------------------------------------------------
Have a good day!
Regards,
weidong
Hi,
--If you want to connect target router, the router's SSID should be conigured in wpa_supplicant.conf
--if you want to configure wifi module as Access Point, it's SSID name should be configured like below:
/etc/hostapd.conf
# If we want to use 2.4G, it’s contents should be :
Deleting original one , and Using “nano /etc/hostapd.conf” to create a New one.
root@imx8mnevk:~# nano /etc/hostapd.conf
-------------------
interface=uap0
ssid=NXP-uap0
hw_mode=g
channel=1
own_ip_addr=192.168.2.2 # this is the uap0 ip address
------------------
# If we want to use 5G, it’s contents should be :
------------------
interface=uap0
ssid=NXP-uap0
hw_mode=a
channel=40
ieee80211n=1
own_ip_addr=192.168.2.2 # this is the uap0 ip address
Have a good day!
Regards
weidong