commit bc3d285c5e81211aa3a46263a5a6f31ca2980e7b
parent f89270325fd60a0695951066bae602abb49026d1
Author: James Prestwood <prestwoj@gmail.com>
Date: Wed, 10 Mar 2021 12:27:41 -0800
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.
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git 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;