From patchwork Tue Apr 19 05:00:45 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bjorn Andersson X-Patchwork-Id: 8876841 X-Patchwork-Delegate: kvalo@adurom.com 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.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 167859F1D3 for ; Tue, 19 Apr 2016 05:05:47 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 3A62020204 for ; Tue, 19 Apr 2016 05:05:46 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 5EDBC2017D for ; Tue, 19 Apr 2016 05:05:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751871AbcDSFFl (ORCPT ); Tue, 19 Apr 2016 01:05:41 -0400 Received: from mail-pa0-f50.google.com ([209.85.220.50]:33381 "EHLO mail-pa0-f50.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752099AbcDSFBI (ORCPT ); Tue, 19 Apr 2016 01:01:08 -0400 Received: by mail-pa0-f50.google.com with SMTP id zm5so2666789pac.0 for ; Mon, 18 Apr 2016 22:01:08 -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=bOS5i/lw6JjQjAykKWn8WjS6W4jgCE2TA9sUwZHaZT4=; b=HJ+p7OFokfIVACQJ5btGBBSKWnxEX/Z919Joo7FBV89KgIvoh1Nuc+4Inex6mGqcru o5b4teUZOQ5IiNZAb5MXYBbYiAOvJX7EhxFGQlzNfEpLLBwf5eG1pF9LIIJdXziY3OIC mJMlPwaGgsS99d6caNwsUjKjXKa4kuLU0Qb8M= 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=bOS5i/lw6JjQjAykKWn8WjS6W4jgCE2TA9sUwZHaZT4=; b=Q6lupIsf5D5+xqCyKPiMWFBeLP6eoJtZ8Jbs3lzgRy7O0KLtn6JIwNGjYC3qGjeOEY CJf//EucOTHJinsFLu++9J1uEyllOGX08F7xOG6CLI3YDHO8i+Yh/Ai4sYZEX0+NutGg m2y3cSYbZN7WTKvgEMTURHia8MAsK70aBv/weSzU7+NeDG5M7PdhY8o1k/8x1B7DZh3Q sKtiFadGbngePzO/NYxgKYb/0kTKiCYEi4yBIBNl3TwpibtF/Np1xDnSDcj5c0F4+MWT QV9niLROWnIXSljLdRW8+NXPPtCS666qb7ELYWDgFYL5EDVUsH9MdTgR0Vr4eFstEJdH Cfgw== X-Gm-Message-State: AOPr4FVqkXTSL/hpnzaRhl4Ma9ZF+QQf8ue2I8I2DLEzWro14liS7CIdb2FkRtHdKNz6Bh2V X-Received: by 10.66.251.132 with SMTP id zk4mr1362969pac.50.1461042067777; Mon, 18 Apr 2016 22:01:07 -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 kh2sm20274686pad.9.2016.04.18.22.01.06 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 18 Apr 2016 22:01:07 -0700 (PDT) From: Bjorn Andersson To: Eugene Krasnikov , Kalle Valo Cc: Pontus Fuchs , linux-wireless@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v3 07/18] wcn36xx: Fetch private sta data from sta entry instead of from vif Date: Mon, 18 Apr 2016 22:00:45 -0700 Message-Id: <1461042056-10607-8-git-send-email-bjorn.andersson@linaro.org> X-Mailer: git-send-email 2.5.0 In-Reply-To: <1461042056-10607-1-git-send-email-bjorn.andersson@linaro.org> References: <1461042056-10607-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 --- Changes since v1: - Reordered after the now previous patch, to make wcn36xx_sta_to_priv() available before we use it 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 30f015d3a9e6..a23738deb5b3 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];