Loading [MathJax]/jax/output/CommonHTML/config.js
首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >专栏 >wlan macaddress加载

wlan macaddress加载

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

高通平台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 删除。

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

评论
登录后参与评论
暂无评论
推荐阅读
编辑精选文章
换一批
hostapd 配置「建议收藏」
hostapd is an IEEE 802.11 AP and IEEE 802.1X/WPA/WPA2/EAP/RADIUS Authenticator. This page is dedicated to the Linux documentation of it’s implementation and use. Please refer to the hostapd home page for information for other Operating Systems. As far a Linux is concerned, out of the old drivers you can only use these 3 drivers with hostapd: HostAP madwifi prism54 All new mac80211 based drivers that implement AP functionality are supported with hostapd’s nl80211 driver. The mac80211 subsystem moves all aspects of master mode into user space. It depends on hostapd to handle authenticating clients, setting encryption keys, establishing key rotation policy, and other aspects of the wireless infrastructure. Due to this, the old method of issuing ‘ iwconfig <wireless interface> mode master’ no longer works. Userspace programs like hostapd now use netlink (the nl80211 driver) to create a master mode interface for your traffic and a monitor mode interface for receiving and transmitting management frames. Getting hostapd Using your distributions hostapd It is advisable to try your distributions version of hostapd before taking the time to compile and install your own copy. This will make future maintenance easier as you’ll be able to use the init scripts shipped by the distro and hostapd will be updated by it as well. If your distribution ships 0.6.8 or later, you can test with this bare minimum config by creating the file hostapd-minimal.conf: #change wlan0 to your wireless device interface=wlan0 driver=nl80211 ssid=test channel=1 If that config errors out with something like: hostapd $ sudo hostapd ./hostapd-minimal.conf Configuration file: ./hostapd-minimal.conf Line 2: invalid/unknown driver ‘nl80211’ 1 errors found in configuration file ‘./hostapd-minimal.conf’ that means that your distro is not shipping hostapd with nl80211 driver support and you’ll need to follow the building instructions that follow. If it works, you can skip down to the configuring hostapd secti
全栈程序员站长
2022/08/31
1.4K0
[C++][linux]linux C++获取mac地址
I am working on Ubuntu. How can I get MAC address of my machine or an interface say eth0 using C program.
云未归来
2025/07/19
720
【Linux】《how linux work》第九章 了解网络及其配置(1)
Networking is the practice of connecting computers and sending data between them. That sounds simple enough, but to understand how it works, you need to ask two fundamental questions:
阿东
2024/04/27
1830
【Linux】《how linux work》第九章 了解网络及其配置(1)
从wlan_mac.bin文件中读取MAC地址
/vendor/qcom/opensource/wlan/qcacld-3.0/Android.mk
用户7557625
2020/07/16
4.6K0
k8s |kubeadm init cluster | cni network calico
Install Calico with Kubernetes API datastore, 50 nodes or less
heidsoft
2022/04/18
2.1K0
k8s |kubeadm  init cluster | cni network calico
Intro to Filtering with Network Monitor 3.0
https://blogs.technet.microsoft.com/netmon/2006/10/17/intro-to-filtering-with-network-monitor-3-0/
全栈程序员站长
2022/07/19
4850
android 功耗(1)---android 功耗分析方法和优化
底电流在手机飞行模式下调试。每个平台的底电流数据可能不一样,具体可以参考release出来的Current Consumption Data文档或者release note。一般情况下的底电流参考数据上限是:
233333
2020/09/07
4.9K1
nftables用法介绍
Kubernetes 1.29版本中已经将nftables作为一个featureGates,本文简单整理了nftables的用法,便于后续理解kubernetes的nftables规则。文末给出了使用kubeadm部署启用nftables featureGates的配置文件。
charlieroro
2024/01/31
2.2K0
GPIOs and Go
Recently, I decided that I needed a small heads up display for import things I kept forgetting, like the time until an event started or number of unread emails in my inbox. I wanted the display to be simple and bright so it would really catch my eye. I naturally started to look at seven segment displays. Four digit, seven segment displays are available in most hobby electronics stores and come in a variety of packages. What is most noticeable when comparing these packages is that the 12 pin, analog package is significantly cheaper than the packages with bus interfaces (UART, SPI, I2C, etc.) and less pins. I wasn’t using the majority of GPIOs on my Raspberry Pi Zero and being frugal, I decided to buy the analog package. What happened next was an exploration into how Go can quickly control GPIO pins to make the display actually work well.
李海彬
2018/12/29
8160
solidity智能合约
Solidity里的智能合约是面向对象语言里的类。它们持久存放在状态变量和函数中,(在里面)可以通过solidity修改这些变量。在不同的智能合约(实例)中调用一个函数(的过程),(实际上)是在EVM(Ether虚拟机)中完成一次调用,并且完成(一次)上下文切换,(此时)状态变量是不可访问的。
笔阁
2018/09/04
1.4K0
【Linux】《how linux work》第九章 了解网络及其配置(2)
There are several ways to automatically configure networks in Linux-based systems. The most widely used option on desktops and notebooks is NetworkManager. Other network configuration management systems are mainly targeted for smaller embedded systems, such as OpenWRT’s netifd, Android’s ConnectivityManager service, ConnMan, and Wicd. We’ll briefly discuss NetworkManager because it’s the one you’re most likely to encounter. We won’t go into a tremendous amount of detail, though, because after you see the big picture, NetworkManager and other configuration systems will be more transparent
阿东
2024/04/27
2390
【Linux】《how linux work》第九章 了解网络及其配置(2)
Writing device drivers in Linux: A brief tutorial
“Do you pine for the nice days of Minix-1.1, when men were men and wrote their own device drivers?”
RainMark
2019/09/10
1.7K0
【Linux】《how linux work》第九章 了解网络及其配置(3)
NAT is the most commonly used way to share a single IP address with a private network, and it’s nearly universal in home and small office networks. In Linux, the variant of NAT that most people use is known as IP masquerading.
阿东
2024/04/27
2950
【Linux】《how linux work》第九章 了解网络及其配置(3)
Understanding Kubernetes Kube-Proxy
Kubernetes is a complicated system with multiple components interacting with each other in complex ways. As you may already know, Kubernetes is made of master and node components.
heidsoft
2019/09/10
2.1K0
Understanding Kubernetes Kube-Proxy
Peer-to-Peer (P2P) communication across middleboxes
Internet Draft                                                   B. Ford Document: draft-ford-midcom-p2p-01.txt                            M.I.T. Expires: April 27, 2004                                     P. Srisuresh                                                           Caymas Systems                                                                 D. Kegel                                                                kegel.com                                                             October 2003               Peer-to-Peer (P2P) communication across middleboxes Status of this Memo    This document is an Internet-Draft and is subject to all provisions    of Section 10 of RFC2026.  Internet-Drafts are working documents of    the Internet Engineering Task Force (IETF), its areas, and its    working groups.  Note that other groups may also distribute working    documents as Internet-Drafts.    Internet-Drafts are draft documents valid for a maximum of six months    and may be updated, replaced, or obsoleted by other documents at any    time.  It is inappropriate to use Internet- Drafts as reference    material or to cite them other than as "work in progress."    The list of current Internet-Drafts can be accessed at    http://www.ietf.org/1id-abstracts.html    The list of Internet-Draft Shadow Directories can be accessed at    http://www.ietf.org/shadow.html    Distribution of this document is unlimited. Copyright Notice    Copyright (C) The Internet Society (2003).  All Rights Reserved. Abstract    This memo documents the methods used by the current peer-to-peer    (P2P) applications to communicate in the presence of middleboxes    such as firewalls and network address translators (NAT). In    addition, the memo suggests guidelines to application designers    and middlebox implementers on the measures they could take to    enable immediate, wide deployment of P2P applications with or    without requiring the use of special proxy, relay or midcom    protocols.   Ford, Srisuresh & Kegel   
landv
2018/12/14
1.1K0
【Linux】《how linux work》第九章 了解网络及其配置
Networking is the practice of connecting computers and sending data between them. That sounds simple enough, but to understand how it works, you need to ask two fundamental questions:
阿东
2024/04/22
3370
【Linux】《how linux work》第九章 了解网络及其配置
hostapd.conf详细
发布者:全栈程序员栈长,转载请注明出处:https://javaforall.cn/143200.html原文链接:https://javaforall.cn
全栈程序员站长
2022/08/31
1.3K0
hostapd.conf配置文档「建议收藏」
大家好,又见面了,我是你们的朋友全栈君。##### hostapd configuration file ############################################## # Empty lines and lines starting with # are ignored
全栈程序员站长
2022/09/03
2.6K0
opensciencegrid - GridFTP 安装
最近配置一个GridFTP 用于测试其传输FTP性能, 在这里简单记录,备忘;使用本教程可以简单起一个GridFTP用于测试服务;
西湖醋鱼
2020/12/30
1K0
Spam Filters「建议收藏」
Sam Holden 23 Aug 2003 00:00 1 id=”twitter-widget-0″ scrolling=”no” frameborder=”0″ allowtransparency=”true” class=”twitter-share-button twitter-share-button-rendered twitter-tweet-button” title=”Twitter Tweet Button” src=”http://platform.twitter.com/widgets/tweet_button.690bdfd7a6f940134f5b0c1ed92905a6.en.html#_=1448418168091&count=vertical&dnt=false&id=twitter-widget-0&lang=en&original_referer=http%3A%2F%2Ffreecode.com%2Farticles%2Fspam-filters&size=m&text=Spam%20Filters&type=share&url=http%3A%2F%2Ffreecode.com%2Farticles%2Fspam-filters&via=freecode_com” style=”margin: 30px 0px 0px; padding: 0px; border-width: 0px; border-style: initial; outline: 0px; font-size: 14.3999996185303px; clear: both; float: none; position: static; visibility: visible; width: 65px; height: 20px; background: transparent;”>
全栈程序员站长
2022/08/31
4410
Spam Filters「建议收藏」
相关推荐
hostapd 配置「建议收藏」
更多 >
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档