[][MAC80211][mt76][Implement pre-cal support in testmode]
[Description]
Add atenl and mt76-test commands for getting pre-cal data.
[Release-log]
N/A
Change-Id: Ib113465d0ce1c8e9c8d5461e6911ba26c0afde1c
Reviewed-on: https://gerrit.mediatek.inc/c/openwrt/feeds/mtk_openwrt_feeds/+/6365523
diff --git a/feed/atenl/files/iwpriv.sh b/feed/atenl/files/iwpriv.sh
index 3648780..95788a5 100755
--- a/feed/atenl/files/iwpriv.sh
+++ b/feed/atenl/files/iwpriv.sh
@@ -1,7 +1,7 @@
#!/bin/ash
-interface=$1 # phy0/phy1/ra0
-cmd_type=$2 # set/show/e2p/mac
+interface=$1 # phy0/phy1/ra0
+cmd_type=$2 # set/show/e2p/mac
full_cmd=$3
interface_ori=${interface}
@@ -601,6 +601,36 @@
"TXCONT")
do_cmd "mt76-test ${interface} set state=tx_cont"
;;
+ "GROUPREK")
+ do_cmd "mt76-test ${interface} set state=group_prek"
+ do_cmd "atenl -i ${interface} -c \"eeprom precal sync group\""
+ ;;
+ "GROUPREKDump")
+ do_cmd "mt76-test ${interface} set state=group_prek_dump"
+ ;;
+ "GROUPREKClean")
+ do_cmd "mt76-test ${interface} set state=group_prek_clean"
+ do_cmd "atenl -i ${interface} -c \"eeprom precal group clean\""
+ ;;
+ "DPD2G")
+ do_cmd "mt76-test ${interface} set state=dpd_2g"
+ do_cmd "atenl -i ${interface} -c \"eeprom precal sync dpd 2g\""
+ ;;
+ "DPD5G")
+ do_cmd "mt76-test ${interface} set state=dpd_5g"
+ do_cmd "atenl -i ${interface} -c \"eeprom precal sync dpd 5g\""
+ ;;
+ "DPD6G")
+ do_cmd "mt76-test ${interface} set state=dpd_6g"
+ do_cmd "atenl -i ${interface} -c \"eeprom precal sync dpd 6g\""
+ ;;
+ "DPDDump")
+ do_cmd "mt76-test ${interface} set state=dpd_dump"
+ ;;
+ "DPDClean")
+ do_cmd "mt76-test ${interface} set state=dpd_clean"
+ do_cmd "atenl -i ${interface} -c \"eeprom precal dpd clean\""
+ ;;
*)
print_debug "skip ${ate_cmd}"
;;