wifi: ath12k: Fix HE BA mode and extend buffer size for EHT
cover wifi: ath12k: Fix HE BA mode and extend buffer size for EHT
This series addresses two related issues with Block Acknowledgement (BA) configuration for HE and EHT capable links.
Patch 1 fixes a bug where WMI_VDEV_PARAM_BA_MODE was never configured for HE in AP mode. The existing code placed the BA mode configuration inside the he_oper.params check, but mac80211 does not populate he_oper.params for AP mode, so HE AP links never had BA mode set.
Patch 2 builds on the fix by enabling 1024-entry BA buffers for EHT capable links. IEEE 802.11be extends the maximum BA buffer size from 256 (HE) to 1024 MPDUs; without this patch, EHT-capable links were limited to 256.
---
Paulson Raja L (1):
wifi: ath12k: Extend BA buffer size to 1024 for EHT capable links
Rameshkumar Sundaram (1):
wifi: ath12k: Fix HE BA mode configuration for AP mode
drivers/net/wireless/ath/ath12k/mac.c | 41 ++++++++++++++++++++--------------- drivers/net/wireless/ath/ath12k/wmi.h | 1 + 2 files changed, 25 insertions(+), 17 deletions(-)
---
base-commit: b9acb873d035fccc8824164246535ea6fc95c71a
change-id: 20261106-eht-ba-window-5c2df1a8e910
PATCH 1/2 wifi: ath12k: Fix HE BA mode configuration for AP mode
WMI_VDEV_PARAM_BA_MODE is currently configured inside the he_oper.params check. However, mac80211 does not populate he_oper.params for AP mode, causing the BA mode configuration to be skipped for HE AP operation.
Move the BA mode configuration outside the he_oper.params check so that it is applied whenever HE support is enabled.
Without this change, firmware defaults to a BA buffer size of 64 (legacy mode) for HE associations.
Tested-on: QCN9274 hw2.0 PCI WLAN.WBE.1.6-01243-QCAHKSWPL_SILICONZ-1
--- drivers/net/wireless/ath/ath12k/mac.c | 27 +++++++++++++++------------ 1 file changed, 15 insertions(+), 12 deletions(-)
drivers/net/wireless/ath/ath12k/mac.c +15 -12
@@ -4888,8 +4888,7 @@ static void ath12k_mac_bss_info_changed(struct ath12k *ar, }ath12k_control_beaconing (arvif, info); -if (arvif->is_up && info->he_support && - info->he_oper.params) { +if (arvif->is_up && info->he_support) {/* TODO: Extend to support 1024 BA Bitmap size */ ret = ath12k_wmi_vdev_set_param_cmd(ar, arvif->vdev_id, WMI_VDEV_PARAM_BA_MODE,
@@ -4899,17 +4898,21 @@ static void ath12k_mac_bss_info_changed(struct ath12k *ar,"failed to set BA BUFFER SIZE 256 for vdev: %d\n" , arvif->vdev_id); - param_id =WMI_VDEV_PARAM_HEOPS_0_31 ; - param_value = info->he_oper.params; - ret =ath12k_wmi_vdev_set_param_cmd (ar, arvif->vdev_id, - param_id, param_value); -ath12k_dbg (ar->ab,ATH12K_DBG_MAC , -"he oper param: %x set for VDEV: %d\n" , - param_value, arvif->vdev_id); +if (info->he_oper.params) { + param_id =WMI_VDEV_PARAM_HEOPS_0_31 ; + param_value = info->he_oper.params; -if (ret) -ath12k_warn (ar->ab,"Failed to set he oper params %x for VDEV %d: %i\n" , - param_value, arvif->vdev_id, ret); + ret =ath12k_wmi_vdev_set_param_cmd (ar, arvif->vdev_id, + param_id, + param_value); +ath12k_dbg (ar->ab,ATH12K_DBG_MAC , +"he oper param: %x set for VDEV: %d\n" , + param_value, arvif->vdev_id); + +if (ret) +ath12k_warn (ar->ab,"Failed to set he oper params %x for VDEV %d: %i\n" , + param_value, arvif->vdev_id, ret); + } } }
Signature · 1 line
2.34.1
PATCH 2/2 wifi: ath12k: Extend BA buffer size to 1024 for EHT capable links
In reply to Rameshkumar SundaramFrom: Paulson Raja L <[email protected]>
IEEE 802.11be (EHT) extends the maximum BA buffer size from 256 MPDUs (HE) to 1024 MPDUs. EHT-capable links are currently limited to the HE maximum of 256.
Add WMI_BA_MODE_BUFFER_SIZE_1024 and select the buffer size based on the negotiated mode: 1024 for EHT-capable links, 256 for HE-only. Also include the return code when reporting BA mode configuration failure to aid debugging.
Tested-on: QCN9274 hw2.0 PCI WLAN.WBE.1.6-01243-QCAHKSWPL_SILICONZ-1
--- drivers/net/wireless/ath/ath12k/mac.c | 14 +++++++++----- drivers/net/wireless/ath/ath12k/wmi.h | 1 + 2 files changed, 10 insertions(+), 5 deletions(-)
drivers/net/wireless/ath/ath12k/mac.c +9 -5
@@ -4889,14 +4889,18 @@ static void ath12k_mac_bss_info_changed(struct ath12k *ar,ath12k_control_beaconing (arvif, info);if (arvif->is_up && info->he_support) { -/* TODO: Extend to support 1024 BA Bitmap size */ + param_id =WMI_VDEV_PARAM_BA_MODE ; + param_value = info->eht_support ? +WMI_BA_MODE_BUFFER_SIZE_1024 : +WMI_BA_MODE_BUFFER_SIZE_256 ; + ret =ath12k_wmi_vdev_set_param_cmd (ar, arvif->vdev_id, -WMI_VDEV_PARAM_BA_MODE , -WMI_BA_MODE_BUFFER_SIZE_256 ); + param_id, param_value);if (ret)ath12k_warn (ar->ab, -"failed to set BA BUFFER SIZE 256 for vdev: %d\n" , - arvif->vdev_id); +"failed to set BA BUFFER SIZE %u for vdev %d: %d\n" , + info->eht_support ?1024 :256 , + arvif->vdev_id, ret);if (info->he_oper.params) { param_id =WMI_VDEV_PARAM_HEOPS_0_31 ;
drivers/net/wireless/ath/ath12k/wmi.h +1 -0
@@ -171,6 +171,7 @@ struct wmi_tlv {#define WMI_APPEND_TO_EXISTING_CHAN_LIST_FLAG 1#define WMI_BA_MODE_BUFFER_SIZE_256 3 +#define WMI_BA_MODE_BUFFER_SIZE_1024 6/* HW mode config type replicated from FW header * @WMI_HOST_HW_MODE_SINGLE: Only one PHY is active.
Signature · 1 line
2.34.1
Quoted 21 lines · Rameshkumar Sundaram
This series addresses two related issues with Block Acknowledgement (BA) configuration for HE and EHT capable links.
Patch 1 fixes a bug where
WMI_VDEV_PARAM_BA_MODEwas never configured for HE in AP mode. The existing code placed the BA mode configuration inside the he_oper.params check, but mac80211 does not populate he_oper.params for AP mode, so HE AP links never had BA mode set.Patch 2 builds on the fix by enabling 1024-entry BA buffers for EHT capable links. IEEE 802.11be extends the maximum BA buffer size from 256 (HE) to 1024 MPDUs; without this patch, EHT-capable links were limited to 256.
Signed-off-by Rameshkumar Sundaram <[email protected]>---
Paulson Raja L (1):
wifi: ath12k: Extend BA buffer size to 1024 for EHT capable linksRameshkumar Sundaram (1):
wifi: ath12k: Fix HE BA mode configuration for AP mode
Quoted 7 lines
drivers/net/wireless/ath/ath12k/mac.c | 41 ++++++++++++++++++++--------------- drivers/net/wireless/ath/ath12k/wmi.h | 1 + 2 files changed, 25 insertions(+), 17 deletions(-)---
base-commit:b9acb873d035fccc8824164246535ea6fc95c71a
change-id: 20261106-eht-ba-window-5c2df1a8e910
Quoted 18 lines · Rameshkumar Sundaram
This series addresses two related issues with Block Acknowledgement (BA) configuration for HE and EHT capable links.
Patch 1 fixes a bug where
WMI_VDEV_PARAM_BA_MODEwas never configured for HE in AP mode. The existing code placed the BA mode configuration inside the he_oper.params check, but mac80211 does not populate he_oper.params for AP mode, so HE AP links never had BA mode set.Patch 2 builds on the fix by enabling 1024-entry BA buffers for EHT capable links. IEEE 802.11be extends the maximum BA buffer size from 256 (HE) to 1024 MPDUs; without this patch, EHT-capable links were limited to 256.
Signed-off-by Rameshkumar Sundaram <[email protected]>---
Paulson Raja L (1):
wifi: ath12k: Extend BA buffer size to 1024 for EHT capable links
Quoted 6 lines
Rameshkumar Sundaram (1):
wifi: ath12k: Fix HE BA mode configuration for AP modedrivers/net/wireless/ath/ath12k/mac.c | 41 ++++++++++++++++++++--------------- drivers/net/wireless/ath/ath12k/wmi.h | 1 + 2 files changed, 25 insertions(+), 17 deletions(-)
Jeff Johnson
AppliedQuoted 9 lines · Rameshkumar Sundaram
This series addresses two related issues with Block Acknowledgement (BA) configuration for HE and EHT capable links.
Patch 1 fixes a bug where
WMI_VDEV_PARAM_BA_MODEwas never configured for HE in AP mode. The existing code placed the BA mode configuration inside the he_oper.params check, but mac80211 does not populate he_oper.params for AP mode, so HE AP links never had BA mode set.[...]
Applied, thanks!
[1/2] wifi: ath12k: Fix HE BA mode configuration for AP mode
commit: 9b4da51a7d78365d920a10791ff216608239892d
[2/2] wifi: ath12k: Extend BA buffer size to 1024 for EHT capable links
commit: ff4c7359e310744a7abe53cf66d921fa2969eb19Best regards,
Signature · 1 line
Jeff Johnson <[email protected]>