1
0
mirror of https://github.com/aircrack-ng/rtl8812au.git synced 2024-11-29 08:27:41 +00:00

Revert "Add LED control"

This reverts commit b56c13abc6.
This commit is contained in:
kimocoder 2022-12-19 23:16:45 +01:00
parent 2096139d53
commit 3f572a0f34
5 changed files with 2 additions and 47 deletions

View File

@ -50,9 +50,6 @@ CONFIG_USB_HCI = y
CONFIG_PCI_HCI = n CONFIG_PCI_HCI = n
CONFIG_SDIO_HCI = n CONFIG_SDIO_HCI = n
CONFIG_GSPI_HCI = n CONFIG_GSPI_HCI = n
######################### LED ###########################
CONFIG_LED_CONTROL = y
CONFIG_LED_ENABLE = y
########################## Features ########################### ########################## Features ###########################
CONFIG_AP_MODE = y CONFIG_AP_MODE = y
CONFIG_P2P = y CONFIG_P2P = y
@ -1297,16 +1294,6 @@ ifeq ($(CONFIG_IP_R_MONITOR), y)
EXTRA_CFLAGS += -DCONFIG_IP_R_MONITOR EXTRA_CFLAGS += -DCONFIG_IP_R_MONITOR
endif endif
ifeq ($(CONFIG_LED_CONTROL), y)
EXTRA_CFLAGS += -DCONFIG_LED_CONTROL
ifeq ($(CONFIG_RTL8822B), y)
EXTRA_CFLAGS += -DCONFIG_SW_LED -DCONFIG_RTW_SW_LED
endif
ifeq ($(CONFIG_LED_ENABLE), y)
EXTRA_CFLAGS += -DCONFIG_LED_ENABLE
endif
endif
ifeq ($(CONFIG_MP_VHT_HW_TX_MODE), y) ifeq ($(CONFIG_MP_VHT_HW_TX_MODE), y)
EXTRA_CFLAGS += -DCONFIG_MP_VHT_HW_TX_MODE EXTRA_CFLAGS += -DCONFIG_MP_VHT_HW_TX_MODE
ifeq ($(CONFIG_PLATFORM_I386_PC), y) ifeq ($(CONFIG_PLATFORM_I386_PC), y)

View File

@ -1745,22 +1745,6 @@ void BlinkHandler(PLED_USB pLed)
return; return;
} }
#ifdef CONFIG_SW_LED
// led_enable 1 is blinking so don't cause always on/off
if (padapter->registrypriv.led_ctrl != 1) {
if (padapter->registrypriv.led_ctrl == 0)
{
// always off
pLed->BlinkingLedState = RTW_LED_OFF;
} else {
// always on for led_ctrl 2 or greater
pLed->BlinkingLedState = RTW_LED_ON;
}
// skip various switch cases where SwLedBlink*() called below
pLed->CurrLedState = LED_UNKNOWN;
}
#endif
switch (ledpriv->LedStrategy) { switch (ledpriv->LedStrategy) {
#if CONFIG_RTW_SW_LED_TRX_DA_CLASSIFY #if CONFIG_RTW_SW_LED_TRX_DA_CLASSIFY
case SW_LED_MODE_UC_TRX_ONLY: case SW_LED_MODE_UC_TRX_ONLY:

View File

@ -169,7 +169,7 @@
#define CONFIG_RTW_LED #define CONFIG_RTW_LED
#ifdef CONFIG_RTW_LED #ifdef CONFIG_RTW_LED
//#define CONFIG_RTW_SW_LED #define CONFIG_RTW_SW_LED
#ifdef CONFIG_RTW_SW_LED #ifdef CONFIG_RTW_SW_LED
/* #define CONFIG_RTW_LED_HANDLED_BY_CMD_THREAD */ /* #define CONFIG_RTW_LED_HANDLED_BY_CMD_THREAD */
#endif #endif

View File

@ -242,9 +242,6 @@ struct registry_priv {
#ifdef CONFIG_TX_EARLY_MODE #ifdef CONFIG_TX_EARLY_MODE
u8 early_mode; u8 early_mode;
#endif #endif
#ifdef CONFIG_SW_LED
u8 led_ctrl;
#endif
#ifdef CONFIG_NARROWBAND_SUPPORTING #ifdef CONFIG_NARROWBAND_SUPPORTING
u8 rtw_nb_config; u8 rtw_nb_config;
#endif #endif

View File

@ -142,10 +142,6 @@ int rtw_check_fw_ps = 1;
int rtw_early_mode = 1; int rtw_early_mode = 1;
#endif #endif
#ifdef CONFIG_SW_LED
int rtw_led_ctrl = 1; // default to blink
#endif
int rtw_usb_rxagg_mode = 2;/* RX_AGG_DMA=1, RX_AGG_USB=2 */ int rtw_usb_rxagg_mode = 2;/* RX_AGG_DMA=1, RX_AGG_USB=2 */
module_param(rtw_usb_rxagg_mode, int, 0644); module_param(rtw_usb_rxagg_mode, int, 0644);
@ -616,12 +612,6 @@ module_param(rtw_pci_aspm_enable, int, 0644);
#ifdef CONFIG_TX_EARLY_MODE #ifdef CONFIG_TX_EARLY_MODE
module_param(rtw_early_mode, int, 0644); module_param(rtw_early_mode, int, 0644);
#endif #endif
#ifdef CONFIG_SW_LED
module_param(rtw_led_ctrl, int, 0644);
MODULE_PARM_DESC(rtw_led_ctrl,"Led Control: 0=Always off, 1=Blink, 2=Always on");
#endif
#ifdef CONFIG_ADAPTOR_INFO_CACHING_FILE #ifdef CONFIG_ADAPTOR_INFO_CACHING_FILE
char *rtw_adaptor_info_caching_file_path = "/data/misc/wifi/rtw_cache"; char *rtw_adaptor_info_caching_file_path = "/data/misc/wifi/rtw_cache";
module_param(rtw_adaptor_info_caching_file_path, charp, 0644); module_param(rtw_adaptor_info_caching_file_path, charp, 0644);
@ -1317,9 +1307,6 @@ uint loadparam(_adapter *padapter)
#ifdef CONFIG_TX_EARLY_MODE #ifdef CONFIG_TX_EARLY_MODE
registry_par->early_mode = (u8)rtw_early_mode; registry_par->early_mode = (u8)rtw_early_mode;
#endif
#ifdef CONFIG_SW_LED
registry_par->led_ctrl = (u8)rtw_led_ctrl;
#endif #endif
registry_par->trx_path_bmp = (u8)rtw_trx_path_bmp; registry_par->trx_path_bmp = (u8)rtw_trx_path_bmp;
registry_par->tx_path_lmt = (u8)rtw_tx_path_lmt; registry_par->tx_path_lmt = (u8)rtw_tx_path_lmt;