前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >wlan macaddress加载

wlan macaddress加载

作者头像
用户7557625
发布2021-01-18 10:38:10
1K0
发布2021-01-18 10:38:10
举报

高通平台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.

本文参与 腾讯云自媒体分享计划,分享自作者个人站点/博客。
原始发表:2020-10-10 ,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体分享计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档