Skip to content

Commit 743b906

Browse files
Pradeep Kumar ChitrapuKalle Valo
authored andcommitted
ath11k: mesh: add support for 256 bitmap in blockack frames in 11ax
Currently 256 bitmap in blockack frames is being set only for AP mode. Fix this to set whenever beacon has changed and has HE capability, there by supporting mesh as well. Tested-on: IPQ8074 hw2.0 AHB WLAN.HK.2.1.0.1-01228-QCAHKSWPL_SILICONZ-1 Signed-off-by: Pradeep Kumar Chitrapu <[email protected]> Signed-off-by: Kalle Valo <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent bd88815 commit 743b906

File tree

1 file changed

+8
-14
lines changed
  • drivers/net/wireless/ath/ath11k

1 file changed

+8
-14
lines changed

drivers/net/wireless/ath/ath11k/mac.c

Lines changed: 8 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1925,20 +1925,6 @@ static void ath11k_mac_op_bss_info_changed(struct ieee80211_hw *hw,
19251925
if (ret)
19261926
ath11k_warn(ar->ab, "failed to update bcn template: %d\n",
19271927
ret);
1928-
1929-
if (vif->bss_conf.he_support) {
1930-
ret = ath11k_wmi_vdev_set_param_cmd(ar, arvif->vdev_id,
1931-
WMI_VDEV_PARAM_BA_MODE,
1932-
WMI_BA_MODE_BUFFER_SIZE_256);
1933-
if (ret)
1934-
ath11k_warn(ar->ab,
1935-
"failed to set BA BUFFER SIZE 256 for vdev: %d\n",
1936-
arvif->vdev_id);
1937-
else
1938-
ath11k_dbg(ar->ab, ATH11K_DBG_MAC,
1939-
"Set BA BUFFER SIZE 256 for VDEV: %d\n",
1940-
arvif->vdev_id);
1941-
}
19421928
}
19431929

19441930
if (changed & (BSS_CHANGED_BEACON_INFO | BSS_CHANGED_BEACON)) {
@@ -1974,6 +1960,14 @@ static void ath11k_mac_op_bss_info_changed(struct ieee80211_hw *hw,
19741960

19751961
if (arvif->is_up && vif->bss_conf.he_support &&
19761962
vif->bss_conf.he_oper.params) {
1963+
ret = ath11k_wmi_vdev_set_param_cmd(ar, arvif->vdev_id,
1964+
WMI_VDEV_PARAM_BA_MODE,
1965+
WMI_BA_MODE_BUFFER_SIZE_256);
1966+
if (ret)
1967+
ath11k_warn(ar->ab,
1968+
"failed to set BA BUFFER SIZE 256 for vdev: %d\n",
1969+
arvif->vdev_id);
1970+
19771971
param_id = WMI_VDEV_PARAM_HEOPS_0_31;
19781972
param_value = vif->bss_conf.he_oper.params;
19791973
ret = ath11k_wmi_vdev_set_param_cmd(ar, arvif->vdev_id,

0 commit comments

Comments
 (0)