wifi: rtw89: add join info upon create interface
authorPo-Hao Huang <phhuang@realtek.com>
Fri, 2 Dec 2022 06:15:27 +0000 (14:15 +0800)
committerKalle Valo <kvalo@kernel.org>
Thu, 8 Dec 2022 14:47:59 +0000 (16:47 +0200)
To support multiple vifs, fw need more information of each role.
Send this info to make things work as expected.

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/20221202061527.505668-5-pkshih@realtek.com
drivers/net/wireless/realtek/rtw89/mac.c

index 12cbf41..cf9a0a3 100644 (file)
@@ -3980,6 +3980,10 @@ int rtw89_mac_vif_init(struct rtw89_dev *rtwdev, struct rtw89_vif *rtwvif)
        if (ret)
                return ret;
 
+       ret = rtw89_fw_h2c_join_info(rtwdev, rtwvif, NULL, true);
+       if (ret)
+               return ret;
+
        ret = rtw89_cam_init(rtwdev, rtwvif);
        if (ret)
                return ret;