3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-11-22 23:09:34 +01:00

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

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;