Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

iwinfo and mt_wifi add CentralCh Width support #364

Open
wants to merge 6 commits into
base: openwrt-21.02
Choose a base branch
from

Conversation

benboguan
Copy link
Contributor

  1. iwinfo: get_freqlist add band support.
  2. iwinfo: mt_wifi: add CentralCh1 CentralCh2 support.
  3. iwinfo: fix fill_rate_info.
  4. iwinfo: get_scanlist add HT VHT operation support.
  5. mt_wifi: add CUSTOMER_VENDOR_IE_SUPPORT.

Signed-off-by: NanChuCi [email protected]

吐槽下:
菜鸡来的,大佬莫笑!
CentralCh参考驱动来的,但是驱动主要是mgmt文件夹里面的ht vht he源码,但是一周多下来,我彻底晕了!脑壳青痛!!!
特别是mgmt_vht,bss_ops,be_phy,看下来整个人都傻了,还是太菜鸡了,请大佬来修正吧!
be_phy里面的phy_freq_adjust,在系统日志里面显示如下:
Mon Jan 13 10:06:38 2025 kern.notice kernel: [ 44.892205] WiFi@C23L3,operate_loader_phy() 360: oper_cfg: prim_ch(52), ht_bw(1), extcha(1), vht_bw(2), cen_ch_2(0), PhyMode=177!
Mon Jan 13 10:06:38 2025 kern.notice kernel: [ 44.903848] WiFi@C23L3,operate_loader_phy() 374: oper_dev after adjust: bw(3), prim_ch(52), cen_ch_1(50), cen_ch_2(0),ext_cha(1)!
Mon Jan 13 10:06:38 2025 kern.notice kernel: [ 44.915488] WiFi@C23L3,operate_loader_phy() 393: oper_dev after decision: bw(3), prim_ch(52), cen_ch_1(50), cen_ch_2(0)!
Mon Jan 13 10:06:38 2025 kern.err kernel: [ 44.926351] WiFi@C08L1,AsicSwitchChannel() 334: AsicSwitchChannel::bandIdx:1 ch_band:1 htbw:1 vht_bw:2 bw:3 extcha:1
Mon Jan 13 10:06:38 2025 kern.err kernel: [ 44.936862] WiFi@C08L1,AsicSwitchChannel() 339: AsicSwitchChannel::primch:52 cench1:50 cench2:0 rxstream:2 ap_bw:0 apCenCh:0 Scan:0

水平有限没修得了,按照我自己的理解修了后就只能40M频宽了,请大佬@hanwckf,有时间看看吧!
屏幕截图 2025-01-14 204606
屏幕截图 2025-01-14 204702
屏幕截图 2025-01-14 204741

FIXE: 修复有wifi4 wifi5 wifi6设备接入时,会同时显示HE VHT HT属性的问题。
新增补齐ht_chan_info vht_chan_info相关项目,并配合mt_wifi补丁支持。(驱动要选上:CUSTOMER_VENDOR_IE_SUPPORT)
配合iwinfo的get_scanlist扫描项
删除限制以使用信道分析,不过还是没解决5G网络扫描断链的问题!
@benboguan
Copy link
Contributor Author

由于没搞清楚开源无线驱动2.4G检测 if (e->vht_chan_info.center_chan_1)的逻辑,所以iwinfo里面就直接设置了if (e->band != IWINFO_BAND_24)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant