]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
wifi: rtlwifi: Add new members to struct rtl_priv for RTL8192DU
authorBitterblue Smith <rtl8821cerfe2@gmail.com>
Thu, 23 May 2024 14:44:39 +0000 (17:44 +0300)
committerPing-Ke Shih <pkshih@realtek.com>
Thu, 30 May 2024 02:12:19 +0000 (10:12 +0800)
These are needed for the dual MAC version of RTL8192DU.

The two mutexes are used to avoid concurrent access to the hardware
from the two USB interfaces.

The two arrays are filled by one interface during LC calibration and
accessed by the other interface during channel switching.

Signed-off-by: Bitterblue Smith <rtl8821cerfe2@gmail.com>
Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
Link: https://msgid.link/d1bf581b-de41-4d09-bf56-768c2fc29dd3@gmail.com
drivers/net/wireless/realtek/rtlwifi/wifi.h

index 442419568734b25737c2c5e5aa3975b72135bcc9..6a8212fd36af6a22ac0e01ca63db1dd4c335f9fb 100644 (file)
@@ -2746,6 +2746,12 @@ struct rtl_priv {
         */
        bool use_new_trx_flow;
 
+       /* For dual MAC RTL8192DU, things shared by the 2 USB interfaces */
+       u32 *curveindex_2g;
+       u32 *curveindex_5g;
+       struct mutex *mutex_for_power_on_off; /* for power on/off */
+       struct mutex *mutex_for_hw_init; /* for hardware init */
+
 #ifdef CONFIG_PM
        struct wiphy_wowlan_support wowlan;
 #endif