Set custom BSSID

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Set custom BSSID

Jump to solution
973 Views
dvlogic
Contributor III

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.

Tags (1)
0 Kudos
1 Solution
915 Views
weidong_sun
NXP TechSupport
NXP TechSupport

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

View solution in original post

0 Kudos
3 Replies
916 Views
weidong_sun
NXP TechSupport
NXP TechSupport

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

0 Kudos
955 Views
weidong_sun
NXP TechSupport
NXP TechSupport

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

0 Kudos
943 Views
dvlogic
Contributor III

It’s actually the BSSID (ie the MAC address) not the SSID that I need to set using my companies OUI prefix. 

0 Kudos