Skip to content

Commit d55117f

Browse files
cypress-middKyle Kearney
authored andcommitted
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.
1 parent e1d7b5a commit d55117f

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)