commit 8d3b06502285befbc00334731271236e009ab9e9
parent ef209c305b8a3185ca3dd9525599676f1cb43d24
Author: James Prestwood <prestwoj@gmail.com>
Date: Fri, 13 Sep 2019 11:12:19 -0700
wiphy: fix bits in extended capabilities
The extended capability bits were not being set properly inside
wiphy. Since we build the IE after the wiphy dump the first 2
bytes are the IE type and length. The way we were setting the bits
did not take this into account and were actually setting the
completely wrong bits.
Diffstat:
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/wiphy.c b/src/wiphy.c
@@ -983,14 +983,14 @@ static void wiphy_set_station_capability_bits(struct wiphy *wiphy)
anqp_disabled = true;
/* Set BSS Transition Management */
- util_set_bit(ext_capa, 19);
+ util_set_bit(ext_capa + 2, 19);
/* Set Interworking */
if (!anqp_disabled)
- util_set_bit(ext_capa, 31);
+ util_set_bit(ext_capa + 2, 31);
/* Set FILS */
- util_set_bit(ext_capa, 72);
+ util_set_bit(ext_capa + 2, 72);
}
static void wiphy_setup_rm_enabled_capabilities(struct wiphy *wiphy)