From 8d3b06502285befbc00334731271236e009ab9e9 Mon Sep 17 00:00:00 2001 From: James Prestwood Date: Fri, 13 Sep 2019 11:12:19 -0700 Subject: [PATCH] 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. --- src/wiphy.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/wiphy.c b/src/wiphy.c index d3bfddcf..611c0701 100644 --- 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)