[OpenWrt-Devel,ar71xx] Fix (invert/revert) Hornet-UB WPS LED state

930阅读 0评论2015-06-15 fly123456789
分类:嵌入式

My previous patch regarding the Hornet-UB board
(commit: beed4d82d6a0154b0cd5f7b84e2180215ace6718) actually
causes the WPS led state to be inverted. Practically this meant
that value 0 in /sys/class/led/alfa:blue:wps/brightness would
turn the LED on and any positive value (1-255) would turn it off.

The above of course is confusing and hence reverting this value
back to the way it was before beed4d82d6a0154b0cd5f7b84e2180215ace6718.  Signed-off-by: Janne Cederberg  ---
 target/linux/ar71xx/files/arch/mips/ath79/mach-hornet-ub.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch

diff --git a/target/linux/ar71xx/files/arch/mips/ath79/mach-hornet-ub.c b/target/linux/ar71xx/files/arch/mips/ath79/mach-hornet-ub.c index b36c511..089fb45 100644 --- a/target/linux/ar71xx/files/arch/mips/ath79/mach-hornet-ub.c +++ b/target/linux/ar71xx/files/arch/mips/ath79/mach-hornet-ub.c @@ -64,7 +64,7 @@  static struct gpio_led hornet_ub_leds_gpio[] __initdata = { {
 		.name		= "alfa:blue:wps",
 		.gpio		= HORNET_UB_GPIO_LED_WPS, -		.active_low	= 0, +		.active_low	= 1, },
 };
 

上一篇:MW4530R 编译Openwrt全过程记录
下一篇:OpenWRT用AP+WDS模式搭建无线中继