From patchwork Sat May 9 04:38:27 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Brent Taylor X-Patchwork-Id: 6368501 X-Patchwork-Delegate: kvalo@adurom.com Return-Path: X-Original-To: patchwork-linux-wireless@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 7004CBEEE1 for ; Sat, 9 May 2015 04:40:26 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 388662022A for ; Sat, 9 May 2015 04:40:25 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 5C6B320225 for ; Sat, 9 May 2015 04:40:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751165AbbEIEig (ORCPT ); Sat, 9 May 2015 00:38:36 -0400 Received: from mail-ig0-f177.google.com ([209.85.213.177]:35169 "EHLO mail-ig0-f177.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750867AbbEIEig (ORCPT ); Sat, 9 May 2015 00:38:36 -0400 Received: by igbyr2 with SMTP id yr2so36473781igb.0 for ; Fri, 08 May 2015 21:38:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=39fMSloi9qDKPzjCGoeXo20JM+m4npYLRgE4GotOJxw=; b=HEvbXRwCPHSbBMMZsVkKFHEKsqIwysTAaJuCJsgh4H4LDpJ6FJ6Ri9PdtJ0WYE/RaG dpiy3ppym/E8SaK5K7Cd6rw+Wei1NnPvsZV9gGvHTTCBpZNVvSC+vTWi9x34Lh+b7OZr PrYVvH0CDfPCP6HsdWNewFFcOC+sTcW1fkKwP37wKt9bhSotcDz6RTzOu1PMaDo/bYga NdB6UjpdDTN5ocZtRWxibp0pCLy560AsukQ2Ezc7oaazDsO/c994nNMbHsPTXs2OLHvn peJo7YSyaw67GaxrEvclmyKWMgcu3uq0Uu6m+brcT7R99DFQ13KMT2nmn8RQm+OvHjRo GKbQ== X-Received: by 10.50.109.138 with SMTP id hs10mr1620540igb.48.1431146315439; Fri, 08 May 2015 21:38:35 -0700 (PDT) Received: from cartman.taylor.net (c-73-168-44-213.hsd1.il.comcast.net. [73.168.44.213]) by mx.google.com with ESMTPSA id h128sm5018229ioh.38.2015.05.08.21.38.34 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 08 May 2015 21:38:34 -0700 (PDT) From: Brent Taylor To: kvalo@qca.qualcomm.com Cc: ath6kl@lists.infradead.org, linux-wireless@vger.kernel.org, Brent Taylor Subject: [PATCH] ath6kl: Fix multiple clients associating in AP mode Date: Fri, 8 May 2015 23:38:27 -0500 Message-Id: <1431146307-6442-1-git-send-email-motobud@gmail.com> X-Mailer: git-send-email 2.4.0 Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, T_DKIM_INVALID, T_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 When one client is associated and connected to an ar6003 hw version 2.0 with firmware 3.1.1.149, and another client tries to connect, the first client's MAC address is lost in the station list because the "aid" is always "1". The structure "wmi_connect_event" has the "aid" as the second byte in the message, but it should be the first byte. This patch has been tested with linux-3.10.40 Signed-off-by: Brent Taylor --- drivers/net/wireless/ath/ath6kl/wmi.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/ath/ath6kl/wmi.h b/drivers/net/wireless/ath/ath6kl/wmi.h index 19f88b4..05d25a9 100644 --- a/drivers/net/wireless/ath/ath6kl/wmi.h +++ b/drivers/net/wireless/ath/ath6kl/wmi.h @@ -1527,8 +1527,8 @@ struct wmi_connect_event { __le32 nw_type; } sta; struct { - u8 phymode; u8 aid; + u8 phymode; u8 mac_addr[ETH_ALEN]; u8 auth; u8 keymgmt;