wlan macaddress加载

高通平台wlan macaddress加载有5种方式:

WCN39x0 supports below 5 ways to configure MAC address:
• wlan_mac.bin
• NV#4678
• bdwlan.bin (BDF)
• WCNSS_qcom_cfg.ini
• Random generate from S/N
Priority: wlan_mac.bin > NV#4678 > bdwlan.bin > INI > random MAC

/modem_proc/datamodem/interface/qmidata/src/ds_qmi_dms.c qmi_dmsi_get_mac_address modem从NV04678读取
/vendor/qcom/proprietary/wlan/cnss-daemon/wlfw_qmi_client.c dms_get_wlan_address Wlan侧cnss_daemon发Qmi Message去获取的。

• If MAC address is specified through 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 bdf 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 0x00, 0x0A, 0xF5, 0x89, 0x89, 0xFF. 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.By default, Qualcomm release doesn’t have any WLAN MAC programmed in wlan_mac.bin nor in modem NV#4678 nor in BDF nor in INI.

  • 2
    点赞
  • 6
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值