[FS#3498] Reset button is not working due to define reset button as wps button

OpenWrt Bugs openwrt-bugs at lists.openwrt.org
Tue Dec 8 22:21:27 EST 2020


THIS IS AN AUTOMATED MESSAGE, DO NOT REPLY.

A new Flyspray task has been opened.  Details are below. 

User who did this - Human-OS (Human-OS) 

Attached to Project - OpenWrt/LEDE Project
Summary - Reset button is not working due to define reset button as wps button
Task Type - Bug Report
Category - Base system
Status - Unconfirmed
Assigned To - 
Operating System - All
Severity - Medium
Priority - Very Low
Reported Version - openwrt-18.06
Due in Version - Undecided
Due Date - Undecided
Details - 
 -In **TP-LINK tl-mr3220 v2**  reset is button not working.

 -In files __/target/linux/ar71xx/files/arch/mips/mach-tl-wr741nd-v4.c__ the wifi button of tl- 
  mr3220-v2 is defined as wps button.As a result reset button is not working.
  
 -to fix this we need to do following patch :

     --#define TL_MR3220V2_GPIO_BTN_WPS 	11
     ++#define TL_MR3220V2_GPIO_BTN_RESET	11
     
static struct gpio_keys_button tl_mr3220v2_gpio_keys[] __initdata = {
	{
              --.desc		= "WPS",
              ++.desc		= "reset",
                .type		= EV_KEY,
              --.code		= KEY_WPS_BUTTON,
              ++.code		= KEY_RESTART,	
                .debounce_interval = TL_WR741NDV4_KEYS_DEBOUNCE_INTERVAL,
              --.gpio		= TL_MR3220V2_GPIO_BTN_WPS,
              ++.gpio		= TL_MR3220V2_GPIO_BTN_RESET,
                .active_low	= 0,
	}, {
		.desc		= "WIFI button",
		.type		= EV_KEY,
		.code		= KEY_RFKILL,
		.debounce_interval = TL_WR741NDV4_KEYS_DEBOUNCE_INTERVAL,
		.gpio		= TL_MR3220V2_GPIO_BTN_WIFI,
		.active_low	= 0,
	}
};






  

More information can be found at the following URL:
https://bugs.openwrt.org/index.php?do=details&task_id=3498

You are receiving this message because you have requested it from the Flyspray bugtracking system.  If you did not expect this message or don't want to receive mails in future, you can change your notification settings at the URL shown above.



More information about the openwrt-bugs mailing list