[][MAC80211][hostapd][Add mtk vendor subcmd EDCCA control]

Add vendor command to control EDCCA enable/threshold/compensation.

Support three configuration into hostapd configuration file.
1. edcca_enable=0
2. edcca_compensation=5
3. edcca_threhols=xx yy zz

The config "edcca_enable" is used to config the opeation mode of EDCCA.
The value 0 means force disable and 1 means auto mode.
The config "edcca_compensation" is used to adjust the EDCCA threshold.
Please noted that compensate value is only applied for 6g band
The config "edcca_threshold" is used to config EDCCA threhsold when
interface up.

hostapd_cli command usage:

hostapd_cli -i <interface> raw SET_EDCCA [mode|compensation|threshold]
* This command is used to configure EDCCA mode, compensatation or
* threshold.

hostapd_cli -i <interface> raw GET_EDCCA [mode|compensation|threshold]
* This command is used to check current EDCCA configuration in hostapd.


Change-Id: Iefe6e82a35fb22ad8c1a87bf50bc6ad60d61fa32
Reviewed-on: https://gerrit.mediatek.inc/c/openwrt/feeds/mtk_openwrt_feeds/+/6756359
6 files changed