netdev: use NL80211_STA_INFO_SIGNAL rather than average

Since GET_STATION (and in turn GetDiagnostics) gets the most
current station info this attribute serves as a better indication
of the current signal strength. In addition full mac cards don't
appear to always have the average attribute.
This commit is contained in:
James Prestwood 2021-03-10 12:27:41 -08:00 committed by Denis Kenzior
parent f89270325f
commit bc3d285c5e
1 changed files with 1 additions and 1 deletions

View File

@ -443,7 +443,7 @@ static bool netdev_parse_sta_info(struct l_genl_attr *attr,
while (l_genl_attr_next(attr, &type, &len, &data)) {
switch (type) {
case NL80211_STA_INFO_SIGNAL_AVG:
case NL80211_STA_INFO_SIGNAL:
if (len != 1)
return false;