summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBitterblue Smith <rtl8821cerfe2@gmail.com>2024-05-23 17:44:39 +0300
committerPing-Ke Shih <pkshih@realtek.com>2024-05-30 10:12:19 +0800
commitdc71f4e142df928747dc5b493faa2c841a400d88 (patch)
tree8f5318369148544b8a0caac0128f995498282d20
parented4117567419a9f7e9bfc32855525ce56b98899a (diff)
downloadlinux-dc71f4e142df928747dc5b493faa2c841a400d88.tar.gz
linux-dc71f4e142df928747dc5b493faa2c841a400d88.zip
wifi: rtlwifi: Add new members to struct rtl_priv for RTL8192DU
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
-rw-r--r--drivers/net/wireless/realtek/rtlwifi/wifi.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/net/wireless/realtek/rtlwifi/wifi.h b/drivers/net/wireless/realtek/rtlwifi/wifi.h
index 442419568734..6a8212fd36af 100644
--- a/drivers/net/wireless/realtek/rtlwifi/wifi.h
+++ b/drivers/net/wireless/realtek/rtlwifi/wifi.h
@@ -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