]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
wifi: iwlwifi: mld: force the responder to use the full bandwidth
authorAvraham Stern <avraham.stern@intel.com>
Wed, 30 Apr 2025 12:57:25 +0000 (15:57 +0300)
committerMiri Korenblit <miriam.rachel.korenblit@intel.com>
Tue, 6 May 2025 19:22:11 +0000 (22:22 +0300)
When a soft AP is started, it may not use the full configured
bandwidth (e.g. if no station is connected). As a result, the
responder will not support the configured bandwidth. Since the
responder supports ranging with unassociated stations, there is
no indication to the driver when the full bandwidth should be enabled.
Fix it by configuring the AP to always use the full bandwidth when a
responder is supported.

Signed-off-by: Avraham Stern <avraham.stern@intel.com>
Reviewed-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com>
Link: https://patch.msgid.link/20250430155443.620fe8099fff.Id50675f4d4c524b0a7ee602c48af538a327010e0@changeid
drivers/net/wireless/intel/iwlwifi/mld/phy.c

index 3a80ee5e1cb38c7efee22aa14fb0e2c14d12139b..d5a32ee56b92fc8af4db4a341b196f5efe7dfb21 100644 (file)
@@ -50,6 +50,9 @@ static void iwl_mld_chanctx_usage_iter(void *_data, u8 *mac,
                if (rcu_access_pointer(link_conf->chanctx_conf) != data->ctx)
                        continue;
 
+               if (vif->type == NL80211_IFTYPE_AP && link_conf->ftm_responder)
+                       data->use_def = true;
+
                if (iwl_mld_chanctx_fils_enabled(vif, data->ctx))
                        data->use_def = true;
        }