WIFI MAC获取方式

WCN39XX支持下面五种方式来配置MAC地址:
1) wlan_mac.bin
2) NV#4678
3) bdwlan.bin (BDF)
4) WCNSS_qcom_cfg.ini
5) Random generate from S/N
优先级:wlan_mac.bin > NV#4678 > bdwlan.bin > INI > random MAC
If MAC address is specified thru wlan_mac.bin, we'll use the same MAC addresses for wlan0~ wlan3 interfaces as wlan_mac.bin support up to 4 different custom MAC addresses.
If wlan_mac.bin is not present and MAC address is specified in modem NV#4678, we'll use the MAC address for wlan0 interface. The rest of the 3 MAC addresses will be generated randomly by changing the first and the fourth byte of MAC address which derived from wlan0.
If no valid wlan_mac.bin and no valid modem NV#4678, then MAC address specified in bdwlan.bin file is used for wlan0 interface. The rest of the 3 MAC addresses will be generated randomly by changing the first and the fourth byte of MAC address which derived from wlan0.
If no wlan_mac.bin & no NV item & no BDF MAC, we'll try to use the INI file if the wlan0 MAC address specified in INI is not default 000AF58989FF. We'll use the MAC in INI for wlan0~wlan3 interfaces as INI support up to 4 different custom MAC addresses.

If not any of above, we'll auto generate wlan0 MAC address using the device SOC serial number. The first 3 bytes will be OUI and the last 3 bytes will match the last 3 bytes of SOC serial number. The rest of the 3 MAC addresses will be generated randomly by changing the first and the fourth byte of MAC address which derived from wlan0.

以上策略可见set_wifi_mac.cpp.

评论 3
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值