Skip to content

Commit

Permalink
drivers: siwx917_wifi: Report RSSI in iface_status()
Browse files Browse the repository at this point in the history
RSSI is easy to report.

Signed-off-by: Jérôme Pouiller <[email protected]>
  • Loading branch information
jerome-pouiller committed Sep 19, 2024
1 parent ed18269 commit ee6866e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drivers/wifi/siwx917/siwx917_wifi.c
Original file line number Diff line number Diff line change
Expand Up @@ -278,9 +278,12 @@ static int siwx917_scan(const struct device *dev, struct wifi_scan_params *z_sca
static int siwx917_status(const struct device *dev, struct wifi_iface_status *status)
{
struct siwx917_dev *sidev = dev->data;
int32_t rssi = -1;

memset(status, 0, sizeof(*status));
status->state = sidev->state;
sl_wifi_get_signal_strength(SL_WIFI_CLIENT_INTERFACE, &rssi);
status->rssi = rssi;
return 0;
}

Expand Down

0 comments on commit ee6866e

Please sign in to comment.