Skip to content

Commit dd5d993

Browse files
krish2718rlubos
authored andcommitted
[nrf fromlist] drivers: nrf_wifi: Workaround for failing tests
Test automation framework fails if there are any error prints, and we had seen issues with networking that sends packets to the driver before the assocation is up (either not checking dormant status or in a window where dormant status is being updated). Add a workaround to suppress the print till the issue root cause is fixed. Upstream PR #: 97183 Signed-off-by: Chaitanya Tata <[email protected]>
1 parent c063db3 commit dd5d993

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

drivers/wifi/nrf_wifi/src/net_if.c

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -441,11 +441,16 @@ int nrf_wifi_if_send(const struct device *dev,
441441
ra = nrf_wifi_util_get_ra(sys_dev_ctx->vif_ctx[vif_ctx_zep->vif_idx], nbuf);
442442
peer_id = nrf_wifi_fmac_peer_get_id(rpu_ctx_zep->rpu_ctx, ra);
443443
if (peer_id == -1) {
444+
/* TODO: Make this an error once we fix ping_work sending packets despite
445+
* the interface being dormant
446+
*/
447+
#if CONFIG_WIFI_NRF70_LOG_LEVEL >= LOG_LEVEL_DBG
444448
char ra_buf[18] = {0};
445449

446-
LOG_ERR("%s: Got packet for unknown PEER: %s", __func__,
450+
LOG_DBG("%s: Got packet for unknown PEER: %s", __func__,
447451
nrf_wifi_sprint_ll_addr_buf(ra, 6, ra_buf,
448452
sizeof(ra_buf)));
453+
#endif
449454
goto drop;
450455
}
451456

0 commit comments

Comments
 (0)