public inbox for linux-wireless@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] wifi: ath11k: allow APs combination when dual stations are supported
@ 2024-12-02  9:18 Jose Ignacio Tornos Martinez
  2024-12-03  1:54 ` Yu Zhang (Yuriy)
  0 siblings, 1 reply; 36+ messages in thread
From: Jose Ignacio Tornos Martinez @ 2024-12-02  9:18 UTC (permalink / raw)
  To: kvalo, jjohnson, linux-wireless, ath11k, linux-kernel
  Cc: quic_cjhuang, jtornosm, Vladimir Benes

Since commit f019f4dff2e4 ("wifi: ath11k: support 2 station interfaces"),
if dual stations are supported for a device, we can not configure more that
one AP and/or DFS cannot be enabled.

Enable this by creating a new parameter (ignore_support_dual_stations) to
ignore this feature if it is convenient. Default behavior is to support
dual stations if possible.

Reported-by: Vladimir Benes <vbenes@redhat.com>
Signed-off-by: Jose Ignacio Tornos Martinez <jtornosm@redhat.com>
---
 drivers/net/wireless/ath/ath11k/core.c | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/drivers/net/wireless/ath/ath11k/core.c b/drivers/net/wireless/ath/ath11k/core.c
index be67382c00f6..55c7a55d85ff 100644
--- a/drivers/net/wireless/ath/ath11k/core.c
+++ b/drivers/net/wireless/ath/ath11k/core.c
@@ -37,6 +37,12 @@ bool ath11k_ftm_mode;
 module_param_named(ftm_mode, ath11k_ftm_mode, bool, 0444);
 MODULE_PARM_DESC(ftm_mode, "Boots up in factory test mode");
 
+static bool ath11k_ignore_support_dual_stations;
+module_param_named(ignore_support_dual_stations,
+		   ath11k_ignore_support_dual_stations, bool, 0644);
+MODULE_PARM_DESC(ignore_support_dual_stations,
+		 "Ignore the support for dual stations to support other combinations");
+
 static const struct ath11k_hw_params ath11k_hw_params[] = {
 	{
 		.hw_rev = ATH11K_HW_IPQ8074,
@@ -2162,6 +2168,9 @@ static int ath11k_init_hw_params(struct ath11k_base *ab)
 	}
 
 	ab->hw_params = *hw_params;
+	if (ab->hw_params.support_dual_stations &&
+	    ath11k_ignore_support_dual_stations)
+		ab->hw_params.support_dual_stations  = false;
 
 	ath11k_info(ab, "%s\n", ab->hw_params.name);
 
-- 
2.47.0


^ permalink raw reply related	[flat|nested] 36+ messages in thread

end of thread, other threads:[~2025-04-02 12:23 UTC | newest]

Thread overview: 36+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-12-02  9:18 [PATCH] wifi: ath11k: allow APs combination when dual stations are supported Jose Ignacio Tornos Martinez
2024-12-03  1:54 ` Yu Zhang (Yuriy)
2024-12-03  8:04   ` Jose Ignacio Tornos Martinez
2024-12-03  8:28     ` Yu Zhang (Yuriy)
2024-12-03  9:48       ` Jose Ignacio Tornos Martinez
2024-12-03 10:48         ` Yu Zhang (Yuriy)
2024-12-03 16:33           ` Jose Ignacio Tornos Martinez
2024-12-04  3:21             ` Yu Zhang (Yuriy)
2024-12-04  7:51               ` Jose Ignacio Tornos Martinez
2024-12-04  8:30                 ` Jose Ignacio Tornos Martinez
2024-12-04  9:18                 ` Yu Zhang (Yuriy)
2024-12-05 11:07                   ` Jose Ignacio Tornos Martinez
2024-12-06  2:24                     ` Yu Zhang (Yuriy)
2024-12-08 12:13                       ` Jose Ignacio Tornos Martinez
2024-12-09  2:29                         ` Yu Zhang (Yuriy)
2024-12-09  8:03                           ` Jose Ignacio Tornos Martinez
2024-12-09  8:33                             ` Yu Zhang (Yuriy)
2024-12-10  8:44                               ` Jose Ignacio Tornos Martinez
2024-12-11  2:10                                 ` Yu Zhang (Yuriy)
2024-12-11 17:41                                   ` Jose Ignacio Tornos Martinez
2025-01-14 18:34                                     ` Jose Ignacio Tornos Martinez
2025-01-15  8:59                                       ` Yu Zhang (Yuriy)
2025-01-15  9:46                                         ` Jose Ignacio Tornos Martinez
2025-01-15 10:48                                           ` Yu Zhang (Yuriy)
2025-01-15 11:06                                             ` Jose Ignacio Tornos Martinez
2025-01-15 11:20                                               ` Yu Zhang (Yuriy)
2025-01-15 11:55                                                 ` Jose Ignacio Tornos Martinez
2025-01-15 12:04                                                   ` Yu Zhang (Yuriy)
2025-01-15 13:03                                                     ` Jose Ignacio Tornos Martinez
2025-01-16  0:31                                                       ` Jeff Johnson
2025-02-06  7:46                                                         ` Yu Zhang (Yuriy)
2025-02-06 20:20                                                           ` Jeff Johnson
2025-02-07  2:01                                                             ` Yu Zhang (Yuriy)
2025-04-02 12:23                                                         ` Yu Zhang (Yuriy)
2024-12-09 11:23           ` Janusz Dziedzic
2024-12-10  2:32             ` Yu Zhang (Yuriy)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox