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.
This commit is contained in:
James Prestwood 2019-09-13 11:12:19 -07:00 committed by Denis Kenzior
parent ef209c305b
commit 8d3b065022
1 changed files with 3 additions and 3 deletions

View File

@ -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)