diff options
author | Ping-Ke Shih <pkshih@realtek.com> | 2022-06-10 15:26:00 +0800 |
---|---|---|
committer | Kalle Valo <kvalo@kernel.org> | 2022-06-21 09:15:46 +0300 |
commit | 7312100d4e6400045486a07d2c0ebd0a6172f920 (patch) | |
tree | aef1dd45128597f07901a97efbd619e6ed2905a3 /drivers/net/wireless/realtek/rtw89/mac80211.c | |
parent | a8eb8e6f7159c7c20c0ddac428bde3d110890aa7 (diff) | |
download | linux-7312100d4e6400045486a07d2c0ebd0a6172f920.tar.gz |
wifi: rtw89: allocate address CAM and MAC ID to TDLS peer
Normally, we only allocate an address CAM and single one MAC ID to AP in
STA mode. To support TDLS, we handle TDLS peers like AP handles stations.
Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://lore.kernel.org/r/20220610072610.27095-2-pkshih@realtek.com
Diffstat (limited to 'drivers/net/wireless/realtek/rtw89/mac80211.c')
-rw-r--r-- | drivers/net/wireless/realtek/rtw89/mac80211.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/realtek/rtw89/mac80211.c b/drivers/net/wireless/realtek/rtw89/mac80211.c index 0e3c95cf4c99..20fb4c550010 100644 --- a/drivers/net/wireless/realtek/rtw89/mac80211.c +++ b/drivers/net/wireless/realtek/rtw89/mac80211.c @@ -456,7 +456,7 @@ static int __rtw89_ops_sta_state(struct ieee80211_hw *hw, if (old_state == IEEE80211_STA_AUTH && new_state == IEEE80211_STA_ASSOC) { - if (vif->type == NL80211_IFTYPE_STATION) + if (vif->type == NL80211_IFTYPE_STATION && !sta->tdls) return 0; /* defer to bss_info_changed to have vif info */ return rtw89_core_sta_assoc(rtwdev, vif, sta); } |