diff options
author | Po-Hao Huang <phhuang@realtek.com> | 2023-04-14 20:11:28 +0800 |
---|---|---|
committer | Kalle Valo <kvalo@kernel.org> | 2023-04-20 15:33:46 +0300 |
commit | f0e741e4ddbc01610ca87167a123702b3fdac51f (patch) | |
tree | 8812511a85f50fd9bd0f3263f66d6321f3321b2e /drivers/net/wireless/realtek/rtw88/main.c | |
parent | eaddda248483ff78c4d26f1bf420e5f2af436a74 (diff) | |
download | lwn-f0e741e4ddbc01610ca87167a123702b3fdac51f.tar.gz lwn-f0e741e4ddbc01610ca87167a123702b3fdac51f.zip |
wifi: rtw88: add bitmap for dynamic port settings
In order to support multiple interfaces, multiple port settings will
be required. Current code always uses port 0 and should be changed.
Declare a bitmap with size equal to hardware port number to record
the current usage.
Signed-off-by: Po-Hao Huang <phhuang@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/20230414121135.17828-2-pkshih@realtek.com
Diffstat (limited to 'drivers/net/wireless/realtek/rtw88/main.c')
-rw-r--r-- | drivers/net/wireless/realtek/rtw88/main.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/wireless/realtek/rtw88/main.c b/drivers/net/wireless/realtek/rtw88/main.c index 1cb553485cff..9fe7e22e31ce 100644 --- a/drivers/net/wireless/realtek/rtw88/main.c +++ b/drivers/net/wireless/realtek/rtw88/main.c @@ -610,6 +610,7 @@ free: rcu_read_unlock(); rtw_iterate_stas_atomic(rtwdev, rtw_reset_sta_iter, rtwdev); rtw_iterate_vifs_atomic(rtwdev, rtw_reset_vif_iter, rtwdev); + bitmap_zero(rtwdev->hw_port, RTW_PORT_NUM); rtw_enter_ips(rtwdev); } |