0030-wifi-ath11k-add-channel-177-into-5-GHz-channel-list.patch 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. From e5e94d10c85653609a2893c8d0ef24a27471b68f Mon Sep 17 00:00:00 2001
  2. From: Wen Gong <quic_wgong@quicinc.com>
  3. Date: Tue, 10 Jan 2023 15:30:58 +0200
  4. Subject: [PATCH] wifi: ath11k: add channel 177 into 5 GHz channel list
  5. Add support for the 5 GHz channel 177 with center frequency 5885 MHz and
  6. operating class 125 per IEEE Std 802.11ax-2021, Table E-4.
  7. Tested-on: WCN6855 hw2.0 PCI WLAN.HSP.1.1-03125-QCAHSPSWPL_V1_V2_SILICONZ_LITE-3
  8. Signed-off-by: Wen Gong <quic_wgong@quicinc.com>
  9. Signed-off-by: Kalle Valo <quic_kvalo@quicinc.com>
  10. Link: https://lore.kernel.org/r/20221220101912.30816-1-quic_wgong@quicinc.com
  11. ---
  12. drivers/net/wireless/ath/ath11k/core.h | 4 ++--
  13. drivers/net/wireless/ath/ath11k/mac.c | 1 +
  14. 2 files changed, 3 insertions(+), 2 deletions(-)
  15. --- a/drivers/net/wireless/ath/ath11k/core.h
  16. +++ b/drivers/net/wireless/ath/ath11k/core.h
  17. @@ -521,8 +521,8 @@ struct ath11k_sta {
  18. #define ATH11K_MIN_5G_FREQ 4150
  19. #define ATH11K_MIN_6G_FREQ 5925
  20. #define ATH11K_MAX_6G_FREQ 7115
  21. -#define ATH11K_NUM_CHANS 101
  22. -#define ATH11K_MAX_5G_CHAN 173
  23. +#define ATH11K_NUM_CHANS 102
  24. +#define ATH11K_MAX_5G_CHAN 177
  25. enum ath11k_state {
  26. ATH11K_STATE_OFF,
  27. --- a/drivers/net/wireless/ath/ath11k/mac.c
  28. +++ b/drivers/net/wireless/ath/ath11k/mac.c
  29. @@ -96,6 +96,7 @@ static const struct ieee80211_channel at
  30. CHAN5G(165, 5825, 0),
  31. CHAN5G(169, 5845, 0),
  32. CHAN5G(173, 5865, 0),
  33. + CHAN5G(177, 5885, 0),
  34. };
  35. static const struct ieee80211_channel ath11k_6ghz_channels[] = {