<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">From: Rick Pannen <<a href="mailto:pannen@gmail.com" class="">pannen@gmail.com</a>><div class=""><br class=""></div><div class="">Resubmitting patch for the TP-Link WR802N - I hope the format is OK now.</div><div class="">Tested on three different devices. Installs, boots and runs.</div><div class=""><br class=""><br class="">Signed-off-by: Rick Pannen <<a href="mailto:pannen@gmail.com" class="">pannen@gmail.com</a>><br class="">---<br class="">target/linux/ar71xx/base-files/etc/board.d/01_leds | 4 +<br class="">.../linux/ar71xx/base-files/etc/board.d/02_network | 1 +<br class="">target/linux/ar71xx/base-files/etc/diag.sh | 3 +<br class="">target/linux/ar71xx/base-files/lib/ar71xx.sh | 3 +<br class="">.../ar71xx/base-files/lib/upgrade/platform.sh | 1 +<br class="">target/linux/ar71xx/config-4.1 | 1 +<br class="">.../ar71xx/files/arch/mips/ath79/Kconfig.openwrt | 9 ++<br class="">target/linux/ar71xx/files/arch/mips/ath79/Makefile | 1 +<br class="">.../ar71xx/files/arch/mips/ath79/mach-tl-wr802n.c | 98 ++++++++++++++++++++++<br class="">.../linux/ar71xx/files/arch/mips/ath79/machtypes.h | 1 +<br class="">target/linux/ar71xx/generic/profiles/tp-link.mk | 9 ++<br class="">target/linux/ar71xx/image/Makefile | 9 ++<br class="">target/linux/ar71xx/mikrotik/config-default | 1 +<br class="">13 files changed, 141 insertions(+)<br class="">create mode 100644 target/linux/ar71xx/files/arch/mips/ath79/mach-tl-wr802n.c<br class=""><br class="">diff --git a/target/linux/ar71xx/base-files/etc/board.d/01_leds b/target/linux/ar71xx/base-files/etc/board.d/01_leds<br class="">index 39b21ca..8e94887 100755<br class="">--- a/target/linux/ar71xx/base-files/etc/board.d/01_leds<br class="">+++ b/target/linux/ar71xx/base-files/etc/board.d/01_leds<br class="">@@ -583,6 +583,10 @@ tl-wr741nd-v4)<br class=""><span class="Apple-tab-span" style="white-space: pre;"> </span>ucidef_set_led_wlan "wlan" "WLAN" "tp-link:green:wlan" "phy0tpt"<br class=""><span class="Apple-tab-span" style="white-space: pre;"> </span>;;<br class=""><br class="">+tl-wr802n)<br class="">+<span class="Apple-tab-span" style="white-space: pre;"> </span>ucidef_set_led_wlan "wlan" "WLAN" "tp-link:blue:system" "phy0tpt"<br class="">+<span class="Apple-tab-span" style="white-space: pre;"> </span>;;<br class="">+<br class="">tl-wr841n-v8 | \<br class="">tl-wr941nd-v5)<br class=""><span class="Apple-tab-span" style="white-space: pre;"> </span>ucidef_set_led_netdev "wan" "WAN" "tp-link:green:wan" "eth0"<br class="">diff --git a/target/linux/ar71xx/base-files/etc/board.d/02_network b/target/linux/ar71xx/base-files/etc/board.d/02_network<br class="">index 7724a08..1e44608 100755<br class="">--- a/target/linux/ar71xx/base-files/etc/board.d/02_network<br class="">+++ b/target/linux/ar71xx/base-files/etc/board.d/02_network<br class="">@@ -367,6 +367,7 @@ tl-wa901nd-v2 |\<br class="">tl-wa901nd-v3 |\<br class="">tl-wa901nd-v4 |\<br class="">tl-wr703n |\<br class="">+tl-wr802n |\<br class="">tube2h |\<br class="">unifiac |\<br class="">wndap360 |\<br class="">diff --git a/target/linux/ar71xx/base-files/etc/diag.sh b/target/linux/ar71xx/base-files/etc/diag.sh<br class="">index 77fa398..d41f802 100644<br class="">--- a/target/linux/ar71xx/base-files/etc/diag.sh<br class="">+++ b/target/linux/ar71xx/base-files/etc/diag.sh<br class="">@@ -316,6 +316,9 @@ get_status_led() {<br class=""><span class="Apple-tab-span" style="white-space: pre;"> </span>tl-wr1043nd-v2 | \<br class=""><span class="Apple-tab-span" style="white-space: pre;"> </span>tl-wr741nd | \<br class=""><span class="Apple-tab-span" style="white-space: pre;"> </span>tl-wr741nd-v4 | \<br class="">+<span class="Apple-tab-span" style="white-space: pre;"> </span>tl-wr802n)<br class="">+<span class="Apple-tab-span" style="white-space: pre;"> </span><span class="Apple-tab-span" style="white-space: pre;"> </span>status_led="tp-link:blue:system"<br class="">+<span class="Apple-tab-span" style="white-space: pre;"> </span><span class="Apple-tab-span" style="white-space: pre;"> </span>;;<br class=""><span class="Apple-tab-span" style="white-space: pre;"> </span>tl-wr841n-v1 | \<br class=""><span class="Apple-tab-span" style="white-space: pre;"> </span>tl-wr841n-v7 | \<br class=""><span class="Apple-tab-span" style="white-space: pre;"> </span>tl-wr841n-v8 | \<br class="">diff --git a/target/linux/ar71xx/base-files/lib/ar71xx.sh b/target/linux/ar71xx/base-files/lib/ar71xx.sh<br class="">index 588affd..2e43eb4 100755<br class="">--- a/target/linux/ar71xx/base-files/lib/ar71xx.sh<br class="">+++ b/target/linux/ar71xx/base-files/lib/ar71xx.sh<br class="">@@ -175,6 +175,9 @@ tplink_board_detect() {<br class=""><span class="Apple-tab-span" style="white-space: pre;"> </span>"080100"*)<br class=""><span class="Apple-tab-span" style="white-space: pre;"> </span><span class="Apple-tab-span" style="white-space: pre;"> </span>model="TP-Link TL-WA801N/ND"<br class=""><span class="Apple-tab-span" style="white-space: pre;"> </span><span class="Apple-tab-span" style="white-space: pre;"> </span>;;<br class="">+<span class="Apple-tab-span" style="white-space: pre;"> </span>"080200"*)<br class="">+ model="TP-Link TL-WR802N"<br class="">+ ;;<br class=""><span class="Apple-tab-span" style="white-space: pre;"> </span>"083000"*)<br class=""><span class="Apple-tab-span" style="white-space: pre;"> </span><span class="Apple-tab-span" style="white-space: pre;"> </span>model="TP-Link TL-WA830RE"<br class=""><br class="">diff --git a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh<br class="">index 5334600..fb601c1 100755<br class="">--- a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh<br class="">+++ b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh<br class="">@@ -378,6 +378,7 @@ platform_check_image() {<br class=""><span class="Apple-tab-span" style="white-space: pre;"> </span>tl-wr720n-v3 | \<br class=""><span class="Apple-tab-span" style="white-space: pre;"> </span>tl-wr741nd | \<br class=""><span class="Apple-tab-span" style="white-space: pre;"> </span>tl-wr741nd-v4 | \<br class="">+<span class="Apple-tab-span" style="white-space: pre;"> </span>tl-wr802n | \<br class=""><span class="Apple-tab-span" style="white-space: pre;"> </span>tl-wr841n-v1 | \<br class=""><span class="Apple-tab-span" style="white-space: pre;"> </span>tl-wa830re-v2 | \<br class=""><span class="Apple-tab-span" style="white-space: pre;"> </span>tl-wr841n-v7 | \<br class="">diff --git a/target/linux/ar71xx/config-4.1 b/target/linux/ar71xx/config-4.1<br class="">index 40cf453..a65f911 100644<br class="">--- a/target/linux/ar71xx/config-4.1<br class="">+++ b/target/linux/ar71xx/config-4.1<br class="">@@ -158,6 +158,7 @@ CONFIG_ATH79_MACH_TL_WR703N=y<br class="">CONFIG_ATH79_MACH_TL_WR720N_V3=y<br class="">CONFIG_ATH79_MACH_TL_WR741ND=y<br class="">CONFIG_ATH79_MACH_TL_WR741ND_V4=y<br class="">+CONFIG_ATH79_MACH_TL_WR802N=y<br class="">CONFIG_ATH79_MACH_TL_WR841N_V1=y<br class="">CONFIG_ATH79_MACH_TL_WR841N_V8=y<br class="">CONFIG_ATH79_MACH_TL_WR841N_V9=y<br class="">diff --git a/target/linux/ar71xx/files/arch/mips/ath79/Kconfig.openwrt b/target/linux/ar71xx/files/arch/mips/ath79/Kconfig.openwrt<br class="">index e6879a9..f24648b 100644<br class="">--- a/target/linux/ar71xx/files/arch/mips/ath79/Kconfig.openwrt<br class="">+++ b/target/linux/ar71xx/files/arch/mips/ath79/Kconfig.openwrt<br class="">@@ -1284,6 +1284,15 @@ config ATH79_MACH_TL_WR741ND_V4<br class=""><span class="Apple-tab-span" style="white-space: pre;"> </span>select ATH79_DEV_USB<br class=""><span class="Apple-tab-span" style="white-space: pre;"> </span>select ATH79_DEV_WMAC<br class=""><br class="">+config ATH79_MACH_TL_WR802N<br class="">+ bool "TP-LINK TL-WR802N support"<br class="">+ select SOC_QCA953X<br class="">+ select ATH79_DEV_ETH<br class="">+ select ATH79_DEV_GPIO_BUTTONS<br class="">+ select ATH79_DEV_LEDS_GPIO<br class="">+ select ATH79_DEV_M25P80<br class="">+ select ATH79<br class="">+<br class="">config ATH79_MACH_TL_WR841N_V1<br class=""><span class="Apple-tab-span" style="white-space: pre;"> </span>bool "TP-LINK TL-WR841N v1 support"<br class=""><span class="Apple-tab-span" style="white-space: pre;"> </span>select SOC_AR71XX<br class="">diff --git a/target/linux/ar71xx/files/arch/mips/ath79/Makefile b/target/linux/ar71xx/files/arch/mips/ath79/Makefile<br class="">index 61dfccc..c3d274a 100644<br class="">--- a/target/linux/ar71xx/files/arch/mips/ath79/Makefile<br class="">+++ b/target/linux/ar71xx/files/arch/mips/ath79/Makefile<br class="">@@ -159,6 +159,7 @@ obj-$(CONFIG_ATH79_MACH_TL_WDR4300) += mach-tl-wdr4300.o<br class="">obj-$(CONFIG_ATH79_MACH_TL_WDR6500_V2) += mach-tl-wdr6500-v2.o<br class="">obj-$(CONFIG_ATH79_MACH_TL_WR741ND)<span class="Apple-tab-span" style="white-space: pre;"> </span>+= mach-tl-wr741nd.o<br class="">obj-$(CONFIG_ATH79_MACH_TL_WR741ND_V4)<span class="Apple-tab-span" style="white-space: pre;"> </span>+= mach-tl-wr741nd-v4.o<br class="">+obj-$(CONFIG_ATH79_MACH_TL_WR802N) <span class="Apple-tab-span" style="white-space: pre;"> </span>+= mach-tl-wr802n.o<br class="">obj-$(CONFIG_ATH79_MACH_TL_WR841N_V1)<span class="Apple-tab-span" style="white-space: pre;"> </span>+= mach-tl-wr841n.o<br class="">obj-$(CONFIG_ATH79_MACH_TL_WR841N_V8)<span class="Apple-tab-span" style="white-space: pre;"> </span>+= mach-tl-wr841n-v8.o<br class="">obj-$(CONFIG_ATH79_MACH_TL_WR841N_V9)<span class="Apple-tab-span" style="white-space: pre;"> </span>+= mach-tl-wr841n-v9.o<br class="">diff --git a/target/linux/ar71xx/files/arch/mips/ath79/mach-tl-wr802n.c b/target/linux/ar71xx/files/arch/mips/ath79/mach-tl-wr802n.c<br class="">new file mode 100644<br class="">index 0000000..d97d7f9<br class="">--- /dev/null<br class="">+++ b/target/linux/ar71xx/files/arch/mips/ath79/mach-tl-wr802n.c<br class="">@@ -0,0 +1,98 @@<br class="">+/*<br class="">+ * TP-LINK TL-WR802N<br class="">+ *<br class="">+ * Copyright (C) 2015 Rick Pannen <<a href="mailto:pannen@gmail.com" class="">pannen@gmail.com</a>><br class="">+ *<br class="">+ * This program is free software; you can redistribute it and/or modify it<br class="">+ * under the terms of the GNU General Public License version 2 as published<br class="">+ * by the Free Software Foundation.<br class="">+ */<br class="">+<br class="">+#include <linux/gpio.h><br class="">+#include <linux/platform_device.h><br class="">+<br class="">+#include <asm/mach-ath79/ath79.h><br class="">+#include <asm/mach-ath79/ar71xx_regs.h><br class="">+<br class="">+#include "common.h"<br class="">+#include "dev-eth.h"<br class="">+#include "dev-gpio-buttons.h"<br class="">+#include "dev-leds-gpio.h"<br class="">+#include "dev-m25p80.h"<br class="">+#include "dev-wmac.h"<br class="">+#include "machtypes.h"<br class="">+<br class="">+#define TL_WR802N_GPIO_LED_SYSTEM<span class="Apple-tab-span" style="white-space: pre;"> </span>13<br class="">+#define TL_WR802N_GPIO_BTN_RESET<span class="Apple-tab-span" style="white-space: pre;"> </span>11<br class="">+<br class="">+#define TL_WR802N_KEYS_POLL_INTERVAL<span class="Apple-tab-span" style="white-space: pre;"> </span>20<span class="Apple-tab-span" style="white-space: pre;"> </span>/* msecs */<br class="">+#define TL_WR802N_KEYS_DEBOUNCE_INTERVAL<span class="Apple-tab-span" style="white-space: pre;"> </span>(3 * TL_WR802N_KEYS_POLL_INTERVAL)<br class="">+<br class="">+static const char *tl_wr802n_part_probes[] = {<br class="">+<span class="Apple-tab-span" style="white-space: pre;"> </span>"tp-link",<br class="">+<span class="Apple-tab-span" style="white-space: pre;"> </span>NULL,<br class="">+};<br class="">+<br class="">+static struct flash_platform_data tl_wr802n_flash_data = {<br class="">+<span class="Apple-tab-span" style="white-space: pre;"> </span>.part_probes<span class="Apple-tab-span" style="white-space: pre;"> </span>= tl_wr802n_part_probes,<br class="">+};<br class="">+<br class="">+static struct gpio_led tl_wr802n_leds_gpio[] __initdata = {<br class="">+<span class="Apple-tab-span" style="white-space: pre;"> </span>{<br class="">+<span class="Apple-tab-span" style="white-space: pre;"> </span><span class="Apple-tab-span" style="white-space: pre;"> </span>.name<span class="Apple-tab-span" style="white-space: pre;"> </span><span class="Apple-tab-span" style="white-space: pre;"> </span>= "tp-link:blue:system",<br class="">+<span class="Apple-tab-span" style="white-space: pre;"> </span><span class="Apple-tab-span" style="white-space: pre;"> </span>.gpio<span class="Apple-tab-span" style="white-space: pre;"> </span><span class="Apple-tab-span" style="white-space: pre;"> </span>= TL_WR802N_GPIO_LED_SYSTEM,<br class="">+<span class="Apple-tab-span" style="white-space: pre;"> </span><span class="Apple-tab-span" style="white-space: pre;"> </span>.active_low<span class="Apple-tab-span" style="white-space: pre;"> </span>= 1,<br class="">+<span class="Apple-tab-span" style="white-space: pre;"> </span>},<br class="">+};<br class="">+<br class="">+static struct gpio_keys_button tl_wr802n_gpio_keys[] __initdata = {<br class="">+<span class="Apple-tab-span" style="white-space: pre;"> </span>{<br class="">+<span class="Apple-tab-span" style="white-space: pre;"> </span><span class="Apple-tab-span" style="white-space: pre;"> </span>.desc<span class="Apple-tab-span" style="white-space: pre;"> </span><span class="Apple-tab-span" style="white-space: pre;"> </span>= "reset",<br class="">+<span class="Apple-tab-span" style="white-space: pre;"> </span><span class="Apple-tab-span" style="white-space: pre;"> </span>.type<span class="Apple-tab-span" style="white-space: pre;"> </span><span class="Apple-tab-span" style="white-space: pre;"> </span>= EV_KEY,<br class="">+<span class="Apple-tab-span" style="white-space: pre;"> </span><span class="Apple-tab-span" style="white-space: pre;"> </span>.code<span class="Apple-tab-span" style="white-space: pre;"> </span><span class="Apple-tab-span" style="white-space: pre;"> </span>= KEY_RESTART,<br class="">+<span class="Apple-tab-span" style="white-space: pre;"> </span><span class="Apple-tab-span" style="white-space: pre;"> </span>.debounce_interval = TL_WR802N_KEYS_DEBOUNCE_INTERVAL,<br class="">+<span class="Apple-tab-span" style="white-space: pre;"> </span><span class="Apple-tab-span" style="white-space: pre;"> </span>.gpio<span class="Apple-tab-span" style="white-space: pre;"> </span><span class="Apple-tab-span" style="white-space: pre;"> </span>= TL_WR802N_GPIO_BTN_RESET,<br class="">+<span class="Apple-tab-span" style="white-space: pre;"> </span><span class="Apple-tab-span" style="white-space: pre;"> </span>.active_low<span class="Apple-tab-span" style="white-space: pre;"> </span>= 0,<br class="">+<span class="Apple-tab-span" style="white-space: pre;"> </span>}<br class="">+};<br class="">+<br class="">+static void __init tl_ap143_setup(void)<br class="">+{<br class="">+<span class="Apple-tab-span" style="white-space: pre;"> </span><span class="Apple-tab-span" style="white-space: pre;"> </span>u8 *mac = (u8 *) KSEG1ADDR(0x1f01fc00);<br class="">+<span class="Apple-tab-span" style="white-space: pre;"> </span><span class="Apple-tab-span" style="white-space: pre;"> </span>u8 *ee = (u8 *) KSEG1ADDR(0x1fff1000);<br class="">+<span class="Apple-tab-span" style="white-space: pre;"> </span><span class="Apple-tab-span" style="white-space: pre;"> </span>u8 tmpmac[ETH_ALEN];<br class="">+<br class="">+<span class="Apple-tab-span" style="white-space: pre;"> </span><span class="Apple-tab-span" style="white-space: pre;"> </span>ath79_register_m25p80(&tl_wr802n_flash_data);<br class="">+<br class="">+<span class="Apple-tab-span" style="white-space: pre;"> </span><span class="Apple-tab-span" style="white-space: pre;"> </span>ath79_setup_ar933x_phy4_switch(false, false);<br class="">+<br class="">+<span class="Apple-tab-span" style="white-space: pre;"> </span><span class="Apple-tab-span" style="white-space: pre;"> </span>ath79_register_mdio(0, 0x0);<br class="">+<br class="">+<span class="Apple-tab-span" style="white-space: pre;"> </span><span class="Apple-tab-span" style="white-space: pre;"> </span>/* LAN */<br class="">+<span class="Apple-tab-span" style="white-space: pre;"> </span><span class="Apple-tab-span" style="white-space: pre;"> </span>ath79_switch_data.phy4_mii_en = 1;<br class="">+<span class="Apple-tab-span" style="white-space: pre;"> </span><span class="Apple-tab-span" style="white-space: pre;"> </span>ath79_eth0_data.phy_if_mode = PHY_INTERFACE_MODE_MII;<br class="">+<span class="Apple-tab-span" style="white-space: pre;"> </span><span class="Apple-tab-span" style="white-space: pre;"> </span>ath79_eth0_data.duplex = DUPLEX_FULL;<br class="">+<span class="Apple-tab-span" style="white-space: pre;"> </span><span class="Apple-tab-span" style="white-space: pre;"> </span>ath79_eth0_data.speed = SPEED_100;<br class="">+<span class="Apple-tab-span" style="white-space: pre;"> </span><span class="Apple-tab-span" style="white-space: pre;"> </span>ath79_eth0_data.phy_mask = BIT(4);<br class="">+<span class="Apple-tab-span" style="white-space: pre;"> </span><span class="Apple-tab-span" style="white-space: pre;"> </span>ath79_init_mac(ath79_eth0_data.mac_addr, mac, 1);<br class="">+<span class="Apple-tab-span" style="white-space: pre;"> </span><span class="Apple-tab-span" style="white-space: pre;"> </span>ath79_register_eth(0);<br class="">+<br class="">+<span class="Apple-tab-span" style="white-space: pre;"> </span><span class="Apple-tab-span" style="white-space: pre;"> </span>ath79_init_mac(tmpmac, mac, 0);<br class="">+<span class="Apple-tab-span" style="white-space: pre;"> </span><span class="Apple-tab-span" style="white-space: pre;"> </span>ath79_register_wmac(ee, tmpmac);<br class="">+};<br class="">+<br class="">+static void __init tl_wr802n_setup(void)<br class="">+{<br class="">+<span class="Apple-tab-span" style="white-space: pre;"> </span>tl_ap143_setup();<br class="">+<br class="">+<span class="Apple-tab-span" style="white-space: pre;"> </span>ath79_register_leds_gpio(-1, ARRAY_SIZE(tl_wr802n_leds_gpio),<br class="">+<span class="Apple-tab-span" style="white-space: pre;"> </span><span class="Apple-tab-span" style="white-space: pre;"> </span><span class="Apple-tab-span" style="white-space: pre;"> </span><span class="Apple-tab-span" style="white-space: pre;"> </span> tl_wr802n_leds_gpio);<br class="">+<br class="">+<span class="Apple-tab-span" style="white-space: pre;"> </span>ath79_register_gpio_keys_polled(1, TL_WR802N_KEYS_POLL_INTERVAL,<br class="">+<span class="Apple-tab-span" style="white-space: pre;"> </span><span class="Apple-tab-span" style="white-space: pre;"> </span><span class="Apple-tab-span" style="white-space: pre;"> </span><span class="Apple-tab-span" style="white-space: pre;"> </span><span class="Apple-tab-span" style="white-space: pre;"> </span>ARRAY_SIZE(tl_wr802n_gpio_keys),<br class="">+<span class="Apple-tab-span" style="white-space: pre;"> </span><span class="Apple-tab-span" style="white-space: pre;"> </span><span class="Apple-tab-span" style="white-space: pre;"> </span><span class="Apple-tab-span" style="white-space: pre;"> </span><span class="Apple-tab-span" style="white-space: pre;"> </span>tl_wr802n_gpio_keys);<br class="">+}<br class="">+<br class="">+MIPS_MACHINE(ATH79_MACH_TL_WR802N, "TL-WR802N", "TP-LINK TL-WR802N",<br class="">+<span class="Apple-tab-span" style="white-space: pre;"> </span><span class="Apple-tab-span" style="white-space: pre;"> </span> tl_wr802n_setup);<br class="">+<br class="">diff --git a/target/linux/ar71xx/files/arch/mips/ath79/machtypes.h b/target/linux/ar71xx/files/arch/mips/ath79/machtypes.h<br class="">index b2df9c4..62d5d6d 100644<br class="">--- a/target/linux/ar71xx/files/arch/mips/ath79/machtypes.h<br class="">+++ b/target/linux/ar71xx/files/arch/mips/ath79/machtypes.h<br class="">@@ -193,6 +193,7 @@ enum ath79_mach_type {<br class=""><span class="Apple-tab-span" style="white-space: pre;"> </span>ATH79_MACH_TL_WR720N_V3,<span class="Apple-tab-span" style="white-space: pre;"> </span>/* TP-LINK TL-WR720N v3/v4 */<br class=""><span class="Apple-tab-span" style="white-space: pre;"> </span>ATH79_MACH_TL_WR741ND,<span class="Apple-tab-span" style="white-space: pre;"> </span><span class="Apple-tab-span" style="white-space: pre;"> </span>/* TP-LINK TL-WR741ND */<br class=""><span class="Apple-tab-span" style="white-space: pre;"> </span>ATH79_MACH_TL_WR741ND_V4,<span class="Apple-tab-span" style="white-space: pre;"> </span>/* TP-LINK TL-WR741ND v4 */<br class="">+<span class="Apple-tab-span" style="white-space: pre;"> </span>ATH79_MACH_TL_WR802N,<span class="Apple-tab-span" style="white-space: pre;"> </span><span class="Apple-tab-span" style="white-space: pre;"> </span>/* TP-LINK TL-WR802N */<br class=""><span class="Apple-tab-span" style="white-space: pre;"> </span>ATH79_MACH_TL_WR841N_V1,<span class="Apple-tab-span" style="white-space: pre;"> </span>/* TP-LINK TL-WR841N v1 */<br class=""><span class="Apple-tab-span" style="white-space: pre;"> </span>ATH79_MACH_TL_WR841N_V7,<span class="Apple-tab-span" style="white-space: pre;"> </span>/* TP-LINK TL-WR841N/ND v7 */<br class=""><span class="Apple-tab-span" style="white-space: pre;"> </span>ATH79_MACH_TL_WR841N_V8,<span class="Apple-tab-span" style="white-space: pre;"> </span>/* TP-LINK TL-WR841N/ND v8 */<br class="">diff --git a/target/linux/ar71xx/generic/profiles/tp-link.mk b/target/linux/ar71xx/generic/profiles/tp-link.mk<br class="">index 2875290..ced7ba8 100644<br class="">--- a/target/linux/ar71xx/generic/profiles/tp-link.mk<br class="">+++ b/target/linux/ar71xx/generic/profiles/tp-link.mk<br class="">@@ -331,6 +331,15 @@ define Profile/TLWR743/Description<br class="">endef<br class="">$(eval $(call Profile,TLWR743))<br class=""><br class="">+define Profile/TLWR802<br class="">+ NAME:=TP-LINK TL-WR802N<br class="">+ PACKAGES:=<br class="">+endef<br class="">+<br class="">+define Profile/TLWR802/Description<br class="">+ Package set optimized for the TP-LINK TL-WR802N.<br class="">+endef<br class="">+$(eval $(call Profile,TLWR802))<br class=""><br class="">define Profile/TLWR841<br class=""><span class="Apple-tab-span" style="white-space: pre;"> </span>NAME:=TP-LINK TL-WR841N/ND<br class="">diff --git a/target/linux/ar71xx/image/Makefile b/target/linux/ar71xx/image/Makefile<br class="">index 3bf005f..08a501d 100644<br class="">--- a/target/linux/ar71xx/image/Makefile<br class="">+++ b/target/linux/ar71xx/image/Makefile<br class="">@@ -815,6 +815,15 @@ define Device/tl-wr743nd-v2<br class="">endef<br class="">TARGET_DEVICES += tl-wr740n-v1 tl-wr740n-v3 tl-wr740n-v4 tl-wr740n-v5 tl-wr740n-v6 tl-wr741nd-v1 tl-wr741nd-v2 tl-wr741nd-v4 tl-wr741nd-v5 tl-wr743nd-v1 tl-wr743nd-v2<br class=""><br class="">+define Device/tl-wr802n<br class="">+ $(Device/tplink-4mlzma)<br class="">+ BOARDNAME := TL-WR802N<br class="">+ DEVICE_PROFILE := TLWR802<br class="">+ TPLINK_HWID := 0x08020001<br class="">+ TPLINK_HWREV := 1<br class="">+endef<br class="">+TARGET_DEVICES += tl-wr802n<br class="">+<br class="">define Device/tl-wr841-v1.5<br class=""> $(Device/tplink-4m)<br class=""> BOARDNAME := TL-WR841N-v1.5<br class="">diff --git a/target/linux/ar71xx/mikrotik/config-default b/target/linux/ar71xx/mikrotik/config-default<br class="">index 094f2ae..7ce48b4 100644<br class="">--- a/target/linux/ar71xx/mikrotik/config-default<br class="">+++ b/target/linux/ar71xx/mikrotik/config-default<br class="">@@ -97,6 +97,7 @@ CONFIG_ATH79_MACH_RBSXTLITE=y<br class=""># CONFIG_ATH79_MACH_TL_WR720N_V3 is not set<br class=""># CONFIG_ATH79_MACH_TL_WR741ND is not set<br class=""># CONFIG_ATH79_MACH_TL_WR741ND_V4 is not set<br class="">+# CONFIG_ATH79_MACH_TL_WR802N is not set<br class=""># CONFIG_ATH79_MACH_TL_WR841N_V1 is not set<br class=""># CONFIG_ATH79_MACH_TL_WR841N_V8 is not set<br class=""># CONFIG_ATH79_MACH_TL_WR841N_V9 is not set<br class="">-- <br class="">1.9.1</div></body></html>