Skip to content

Commit

Permalink
nrf_wifi: Fix rssi API call when promiscuous mode is enabled
Browse files Browse the repository at this point in the history
when promiscuous mode is enabled, the rssi callback in driver is
not invoked for station connected profile. Invoke the rssi callback
only when packet is received for the station connected profile.

Fixes SHEL-3255

Signed-off-by: Vivekananda Uppunda <vivekananda.uppunda@nordicsemi.no>
  • Loading branch information
VivekUppunda committed Nov 19, 2024
1 parent 5c8d109 commit 9911144
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions drivers/nrf_wifi/fw_if/umac_if/src/rx.c
Original file line number Diff line number Diff line change
Expand Up @@ -235,8 +235,10 @@ enum nrf_wifi_status nrf_wifi_fmac_rx_event_process(struct nrf_wifi_fmac_dev_ctx
vif_ctx = def_dev_ctx->vif_ctx[config->wdev_id];

#ifdef NRF70_STA_MODE
def_priv->callbk_fns.process_rssi_from_rx(vif_ctx->os_vif_ctx,
config->signal);
if (config->rx_pkt_type != NRF_WIFI_RAW_RX_PKT) {
def_priv->callbk_fns.process_rssi_from_rx(vif_ctx->os_vif_ctx,
config->signal);
}
#endif /* NRF70_STA_MODE */
num_pkts = config->rx_pkt_cnt;

Expand Down

0 comments on commit 9911144

Please # to comment.