netdev: parse SIGNAL_AVG when building diagnostics object

This commit is contained in:
James Prestwood 2021-03-16 08:38:35 -07:00 committed by Denis Kenzior
parent fb0a1fba2a
commit 5033b5a24d
1 changed files with 8 additions and 0 deletions

View File

@ -452,6 +452,14 @@ static bool netdev_parse_sta_info(struct l_genl_attr *attr,
info->cur_rssi = *(const int8_t *) data;
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))