Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable status LED #241

Open
Celger opened this issue Sep 6, 2021 · 4 comments
Open

Enable status LED #241

Celger opened this issue Sep 6, 2021 · 4 comments

Comments

@Celger
Copy link

Celger commented Sep 6, 2021

Please, considerer enable the LEDs by uncommenting lines in autoconf.h as recommended in #138 (comment) after you closed the issue. Or make an option for that.
Thanks! You are doing a great work!

@CGarces
Copy link
Collaborator

CGarces commented Sep 6, 2021

I don't have this the device, so I can't test if the solution is valid.
Have you compiled and tested the proposed solution?

@Celger
Copy link
Author

Celger commented Sep 8, 2021

Yeah! I have TL-WN822N(EU) ver.5.0. I uncommented the LED lines and compiled. It worked like a charm!

Uncomment the lines 152, 154 and 156 in autoconf.h

@circl-lastname
Copy link

IS it necessary to uncomment the lines 154 and 156 rather than just 152?

@Celger
Copy link
Author

Celger commented Oct 13, 2021

According https://github.com/Mange/rtl8192eu-linux-driver/issues/138#issuecomment-705308182 you're right. Uncomment the line 152 is all you need. But there is several references to these definitions, listed below, so I uncommented these three lines and, it's ok.

Files and lines where the definition in line 154 is used:
hal/led/hal_usb_led.c:18:#ifdef CONFIG_RTW_SW_LED hal/led/hal_led.c:27:#ifdef CONFIG_RTW_SW_LED hal/led/hal_led.c:40:#ifndef CONFIG_RTW_SW_LED hal/led/hal_led.c:42: RTW_WARN("CONFIG_RTW_SW_LED is not defined\n"); hal/led/hal_led.c:47:#ifdef CONFIG_RTW_SW_LED hal/led/hal_led.c:62:#ifdef CONFIG_RTW_SW_LED hal/led/hal_led.c:69:#ifdef CONFIG_RTW_SW_LED hal/led/hal_led.c:251:#endif /* CONFIG_RTW_SW_LED */ hal/rtl8192e/usb/usb_halinit.c:1445:#ifdef CONFIG_RTW_SW_LED hal/rtl8192e/usb/usb_halinit.c:1562:#ifdef CONFIG_RTW_SW_LED hal/rtl8192e/usb/usb_halinit.c:1573:#endif /* CONFIG_RTW_SW_LED */ hal/rtl8192e/usb/usb_halinit.c:1880:#ifdef CONFIG_RTW_SW_LED hal/rtl8192e/usb/usb_halinit.c:1883:#endif/* CONFIG_RTW_SW_LED */ hal/rtl8192e/usb/rtl8192eu_led.c:19:#ifdef CONFIG_RTW_SW_LED hal/hal_intf.c:202:#ifdef CONFIG_RTW_SW_LED include/rtl8723b_led.h:22:#ifdef CONFIG_RTW_SW_LED include/rtl8723b_led.h:44:#endif/*CONFIG_RTW_SW_LED*/ include/rtl8188f_led.h:17:#ifdef CONFIG_RTW_SW_LED include/rtl8188f_led.h:45:#endif/*CONFIG_RTW_SW_LED*/ include/rtl8192f_led.h:22:#ifdef CONFIG_RTW_SW_LED include/rtl8192f_led.h:40:#endif /*#ifdef CONFIG_RTW_SW_LED*/ include/rtl8723d_led.h:22:#ifdef CONFIG_RTW_SW_LED include/rtl8723d_led.h:43:#endif /*#ifdef CONFIG_RTW_SW_LED*/ include/hal_intf.h:336:#ifdef CONFIG_RTW_SW_LED include/hal_intf.h:660:#ifdef CONFIG_RTW_SW_LED include/rtl8710b_led.h:22:#ifdef CONFIG_RTW_SW_LED include/rtl8710b_led.h:43:#endif /*#ifdef CONFIG_RTW_SW_LED*/ include/autoconf.h:154: #define CONFIG_RTW_SW_LED include/autoconf.h:155: #ifdef CONFIG_RTW_SW_LED include/rtl8812a_led.h:18:#ifdef CONFIG_RTW_SW_LED include/rtl8812a_led.h:34:#endif/*CONFIG_RTW_SW_LED*/ include/rtl8192e_led.h:18:#ifdef CONFIG_RTW_SW_LED include/rtl8192e_led.h:36:#endif/*CONFIG_RTW_SW_LED*/ include/hal_com_led.h:276:#ifdef CONFIG_RTW_SW_LED include/hal_com_led.h:349:#ifdef CONFIG_RTW_SW_LED include/hal_com_led.h:407:#if defined(CONFIG_RTW_LED) && defined(CONFIG_RTW_SW_LED) include/hal_com_led.h:409:#ifndef CONFIG_RTW_SW_LED_TRX_DA_CLASSIFY include/hal_com_led.h:410:#define CONFIG_RTW_SW_LED_TRX_DA_CLASSIFY 0 include/hal_com_led.h:413:#if CONFIG_RTW_SW_LED_TRX_DA_CLASSIFY include/hal_com_led.h:434:#endif /* defined(CONFIG_RTW_LED) && defined(CONFIG_RTW_SW_LED) */ include/rtl8703b_led.h:22:#ifdef CONFIG_RTW_SW_LED include/rtl8703b_led.h:43:#endif/*CONFIG_RTW_SW_LED*/ include/rtl8814a_led.h:18:#ifdef CONFIG_RTW_SW_LED include/rtl8814a_led.h:36:#endif /*CONFIG_RTW_SW_LED*/ include/rtl8188e_led.h:18:#ifdef CONFIG_RTW_SW_LED include/rtl8188e_led.h:37:#endif /*CONFIG_RTW_SW_LED*/ os_dep/linux/os_intfs.c:2448:#ifdef CONFIG_RTW_SW_LED os_dep/linux/os_intfs.c:2518:#ifdef CONFIG_RTW_SW_LED os_dep/linux/os_intfs.c:4873:#ifdef CONFIG_RTW_SW_LED os_dep/linux/os_intfs.c:5008:#ifdef CONFIG_RTW_SW_LED

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants