[][MAC80211][WiFi7][app][convert iwpriv/mwctl command with link_id]
[Description]
Add support to convert mwctl bandX to -i <mld_intf> -l <link_id> for mlo
interface. For example, if sigma command is
"$ mwctl bandX set ap_rfeatures coding_type=8",
iwpriv.sh will convert it to
"$ hostapd_cli -i <mld_intf> -l <link_id> raw ap_rfeatures coding_type=8".
The steps to convert mwctl/iwpriv command shows as below:
1. Parse band idx "bandX" from command "mwctl bandX set ap_rfeatures xxx".
2. Read mlo debugfs "mt76_links_info"
3. Parse the ouput of step2 to fetch bandX_links_id, which is the
link_id belong to this band idx.
4. Add "-l <link_id>" to the output command
Please note that this conversion only applicable to the following vendor
commands:
1. ap_rfeatures
2. ap_wireless
[Release-log]
N/A
Change-Id: I59a8d793d1e39bcccda23089337ce8cd6981045d
Reviewed-on: https://gerrit.mediatek.inc/c/openwrt/feeds/mtk_openwrt_feeds/+/9197771
1 file changed