Skip to content

Commit 55e18e5

Browse files
ygbluekvalo
authored andcommitted
ath11k: set DTIM policy to stick mode for station interface
Set DTIM policy to DTIM stick mode, so station follows AP DTIM interval rather than listen interval which is set in peer assoc cmd. DTIM stick mode is more preferred per firmware team request. Tested-on: QCA6390 hw2.0 PCI WLAN.HST.1.0.1-01740-QCAHSTSWPLZ_V2_TO_X86-1 Signed-off-by: Carl Huang <[email protected]> Signed-off-by: Kalle Valo <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 9cbd7fc commit 55e18e5

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2682,6 +2682,13 @@ static void ath11k_bss_assoc(struct ieee80211_hw *hw,
26822682
ath11k_warn(ar->ab, "failed to set vdev %i OBSS PD parameters: %d\n",
26832683
arvif->vdev_id, ret);
26842684

2685+
ret = ath11k_wmi_vdev_set_param_cmd(ar, arvif->vdev_id,
2686+
WMI_VDEV_PARAM_DTIM_POLICY,
2687+
WMI_DTIM_POLICY_STICK);
2688+
if (ret)
2689+
ath11k_warn(ar->ab, "failed to set vdev %d dtim policy: %d\n",
2690+
arvif->vdev_id, ret);
2691+
26852692
ath11k_mac_11d_scan_stop_all(ar->ab);
26862693
}
26872694

drivers/net/wireless/ath/ath11k/wmi.h

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2169,6 +2169,13 @@ enum wmi_nss_ratio {
21692169
WMI_NSS_RATIO_2_NSS = 0x3,
21702170
};
21712171

2172+
enum wmi_dtim_policy {
2173+
WMI_DTIM_POLICY_IGNORE = 1,
2174+
WMI_DTIM_POLICY_NORMAL = 2,
2175+
WMI_DTIM_POLICY_STICK = 3,
2176+
WMI_DTIM_POLICY_AUTO = 4,
2177+
};
2178+
21722179
struct wmi_host_pdev_band_to_mac {
21732180
u32 pdev_id;
21742181
u32 start_freq;

0 commit comments

Comments
 (0)