mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-12-22 21:12:48 +01:00
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:
parent
ef209c305b
commit
8d3b065022
@ -983,14 +983,14 @@ static void wiphy_set_station_capability_bits(struct wiphy *wiphy)
|
|||||||
anqp_disabled = true;
|
anqp_disabled = true;
|
||||||
|
|
||||||
/* Set BSS Transition Management */
|
/* Set BSS Transition Management */
|
||||||
util_set_bit(ext_capa, 19);
|
util_set_bit(ext_capa + 2, 19);
|
||||||
|
|
||||||
/* Set Interworking */
|
/* Set Interworking */
|
||||||
if (!anqp_disabled)
|
if (!anqp_disabled)
|
||||||
util_set_bit(ext_capa, 31);
|
util_set_bit(ext_capa + 2, 31);
|
||||||
|
|
||||||
/* Set FILS */
|
/* 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)
|
static void wiphy_setup_rm_enabled_capabilities(struct wiphy *wiphy)
|
||||||
|
Loading…
Reference in New Issue
Block a user