[][MAC80211][WiFi7][app][Add cert sigma cmd single mld support]

[Description]
Add cert sigma cmd single mld support

[Release-log]
N/A

Change-Id: I28056eccef14ce9ff640d45e4294dac337f6feb2
Reviewed-on: https://gerrit.mediatek.inc/c/openwrt/feeds/mtk_openwrt_feeds/+/9075652
diff --git a/feed/app/atenl/files/iwpriv.sh b/feed/app/atenl/files/iwpriv.sh
index 5fd17c0..c2b2b88 100755
--- a/feed/app/atenl/files/iwpriv.sh
+++ b/feed/app/atenl/files/iwpriv.sh
@@ -1207,6 +1207,7 @@
 
 cmd=$(echo ${full_cmd} | sed s/=/' '/g | cut -d " " -f 1)
 param=$(echo ${full_cmd} | sed s/=/' '/g | cut -d " " -f 2)
+mld=$(iw dev | grep 'link ID')
 
 if [ "${cmd_type}" = "set" ]; then
     skip=0
@@ -1215,11 +1216,16 @@
         ## 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"|"mu"|"set_muru_manual_config")
+            cert_cmd="$*"
+            if [ ! -z "$mld" ]; then
+                mld_interface=$(iw dev | grep Interface | awk '{print $2}')
+                cert_cmd="$(echo $* | sed 's/band[0-9]/${mld_interface}/')"
+            fi
             if [ ${is_connac3} == "1" ]; then
-                hostapd_cmd="$(echo $* | sed 's/set/raw/')"
+                hostapd_cmd="$(echo $cert_cmd | sed 's/set/raw/')"
                 do_cmd "hostapd_cli -i $hostapd_cmd"
             else
-                do_cmd "mt76-vendor $*"
+                do_cmd "mt76-vendor $cert_cmd"
             fi
             skip=1
             ;;