From patchwork Mon Jul 6 22:06:42 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Claudio Leite X-Patchwork-Id: 491844 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from arrakis.dune.hu (arrakis.dune.hu [78.24.191.176]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 7EB791402BA for ; Tue, 7 Jul 2015 08:08:05 +1000 (AEST) Received: from arrakis.dune.hu (localhost [127.0.0.1]) by arrakis.dune.hu (Postfix) with ESMTP id DD70B28BCD9; Tue, 7 Jul 2015 00:07:09 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on arrakis.dune.hu X-Spam-Level: X-Spam-Status: No, score=-1.5 required=5.0 tests=BAYES_00 autolearn=unavailable version=3.3.2 Received: from arrakis.dune.hu (localhost [127.0.0.1]) by arrakis.dune.hu (Postfix) with ESMTP id 2D63128BC96 for ; Tue, 7 Jul 2015 00:07:04 +0200 (CEST) X-policyd-weight: using cached result; rate: -5.5 Received: from smtp.rcn.com (smtp.rcn.com [69.168.97.78]) by arrakis.dune.hu (Postfix) with ESMTPS for ; Tue, 7 Jul 2015 00:06:58 +0200 (CEST) X_CMAE_Category: , , X-CNFS-Analysis: v=2.0 cv=P7+4d18u c=1 sm=1 a=qNZVcngokUU4knM680abXQ==:17 a=8ndMLmUfAAAA:8 a=WMI8qY3Ai7v9ot9fZ5MA:9 a=wWf4FKziK6IZtFg2:21 a=ecAqI8UBY_ZPhDVR:21 a=qNZVcngokUU4knM680abXQ==:117 X-CM-Score: 0 X-Scanned-by: Cloudmark Authority Engine X-Authed-Username: bGVpdGVjQHN0YXRpY2t5LmNvbQ== Authentication-Results: smtp01.rcn.cmh.synacor.com header.from=leitec@staticky.com; sender-id=neutral Authentication-Results: smtp01.rcn.cmh.synacor.com smtp.mail=leitec@staticky.com; spf=neutral; sender-id=neutral Received-SPF: neutral (smtp01.rcn.cmh.synacor.com: 208.58.218.152 is neither permitted nor denied by domain of staticky.com) Received: from [208.58.218.152] ([208.58.218.152:52262] helo=dirk.lan.staticky.com) by smtp.rcn.com (envelope-from ) (ecelerity 3.6.2.43620 r(Platform:3.6.2.0)) with ESMTP id EB/84-58686-E0CFA955; Mon, 06 Jul 2015 18:07:10 -0400 From: Claudio Leite To: openwrt-devel@lists.openwrt.org Date: Mon, 6 Jul 2015 18:06:42 -0400 Message-Id: <1436220402-17624-2-git-send-email-leitec@staticky.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1436220402-17624-1-git-send-email-leitec@staticky.com> References: <1436220402-17624-1-git-send-email-leitec@staticky.com> Subject: [OpenWrt-Devel] [PATCH 2/2] mvebu: undo LA bit on WRT1900ACv1 WAN MAC address X-BeenThere: openwrt-devel@lists.openwrt.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: OpenWrt Development List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: openwrt-devel-bounces@lists.openwrt.org Sender: "openwrt-devel" This had been set in r44508 as a workaround for switch problems. Now that the switch driver can handle two devices with the same MAC address in separate VLANs we can go back to using the same address on both interfaces. This is the Linksys firmware's default behavior. Signed-off-by: Claudio Leite --- target/linux/mvebu/base-files/lib/preinit/06_set_iface_mac | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/target/linux/mvebu/base-files/lib/preinit/06_set_iface_mac b/target/linux/mvebu/base-files/lib/preinit/06_set_iface_mac index 7217e93..9fc8d9a 100644 --- a/target/linux/mvebu/base-files/lib/preinit/06_set_iface_mac +++ b/target/linux/mvebu/base-files/lib/preinit/06_set_iface_mac @@ -11,9 +11,8 @@ preinit_set_mac_address() { case $(mvebu_board_name) in armada-xp-linksys-mamba) mac=$(mtd_get_mac_ascii devinfo hw_mac_addr) - mac_wan=$(macaddr_setbit_la "$mac") ifconfig eth0 hw ether $mac 2>/dev/null - ifconfig eth1 hw ether $mac_wan 2>/dev/null + ifconfig eth1 hw ether $mac 2>/dev/null ;; armada-385-linksys-caiman|armada-385-linksys-cobra) mac=$(mtd_get_mac_ascii devinfo hw_mac_addr)