Skip to content

Commit bd88815

Browse files
Pradeep Kumar ChitrapuKalle Valo
authored andcommitted
ath11k: support TXOP duration based RTS threshold
HE operation IE in beacons is constructed based on userspace params, which firmware might not be aware of. This causes firmware not to configure TXOP duration based RTS threshold which could cause mismatch in behaviour with respect to what is being advertised in beacons. This patch sends HE operation IE fetched from beacon to firmware using WMI interface for configuration. 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 f004904 commit bd88815

File tree

1 file changed

+17
-1
lines changed
  • drivers/net/wireless/ath/ath11k

1 file changed

+17
-1
lines changed

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

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1969,9 +1969,25 @@ static void ath11k_mac_op_bss_info_changed(struct ieee80211_hw *hw,
19691969
if (changed & BSS_CHANGED_BSSID && !is_zero_ether_addr(info->bssid))
19701970
ether_addr_copy(arvif->bssid, info->bssid);
19711971

1972-
if (changed & BSS_CHANGED_BEACON_ENABLED)
1972+
if (changed & BSS_CHANGED_BEACON_ENABLED) {
19731973
ath11k_control_beaconing(arvif, info);
19741974

1975+
if (arvif->is_up && vif->bss_conf.he_support &&
1976+
vif->bss_conf.he_oper.params) {
1977+
param_id = WMI_VDEV_PARAM_HEOPS_0_31;
1978+
param_value = vif->bss_conf.he_oper.params;
1979+
ret = ath11k_wmi_vdev_set_param_cmd(ar, arvif->vdev_id,
1980+
param_id, param_value);
1981+
ath11k_dbg(ar->ab, ATH11K_DBG_MAC,
1982+
"he oper param: %x set for VDEV: %d\n",
1983+
param_value, arvif->vdev_id);
1984+
1985+
if (ret)
1986+
ath11k_warn(ar->ab, "Failed to set he oper params %x for VDEV %d: %i\n",
1987+
param_value, arvif->vdev_id, ret);
1988+
}
1989+
}
1990+
19751991
if (changed & BSS_CHANGED_ERP_CTS_PROT) {
19761992
u32 cts_prot;
19771993

0 commit comments

Comments
 (0)