From f002e7a73279fb55049d30e4ae1605de290e7025 Mon Sep 17 00:00:00 2001 From: "tarun.kumar" Date: Fri, 24 Oct 2025 23:58:00 +0530 Subject: [PATCH] fix(ci) : Fix offchan tx and roc related unit test case --- components/wpa_supplicant/test_apps/main/test_offchannel.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/wpa_supplicant/test_apps/main/test_offchannel.c b/components/wpa_supplicant/test_apps/main/test_offchannel.c index 6ccb9b843a1..300c52c49c7 100644 --- a/components/wpa_supplicant/test_apps/main/test_offchannel.c +++ b/components/wpa_supplicant/test_apps/main/test_offchannel.c @@ -252,9 +252,9 @@ static void test_wifi_roc(void) pdTRUE, pdFALSE, portMAX_DELAY); /* Confirm that Frame has been received successfully */ if (bits == WIFI_ACTION_RX_EVENT) { - wifi_roc_req_t req = {0}; - req.ifx = WIFI_IF_STA; + /* op_id is retained from previous ROC request */ req.type = WIFI_ROC_CANCEL; + req.rx_cb = NULL; TEST_ESP_OK(esp_wifi_remain_on_channel(&req)); vTaskDelay(1000 / portTICK_PERIOD_MS);