mirror of
https://github.com/LibreELEC/LibreELEC.tv
synced 2025-09-24 19:46:01 +07:00
40 lines
1.3 KiB
Diff
40 lines
1.3 KiB
Diff
From 34ddbe7398b1e23d78192999dcc88a7f57bcaae5 Mon Sep 17 00:00:00 2001
|
|
From: Bitterblue Smith <rtl8821cerfe2@gmail.com>
|
|
Date: Thu, 23 May 2024 17:44:39 +0300
|
|
Subject: [PATCH 03/12] 6.11: 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>
|
|
---
|
|
drivers/net/wireless/realtek/rtlwifi/wifi.h | 6 ++++++
|
|
1 file changed, 6 insertions(+)
|
|
|
|
diff --git a/drivers/net/wireless/realtek/rtlwifi/wifi.h b/drivers/net/wireless/realtek/rtlwifi/wifi.h
|
|
index 4f1c21c130f4..2e88359ba917 100644
|
|
--- a/drivers/net/wireless/realtek/rtlwifi/wifi.h
|
|
+++ b/drivers/net/wireless/realtek/rtlwifi/wifi.h
|
|
@@ -2773,6 +2773,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
|
|
--
|
|
2.34.1
|
|
|