wlan host接收从上层发出的指令来限制每一个wlan band/chain/制式,然后通过WMI指令发送到firmware 三种方式: 1. 在bdf里预设默认的limit值 2. 预设多套参数,然后通过cfg80211
指令发送下来,选择调用哪套 3. 动态去设置参数,通过cfg80211指令.
1. WIFI sar架构
2. WMI指令
2.1 Example of multiple default sets
2.2 Set only one limit, no default used
Set 2.4 GHz and 5 GHz limits, no default used
In case that users aim to set power limits for:
■ Band: 5 GHz, Chain: 0, Modulation: OFDM to limit 5
■ Band: 2 GHz, Chain: 0, Modulation: OFDM to limit 6
■ Band: 2 GHz, Chain: 0, Modulation: CCK to limit 7
■ Band: 2 GHz, Chain: 1, Modulation: either CCK or OFDM) to limit 8
■ No other combination is present to set NO_LIMIT when applying the power limits
3. BDF配置
这部分bdf参数修改,是射频提供,可参考文档
80-ya512-12_ye_wcn39xx_wlan_coexistence_software_user_guide_and_SAR.pdf
4. VendorCommand
4.1 方法一:xml解析
高通提供了一个idea,将所有的配置放在xml里,然后使用指令去解析,调用哪一套参数
例子:
4.2 Configure SAR by using NL80211 interface
高通在hostdriver层其实已经封装好了相关的接口,我们只需要写一个上层程序,通过nl80211往hostdriver层传值即可
set sar limit
get sar limit
5. 功率显示的值
Note: Although SAR table in BDF has power configuration for each chains, WLAN firmware picks the minimum power value only in each chain and displays that value for both chains.