[][MAC80211][WiFi7][Misc][Add MLD configuration options]

[Description]
Add MLD configuration options in /etc/config/wireless.
AP MLD:
- mld_id: Integer type. ID of the MLD. MLD is set if and only if this option is set
- mld_addr: String type. addr of the MLD
- mld_primary: Boolean type. Whether the iface is the primary interface
  in the MLD. This option is used for ucode to decided whether to create
  new iw interface.

STA MLD:
- mld_primary: Boolean type. Set this option to 1 so that the MLD STA
  prefers using current radio as the primary link.
- mld_single_link: Boolean type. Set this option to 1 so that the MLD STA
  uses single link connection with the AP MLD.

Also and support for new wifi-mld section in /etc/congfig/wireless.
Below is an example for wifi-mld section:

config wifi-mld 'ap_mld_123'
	option ssid 'mt76_mlo_michael-123'
	option encryption 'sae'
	option key '12345678'
	option ifname 'ap-mld-123'
	option mld_id '123'
	option mld_addr '00:00:33:44:92:1b'

The option mld_id connects wifi-mld and wifi-iface section.
Per-MLD options should be set in wifi-mld section, while per-radio or
per-BSS options should be set in wifi-iface section.

[Release-log]
N/A

Change-Id: I1769f56d80e466ff493fb2b5683f6b9abe0aaa94
Reviewed-on: https://gerrit.mediatek.inc/c/openwrt/feeds/mtk_openwrt_feeds/+/8446764
1 file changed