]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
wifi: rtw89: check if sta's mac_id is valid under AP/TDLS
authorZong-Zhe Yang <kevin_yang@realtek.com>
Fri, 21 Oct 2022 09:18:28 +0000 (17:18 +0800)
committerKalle Valo <kvalo@kernel.org>
Tue, 1 Nov 2022 09:25:49 +0000 (11:25 +0200)
commit46245bc42aff5e67b0498fa365a4baeaaaaeda86
treea30a7b3ea57aa654cb95de583585b1d2d4735b19
parent25f49617b5c9c9afa829030f14606be6351d4771
wifi: rtw89: check if sta's mac_id is valid under AP/TDLS

Add boundary check of mac_id when adding sta under AP/TDLS.
And, return -ENOSPC if the acquired mac_id is invalid.

Signed-off-by: Zong-Zhe Yang <kevin_yang@realtek.com>
Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://lore.kernel.org/r/20221021091828.40157-1-pkshih@realtek.com
drivers/net/wireless/realtek/rtw89/core.c