From eee6e7db296e744f3bcd09bedd597510db771fee Mon Sep 17 00:00:00 2001 From: Denis Kenzior Date: Wed, 10 Jun 2015 11:33:17 -0500 Subject: [PATCH] monitor: Fix mandatory calculation in ie_rate The high-order bit should be checked, not the 3rd bit. --- monitor/nlmon.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/monitor/nlmon.c b/monitor/nlmon.c index 8c9e15fd..7d049eb8 100644 --- a/monitor/nlmon.c +++ b/monitor/nlmon.c @@ -359,7 +359,7 @@ static void print_ie_rate(unsigned int level, const char *label, print_attr(level, "%s:", label); while (i < size) { - bool mandatory = (rate[i] & 0x8); + bool mandatory = (rate[i] & 0x80); if (rate[i] == 0xff) { print_attr(level + 1, "BSS membership HT_PHY");