Skip to content

Commit 3db7cd4

Browse files
authored
Merge pull request #12771 from kyle-cypress/pr/cypress-backport-whd-assert
Cypress: Partial backport of #12769
2 parents 067d7eb + d55117f commit 3db7cd4

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

features/netsocket/emac-drivers/TARGET_Cypress/COMPONENT_WHD/interface/WhdSTAInterface.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -377,7 +377,6 @@ int8_t WhdSTAInterface::get_rssi()
377377
int32_t rssi;
378378
whd_result_t res;
379379

380-
// initialize wiced, this is noop if already init
381380
if (!_whd_emac.powered_up) {
382381
if(!_whd_emac.power_up()) {
383382
CY_ASSERT(false);
@@ -386,7 +385,7 @@ int8_t WhdSTAInterface::get_rssi()
386385

387386
res = (whd_result_t)whd_wifi_get_rssi(_whd_emac.ifp, &rssi);
388387
if (res != 0) {
389-
CY_ASSERT(false);
388+
/* The network GT tests expect that this function should return 0 in case of an error and not assert */
390389
return 0;
391390
}
392391

0 commit comments

Comments
 (0)