wifi: rtw88: Fix macid assigned to TDLS station
authorBitterblue Smith <rtl8821cerfe2@gmail.com>
Sun, 13 Jul 2025 19:27:32 +0000 (22:27 +0300)
committerPing-Ke Shih <pkshih@realtek.com>
Tue, 15 Jul 2025 02:09:39 +0000 (10:09 +0800)
commit526b000991b557c40ea53e64ba24bb9e0fff0071
tree0fd7ba59305e3a293e04c667ba7bb2480428ea4e
parent5f936768300f65d5856d6adf0f8591e2ae716727
wifi: rtw88: Fix macid assigned to TDLS station

When working in station mode, TDLS peers are assigned macid 0, even
though 0 was already assigned to the AP. This causes the connection
with the AP to stop working after the TDLS connection is torn down.

Assign the next available macid to TDLS peers, same as client stations
in AP mode.

Fixes: 902cb7b11f9a ("wifi: rtw88: assign mac_id for vif/sta and update to TX desc")
Signed-off-by: Bitterblue Smith <rtl8821cerfe2@gmail.com>
Acked-by: Ping-Ke Shih <pkshih@realtek.com>
Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
Link: https://patch.msgid.link/58648c09-8553-4bcc-a977-9dc9afd63780@gmail.com
drivers/net/wireless/realtek/rtw88/main.c