From 57aa42bb43ae60b7212cbdc9d1b4d7aaf66817d3 Mon Sep 17 00:00:00 2001 From: muhaidong Date: Thu, 9 Oct 2025 16:48:52 +0800 Subject: [PATCH] fix(phy): fix cmd get_rx_result log error issue --- components/esp_phy/include/esp_phy_cert_test.h | 6 +++--- examples/phy/cert_test/README.md | 2 +- examples/phy/cert_test/main/cmd_phy.c | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/components/esp_phy/include/esp_phy_cert_test.h b/components/esp_phy/include/esp_phy_cert_test.h index ab6041dcb5..a354ab8547 100644 --- a/components/esp_phy/include/esp_phy_cert_test.h +++ b/components/esp_phy/include/esp_phy_cert_test.h @@ -20,7 +20,7 @@ typedef enum { PHY_RATE_2M = 0x1, PHY_RATE_5M5 = 0x2, PHY_RATE_11M = 0x3, - //11g + //11g,11a PHY_RATE_6M = 0xb, PHY_RATE_9M = 0xf, PHY_RATE_12M = 0xa, @@ -38,7 +38,7 @@ typedef enum { PHY_RATE_MCS5 = 0x15, PHY_RATE_MCS6 = 0x16, PHY_RATE_MCS7 = 0x17, - // 11ax + //11ax PHY_RATE_11AX_MCS0 = 0x20, PHY_RATE_11AX_MCS1 = 0x21, PHY_RATE_11AX_MCS2 = 0x22, @@ -49,7 +49,7 @@ typedef enum { PHY_RATE_11AX_MCS7 = 0x27, PHY_RATE_11AX_MCS8 = 0x28, PHY_RATE_11AX_MCS9 = 0x29, - //VHT + //11ac PHY_RATE_VHT_MCS0 = 0x30, PHY_RATE_VHT_MCS1 = 0x31, PHY_RATE_VHT_MCS2 = 0x32, diff --git a/examples/phy/cert_test/README.md b/examples/phy/cert_test/README.md index e75ba038ec..5564c13ce2 100644 --- a/examples/phy/cert_test/README.md +++ b/examples/phy/cert_test/README.md @@ -99,7 +99,7 @@ phy> cmdstop I (130260) phy: rx_num: 0 rx_rssi: 0 phy> phy> get_rx_result -I (139550) cmd_phy: Desired: 0, Correct: 0, RSSI: 0, flag: 2 +I (139550) cmd_phy: Correct: 0, Desired: 0, RSSI: 0, flag: 2 phy> phy> bt_tx_tone -e 1 -n 1 -p 0 I (151900) phy: BT TX TONE START! diff --git a/examples/phy/cert_test/main/cmd_phy.c b/examples/phy/cert_test/main/cmd_phy.c index 343d7e461f..d9fb47ef39 100644 --- a/examples/phy/cert_test/main/cmd_phy.c +++ b/examples/phy/cert_test/main/cmd_phy.c @@ -82,7 +82,7 @@ static int esp_phy_get_rx_result_func(int argc, char **argv) esp_phy_get_rx_result(&rx_result); - ESP_LOGI(TAG, "Desired: %lu, Correct: %lu, RSSI: %d, flag: %lu", rx_result.phy_rx_total_count, + ESP_LOGI(TAG, "Correct: %lu, Desired: %lu, RSSI: %d, flag: %lu", rx_result.phy_rx_total_count, rx_result.phy_rx_correct_count, rx_result.phy_rx_rssi, rx_result.phy_rx_result_flag); return 0;