[][MAC80211][mt76][convert mwctl set command to hostapd_cli]
[Description]
Change the command "iwpriv/mwctl phy0 set xxx" to "hostapd_cli -i phy0 set xxx".
This change is to support the input command of mt7996 sigma tool.
[Release-log]
N/A
Change-Id: I1323abdbd3e37b3864ef113787d77c39bbc67d69
Reviewed-on: https://gerrit.mediatek.inc/c/openwrt/feeds/mtk_openwrt_feeds/+/7113035
diff --git a/feed/atenl/files/iwpriv.sh b/feed/atenl/files/iwpriv.sh
index fd25212..333852d 100755
--- a/feed/atenl/files/iwpriv.sh
+++ b/feed/atenl/files/iwpriv.sh
@@ -1122,8 +1122,12 @@
## Therefore this wrapper would translate it to either mt76-test or mt76-vendor based on the attribute of the command
## Translate to mt76-vendor command
"csi"|"amnt"|"ap_rfeatures"|"ap_wireless"|"hemu")
- do_cmd "mt76-vendor $*"
- skip=1
+ if [ ${is_eagle} == "1" ]; then
+ do_cmd "hostapd_cli -i $*"
+ skip=1
+ else
+ do_cmd "mt76-vendor $*"
+ skip=1
;;
"ATE")
do_ate_work ${param}