Skip to content

Commit 0504873

Browse files
committed
Remove an assert from get_rssi() in WhdSTAInterface.cpp which causes rssi greentea test to fail in Cypress parts. This is because the rssi GT test expect the negative test case to return 0 and not assert.
1 parent 4b3cddf commit 0504873

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
@@ -399,7 +399,6 @@ int8_t WhdSTAInterface::get_rssi()
399399
int32_t rssi;
400400
whd_result_t res;
401401

402-
// initialize wiced, this is noop if already init
403402
if (!_whd_emac.powered_up) {
404403
if(!_whd_emac.power_up()) {
405404
CY_ASSERT(false);
@@ -408,7 +407,7 @@ int8_t WhdSTAInterface::get_rssi()
408407

409408
res = (whd_result_t)whd_wifi_get_rssi(_whd_emac.ifp, &rssi);
410409
if (res != 0) {
411-
CY_ASSERT(false);
410+
/* The network GT tests expect that this function should return 0 in case of an error and not assert */
412411
return 0;
413412
}
414413

0 commit comments

Comments
 (0)