mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2025-01-24 05:14:05 +01:00
netdev: parse SIGNAL_AVG when building diagnostics object
This commit is contained in:
parent
fb0a1fba2a
commit
5033b5a24d
@ -452,6 +452,14 @@ static bool netdev_parse_sta_info(struct l_genl_attr *attr,
|
|||||||
info->cur_rssi = *(const int8_t *) data;
|
info->cur_rssi = *(const int8_t *) data;
|
||||||
info->have_cur_rssi = true;
|
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;
|
break;
|
||||||
case NL80211_STA_INFO_RX_BITRATE:
|
case NL80211_STA_INFO_RX_BITRATE:
|
||||||
if (!l_genl_attr_recurse(attr, &nested))
|
if (!l_genl_attr_recurse(attr, &nested))
|
||||||
|
Loading…
Reference in New Issue
Block a user