wifi: iwlwifi: mld: force the responder to use the full bandwidth

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
This commit is contained in:
Avraham Stern 2025-04-30 15:57:25 +03:00 committed by Miri Korenblit
parent 94f086a4db
commit ac5215a7d1

View 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;
}