From patchwork Sun Apr 3 22:16:38 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bjorn Andersson X-Patchwork-Id: 8735241 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 209779F3D1 for ; Sun, 3 Apr 2016 22:19:44 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 4CEFA200FE for ; Sun, 3 Apr 2016 22:19:43 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 6BCDD201F5 for ; Sun, 3 Apr 2016 22:19:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754195AbcDCWRB (ORCPT ); Sun, 3 Apr 2016 18:17:01 -0400 Received: from mail-pf0-f175.google.com ([209.85.192.175]:36041 "EHLO mail-pf0-f175.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753634AbcDCWQ5 (ORCPT ); Sun, 3 Apr 2016 18:16:57 -0400 Received: by mail-pf0-f175.google.com with SMTP id e128so108555247pfe.3 for ; Sun, 03 Apr 2016 15:16:56 -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=0hltVyXO3vhNXHQCQDUd1lPmxokfAGNJ+zin3174Zto=; b=WwDnTvLANB4O5EVLiWeAp8OgsRX7EoAKI4uuaI4Hbo1d/97TH3ZtgPJiuCzCWsMm6E RdNm8SATeprbnaMEC3xXJNZFL5Rfqm4pQdXNwOaLsAOQEUIUlnaQTE6WrocWZ8bAA6tc hJJkfWzVZh5ksfNDCtMuJ0EpVwrNtekFMetS8= 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=0hltVyXO3vhNXHQCQDUd1lPmxokfAGNJ+zin3174Zto=; b=aIZSZpmvXf1MbajYV0TTAtReL5oV6EKJDVZS6qxFwrP+486BT5zRySjR1Hpzw5v4wl dGtf1kZ2WhY5T3l6BC2umy5F2HGeSsRTlty3F56N0uh/4V8jpAsAUZntES0MT7Q8Yd3F X5WtfzzYvA5B0QrYBcIw3b/sZU9Q8bdlYPlgIvEQWeMw1fkLRd1j5e04gboD4Jm+j13z LG9+tL/RYNVbfnMvSmGWo77YqE5kPVYzrR0ar+YvCuxz9FdJgdFPA71PJMAY4NXx3wrs fZKLiRjmFqni5u3D3848gqYoDu2tYUE9kLmvDfrJJCpg5lA0XiyMxVGH/AFFs8qNaCYi lPbg== X-Gm-Message-State: AD7BkJIWNIdtMci3ob0jIdiOfn4MOLoK3jRirG+GObInlzlcraX4PBZpZadv033Cfcjf6q+g X-Received: by 10.98.11.205 with SMTP id 74mr15763923pfl.98.1459721816308; Sun, 03 Apr 2016 15:16:56 -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 s64sm34419659pfi.77.2016.04.03.15.16.55 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 03 Apr 2016 15:16:55 -0700 (PDT) From: Bjorn Andersson To: Eugene Krasnikov , Kalle Valo Cc: Pontus Fuchs , wcn36xx@lists.infradead.org, linux-wireless@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 07/15] wcn36xx: Fetch private sta data from sta entry instead of from vif Date: Sun, 3 Apr 2016 15:16:38 -0700 Message-Id: <1459721806-11817-7-git-send-email-bjorn.andersson@linaro.org> X-Mailer: git-send-email 2.5.0 In-Reply-To: <1459721806-11817-1-git-send-email-bjorn.andersson@linaro.org> References: <1459721806-11817-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 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];