]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
rtw89: fix sending wrong rtwsta->mac_id to firmware to fill address CAM
authorPing-Ke Shih <pkshih@realtek.com>
Wed, 1 Dec 2021 08:06:06 +0000 (16:06 +0800)
committerKalle Valo <kvalo@kernel.org>
Wed, 8 Dec 2021 18:30:12 +0000 (20:30 +0200)
commit40822e079011ef8704d429c9d8271000159abffe
tree35dbb6e9684a401c17a07e73effffb57d5494c8e
parent157289376e29fd7dc684c778205a8de04aa0aed4
rtw89: fix sending wrong rtwsta->mac_id to firmware to fill address CAM

With wrong rtwsta->mac_id, it can't send out ack properly when we receive
assoc response occasionally. Then, it failed to connect an AP.

The cause is that we store 'sta' and use it somewhere. To correct this,
remove the variable and use mac_id in drv_priv of 'sta' or 'vif' passed
by mac80211.

Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://lore.kernel.org/r/20211201080607.11211-1-pkshih@realtek.com
drivers/net/wireless/realtek/rtw89/cam.c
drivers/net/wireless/realtek/rtw89/cam.h
drivers/net/wireless/realtek/rtw89/core.c
drivers/net/wireless/realtek/rtw89/core.h
drivers/net/wireless/realtek/rtw89/fw.c
drivers/net/wireless/realtek/rtw89/fw.h
drivers/net/wireless/realtek/rtw89/mac.c
drivers/net/wireless/realtek/rtw89/mac80211.c