summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorRoman Peshkichev <roman.peshkichev@gmail.com>2025-11-25 21:09:37 +0300
committerPing-Ke Shih <pkshih@realtek.com>2025-12-23 06:26:07 +0300
commit9f68fdcdc9dbf21be2a48feced90ff7f77d07443 (patch)
tree94817af6a82790b9e50321d463e179ad036a9555 /include/linux
parent8f7aa3d3c7323f4ca2768a9e74ebbe359c4f8f88 (diff)
downloadlinux-9f68fdcdc9dbf21be2a48feced90ff7f77d07443.tar.xz
wifi: rtw88: fix DTIM period handling when conf->dtim_period is zero
The function rtw_set_dtim_period() accepted an 'int' dtim_period parameter, while mac80211 provides dtim_period as 'u8' in struct ieee80211_bss_conf. In IBSS (ad-hoc) mode mac80211 may set dtim_period to 0. The driver unconditionally wrote (dtim_period - 1) to REG_DTIM_COUNTER_ROOT, which resulted in 0xFF when dtim_period was 0. This caused delays in broadcast/multicast traffic processing and issues with ad-hoc operation. Convert the function parameter to u8 to match ieee80211_bss_conf and avoid the underflow by writing 0 when dtim_period is 0. Link: https://github.com/lwfinger/rtw88/issues/406 Signed-off-by: Roman Peshkichev <roman.peshkichev@gmail.com> Acked-by: Ping-Ke Shih <pkshih@realtek.com> Signed-off-by: Ping-Ke Shih <pkshih@realtek.com> Link: https://patch.msgid.link/20251125180937.22977-1-roman.peshkichev@gmail.com
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions