commit 5033b5a24d2047586aa00afe92f0940a0bda4c10 parent fb0a1fba2a2f6967272ae115a6badf34f2df0d7a Author: James Prestwood <prestwoj@gmail.com> Date: Tue, 16 Mar 2021 08:38:35 -0700 netdev: parse SIGNAL_AVG when building diagnostics object Diffstat:
| M | src/netdev.c | | | 8 | ++++++++ |
1 file changed, 8 insertions(+), 0 deletions(-)
diff --git a/src/netdev.c b/src/netdev.c @@ -453,6 +453,14 @@ static bool netdev_parse_sta_info(struct l_genl_attr *attr, info->have_cur_rssi = true; break; + case NL80211_STA_INFO_SIGNAL_AVG: + if (len != 1) + return false; + + info->avg_rssi = *(const int8_t *) data; + info->have_avg_rssi = true; + + break; case NL80211_STA_INFO_RX_BITRATE: if (!l_genl_attr_recurse(attr, &nested)) return false;