From patchwork Tue Mar 29 06:06:23 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bjorn Andersson X-Patchwork-Id: 8682591 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 6D6C1C0553 for ; Tue, 29 Mar 2016 06:09:25 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 939432017D for ; Tue, 29 Mar 2016 06:09:24 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id B932A2014A for ; Tue, 29 Mar 2016 06:09:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755975AbcC2GGu (ORCPT ); Tue, 29 Mar 2016 02:06:50 -0400 Received: from mail-pa0-f49.google.com ([209.85.220.49]:36551 "EHLO mail-pa0-f49.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750864AbcC2GGo (ORCPT ); Tue, 29 Mar 2016 02:06:44 -0400 Received: by mail-pa0-f49.google.com with SMTP id tt10so6179147pab.3 for ; Mon, 28 Mar 2016 23:06:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=OslnkC//eJiGf865SI9GRnFN6sTD3GsB8qjIwt/WHho=; b=Vl1T0t09xEYU/w6oRjP6i3G7xkcueWmaBJ4vjR/dtxYIEc8iGDsimL5Bi1o4JC7oec WzOuGZPztEl+olQNjaj2wJym4M3xQXX4VZb7OEc0lzaGNvDCO6L4ZQV/sQ/kX1jv/qaE d8o6R5FgRvFhAHfmAlyO1c0VbjlI0BNzw8h2c= 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=OslnkC//eJiGf865SI9GRnFN6sTD3GsB8qjIwt/WHho=; b=YGW0b0lO+5dwja8XCq24EdIoCbH6TTB+uxloFKTqnKGEolOO1DSOZnYozguG1paC3i rfeHJ43/ncIV12Nby2eW1bb2nsWws85Kq6Fd1HFvEPPj/DKKd60HnE3uwGSOMtpwXcmp ne0vIXiRgRzi8WaWODDQSAQNF2mtB6sSEVchUCnh91ZA/jbr6EKehQMJF5i9Pe9sELJQ 49/s1lK+M+Gz6mbdqLjOY1NTLRw6OOBRebtVa4oYYgdYwN9BVWb41KIbsnf8sAgtvDWB cCyrNfvsQ43kplSWMmE2CI0gga1PQZsu//UJujKQboAuat0I8uHqx+hN4c/ZWgYfuk66 bjCw== X-Gm-Message-State: AD7BkJLhIRDH10zL1Pxv6+5pWhSLNyATvT3zurqCayXb+0E40JF0Zw4sexhC3l3ndAyufvBZ X-Received: by 10.66.102.104 with SMTP id fn8mr664908pab.129.1459231603683; Mon, 28 Mar 2016 23:06:43 -0700 (PDT) Received: from localhost.localdomain (ip68-111-223-48.sd.sd.cox.net. [68.111.223.48]) by smtp.gmail.com with ESMTPSA id k88sm39878073pfj.0.2016.03.28.23.06.42 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 28 Mar 2016 23:06:43 -0700 (PDT) From: Bjorn Andersson To: Eugene Krasnikov , Kalle Valo Cc: wcn36xx@lists.infradead.org, linux-wireless@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Pontus Fuchs Subject: [PATCH 06/16] wcn36xx: Fetch private sta data from sta entry instead of from vif Date: Mon, 28 Mar 2016 23:06:23 -0700 Message-Id: <1459231593-360-7-git-send-email-bjorn.andersson@linaro.org> X-Mailer: git-send-email 2.5.0 In-Reply-To: <1459231593-360-1-git-send-email-bjorn.andersson@linaro.org> References: <1459231593-360-1-git-send-email-bjorn.andersson@linaro.org> 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.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,RP_MATCHES_RCVD,T_DKIM_INVALID,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 From: Pontus Fuchs For consistency with other code. Signed-off-by: Pontus Fuchs Signed-off-by: Bjorn Andersson --- drivers/net/wireless/ath/wcn36xx/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/ath/wcn36xx/main.c b/drivers/net/wireless/ath/wcn36xx/main.c index 4781b5e8deb3..62178a03f50d 100644 --- a/drivers/net/wireless/ath/wcn36xx/main.c +++ b/drivers/net/wireless/ath/wcn36xx/main.c @@ -386,7 +386,7 @@ static int wcn36xx_set_key(struct ieee80211_hw *hw, enum set_key_cmd cmd, { struct wcn36xx *wcn = hw->priv; struct wcn36xx_vif *vif_priv = wcn36xx_vif_to_priv(vif); - struct wcn36xx_sta *sta_priv = vif_priv->sta; + struct wcn36xx_sta *sta_priv = wcn36xx_sta_to_priv(sta); int ret = 0; u8 key[WLAN_MAX_KEY_LEN];