netdev: Always send RM Enabled Capabilities

If the driver supports RRM, then we might as well always send the RM
Enabled Capabilities IE (and use the USE_RRM flag).  802.11-2020
suggests that this IE can be sent whenever
dot11RadioMeasurementActivated is true, and this setting is independent
of whether the peer supports RRM.  There's nothing to indicate that an
STA should not send these IEs if the AP is not RRM enabled.
This commit is contained in:
Denis Kenzior 2021-08-05 15:49:46 -05:00
parent aa7845ca98
commit 289b8826bf
1 changed files with 1 additions and 1 deletions

View File

@ -2914,7 +2914,7 @@ static struct l_genl_msg *netdev_build_cmd_connect(struct netdev *netdev,
rm_enabled_capabilities =
wiphy_get_rm_enabled_capabilities(netdev->wiphy);
if (rm_enabled_capabilities && bss->capability & IE_BSS_CAP_RM) {
if (rm_enabled_capabilities) {
iov[iov_elems].iov_base = (void *) rm_enabled_capabilities;
iov[iov_elems].iov_len = rm_enabled_capabilities[1] + 2;
iov_elems += 1;