From bc3d285c5e81211aa3a46263a5a6f31ca2980e7b Mon Sep 17 00:00:00 2001 From: James Prestwood Date: Wed, 10 Mar 2021 12:27:41 -0800 Subject: [PATCH] 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. --- src/netdev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/netdev.c b/src/netdev.c index c5028b5c..620f52ff 100644 --- a/src/netdev.c +++ b/src/netdev.c @@ -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;