Set custom BSSID

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

Set custom BSSID

跳至解决方案
1,428 次查看
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.

标记 (1)
0 项奖励
回复
1 解答
1,370 次查看
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 项奖励
回复
3 回复数
1,371 次查看
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 项奖励
回复
1,410 次查看
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 项奖励
回复
1,398 次查看
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 项奖励
回复