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.

pull/12769/head
midd 2020-04-06 15:00:57 -07:00
parent 4b3cddff2a
commit 0504873255
1 changed files with 1 additions and 2 deletions
features/netsocket/emac-drivers/TARGET_Cypress/COMPONENT_WHD/interface

View File

@ -399,7 +399,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);
@ -408,7 +407,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;
}