From patchwork Fri Jul 11 00:01:29 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eliad Peller X-Patchwork-Id: 4528961 Return-Path: X-Original-To: patchwork-linux-wireless@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 383B99F37C for ; Fri, 11 Jul 2014 00:02:08 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 659E6201C0 for ; Fri, 11 Jul 2014 00:02:07 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 9D1772015E for ; Fri, 11 Jul 2014 00:02:06 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751518AbaGKACE (ORCPT ); Thu, 10 Jul 2014 20:02:04 -0400 Received: from mail-we0-f176.google.com ([74.125.82.176]:34302 "EHLO mail-we0-f176.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751495AbaGKACD (ORCPT ); Thu, 10 Jul 2014 20:02:03 -0400 Received: by mail-we0-f176.google.com with SMTP id u56so302694wes.7 for ; Thu, 10 Jul 2014 17:01:59 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=3PCi7lo11uwZr3Y6Shi/wUuRgVHjxE0XMjKoTVgC4Qs=; b=PiUCVqTehN2WXemeKyX7k/k8x2JFhnDvlDydprP0j2RJNgRhdDJl2KpC1MvTDiCzYg cA+kwisAPgzgXdl9v7GvxF/g21zqNT4XgFAQZHg+Dv7LjlnfX5sgIgFUukqPf8Q4SvUH /g9+TscppM6WejUsc+TJ7RpZQl9I3UTAK7SQuBfQcu5nsBNZb8ahsI6mv0EfT/AwfF4s he2PU91/56NTOccnbJQtv0S6K+GRoRHnwOxO425Ug3lu00PG/PbcQ/ZasYSPpwyNRTt6 ZHLRniPDDRuphG3L/rfgMFi+xyJm9axAPcO6GZDlOD8uMcG4L3lJj1uo4ao15LjoAImr /xMQ== X-Gm-Message-State: ALoCoQm/cxE625MEV8CJP/+WHKzoy/UUME47ebmjdbS7i1dD1mGk7d7WwUpMsQf742Oh/uLP8q5T X-Received: by 10.194.6.134 with SMTP id b6mr61867624wja.64.1405036918959; Thu, 10 Jul 2014 17:01:58 -0700 (PDT) Received: from localhost.localdomain (46-116-157-102.bb.netvision.net.il. [46.116.157.102]) by mx.google.com with ESMTPSA id 19sm1426848wjz.3.2014.07.10.17.01.56 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 10 Jul 2014 17:01:58 -0700 (PDT) From: Eliad Peller To: "John W. Linville" Cc: Subject: [PATCH 04/14] wlcore: use correct LAA bit Date: Fri, 11 Jul 2014 03:01:29 +0300 Message-Id: <1405036899-27396-5-git-send-email-eliad@wizery.com> X-Mailer: git-send-email 1.8.5.1.109.g3d252a9 In-Reply-To: <1405036899-27396-1-git-send-email-eliad@wizery.com> References: <1405036899-27396-1-git-send-email-eliad@wizery.com> Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Spam-Status: No, score=-7.6 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The LAA bit is second bit of the MSB, not of the third byte. Signed-off-by: Eliad Peller --- drivers/net/wireless/ti/wlcore/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/ti/wlcore/main.c b/drivers/net/wireless/ti/wlcore/main.c index 1ab6dbd..4c16262 100644 --- a/drivers/net/wireless/ti/wlcore/main.c +++ b/drivers/net/wireless/ti/wlcore/main.c @@ -5661,7 +5661,7 @@ static void wl12xx_derive_mac_addresses(struct wl1271 *wl, u32 oui, u32 nic) memcpy(&wl->addresses[idx], &wl->addresses[0], sizeof(wl->addresses[0])); /* LAA bit */ - wl->addresses[idx].addr[2] |= BIT(1); + wl->addresses[idx].addr[0] |= BIT(1); } wl->hw->wiphy->n_addresses = WLCORE_NUM_MAC_ADDRESSES;