nl80211: fix UNSPEC signal quality reporting
Dan Williams
dcbw
Mon Nov 14 16:35:39 PST 2011
r->level got assigned so it's clearly not INVALID; instead
r->qual should be invalid.
Signed-hostap: Dan Williams <dcbw at redhat.com>
---
src/drivers/driver_nl80211.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
Candidate for 1.0 and 0.7.x too.
diff --git a/src/drivers/driver_nl80211.c b/src/drivers/driver_nl80211.c
index 0f7447b..3e9701c 100644
--- a/src/drivers/driver_nl80211.c
+++ b/src/drivers/driver_nl80211.c
@@ -3040,7 +3040,7 @@ static int bss_info_handler(struct nl_msg *msg, void *arg)
r->flags |= WPA_SCAN_LEVEL_DBM | WPA_SCAN_QUAL_INVALID;
} else if (bss[NL80211_BSS_SIGNAL_UNSPEC]) {
r->level = nla_get_u8(bss[NL80211_BSS_SIGNAL_UNSPEC]);
- r->flags |= WPA_SCAN_LEVEL_INVALID;
+ r->flags |= WPA_SCAN_QUAL_INVALID;
} else
r->flags |= WPA_SCAN_LEVEL_INVALID | WPA_SCAN_QUAL_INVALID;
if (bss[NL80211_BSS_TSF])
--
1.7.7.1
More information about the Hostap
mailing list