From d55117f2aaecd099afb222137cada97d33dd0c7e Mon Sep 17 00:00:00 2001 From: midd Date: Mon, 6 Apr 2020 15:00:57 -0700 Subject: [PATCH] WHD: Remove an assert from get_rssi() This assert in WhdSTAInterface.cpp causes rssi greentea test to fail on Cypress parts. This is because the rssi GT test expects the negative test case to return 0 and not assert. --- .../TARGET_Cypress/COMPONENT_WHD/interface/WhdSTAInterface.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/features/netsocket/emac-drivers/TARGET_Cypress/COMPONENT_WHD/interface/WhdSTAInterface.cpp b/features/netsocket/emac-drivers/TARGET_Cypress/COMPONENT_WHD/interface/WhdSTAInterface.cpp index 0995b10145..1cbe7ebc2a 100644 --- a/features/netsocket/emac-drivers/TARGET_Cypress/COMPONENT_WHD/interface/WhdSTAInterface.cpp +++ b/features/netsocket/emac-drivers/TARGET_Cypress/COMPONENT_WHD/interface/WhdSTAInterface.cpp @@ -377,7 +377,6 @@ int8_t WhdSTAInterface::get_rssi() int32_t rssi; whd_result_t res; - // initialize wiced, this is noop if already init if (!_whd_emac.powered_up) { if(!_whd_emac.power_up()) { CY_ASSERT(false); @@ -386,7 +385,7 @@ int8_t WhdSTAInterface::get_rssi() res = (whd_result_t)whd_wifi_get_rssi(_whd_emac.ifp, &rssi); if (res != 0) { - CY_ASSERT(false); + /* The network GT tests expect that this function should return 0 in case of an error and not assert */ return 0; }