sdk说明

** Gateway/AP firmware v3.4.14b – Aug 26, 2019**
 Wireless LAN driver changes as:
 Refine WiFi Stability and Performance
 Add 8812F MU-MIMO
 Add 97G/8812F multiple mac-clone
 Add 97G 2T3R antenna diversity
 Fix 97G/8812F/8814B MP issues
 Add CH144 DFS support for JP
 Fix PPPOE Dial on dial-on-demand abnormal when dual stack
 Fix Ethernet padding info disclosure
 Add WPA3 WEB UI
 Add RealSON support
 Add EasyMesh supports

需求描述

根据不同信道限制WiFi的发射功率

需求分析

查看2.4G mib_rf

# cat /proc/wlan1/mib_rfDot11RFEntry...dot11channel: 1dot11ch_low: 0dot11ch_hi: 0pwrlevelCCK_A: 5959595858585858585757575757pwrlevelCCK_B: 4f4f4f4f4f4f4f4f4f4f4f4f4f4fpwrlevelHT40_1S_A: 4e4e4e4e4e4e4e4e4e4e4e4e4e4epwrlevelHT40_1S_B: 4747474949494949494949494949pwrdiffHT40_2S: 0000000000000000000000000000pwrdiffHT20: 00000