Merge pull request #12771 from kyle-cypress/pr/cypress-backport-whd-assert

Cypress: Partial backport of #12769
pull/12780/head
Martin Kojtal 2020-04-08 15:18:31 +02:00 committed by GitHub
commit 3db7cd42da
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

View File

@ -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;
}