mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-11-26 18:59:22 +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:
parent
f89270325f
commit
bc3d285c5e
@ -443,7 +443,7 @@ static bool netdev_parse_sta_info(struct l_genl_attr *attr,
|
|||||||
|
|
||||||
while (l_genl_attr_next(attr, &type, &len, &data)) {
|
while (l_genl_attr_next(attr, &type, &len, &data)) {
|
||||||
switch (type) {
|
switch (type) {
|
||||||
case NL80211_STA_INFO_SIGNAL_AVG:
|
case NL80211_STA_INFO_SIGNAL:
|
||||||
if (len != 1)
|
if (len != 1)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user