]> git.ipfire.org Git - thirdparty/linux.git/commit
wifi: ath11k: support 2 station interfaces
authorCarl Huang <quic_cjhuang@quicinc.com>
Wed, 14 Feb 2024 08:38:10 +0000 (10:38 +0200)
committerKalle Valo <quic_kvalo@quicinc.com>
Thu, 15 Feb 2024 11:22:46 +0000 (13:22 +0200)
commitf019f4dff2e4cb8704dc608496e3f2829de3e919
tree3101c9b0538a21ec9cc603a3be12d23021bdeffc
parentf0024c980df2547224a5b0843bbe96d26eb5b601
wifi: ath11k: support 2 station interfaces

Add hardware parameter support_dual_stations to indicate whether 2 station
interfaces are supported. For chips which support this feature, limit total
number of AP interface and mesh point to 1. The max interfaces are 3 for such
chips.

The chips affected are:

 QCA6390 hw2.0
 WCN6855 hw2.0
 WCN6855 hw2.1

Other chips are not affected.

For affected chips, remove radar_detect_widths because now
num_different_channels is set to 2. radar_detect_widths can be set only when
num_different_channels is 1, see mac80211 function wiphy_verify_combinations
for details. This means that in affectected chips DFS cannot be enabled in AP
mode.

Tested-on: WCN6855 hw2.0 PCI WLAN.HSP.1.1-03125-QCAHSPSWPL_V1_V2_SILICONZ_LITE-3

Signed-off-by: Carl Huang <quic_cjhuang@quicinc.com>
Signed-off-by: Kalle Valo <quic_kvalo@quicinc.com>
Link: https://msgid.link/20230714023801.2621802-2-quic_cjhuang@quicinc.com
drivers/net/wireless/ath/ath11k/core.c
drivers/net/wireless/ath/ath11k/hw.c
drivers/net/wireless/ath/ath11k/hw.h
drivers/net/wireless/ath/ath11k/mac.c