From patchwork Tue Apr 19 05:00:49 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bjorn Andersson X-Patchwork-Id: 8876711 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 E89E6BF440 for ; Tue, 19 Apr 2016 05:03:57 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 1D50820204 for ; Tue, 19 Apr 2016 05:03:57 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id B717220260 for ; Tue, 19 Apr 2016 05:03:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752394AbcDSFBQ (ORCPT ); Tue, 19 Apr 2016 01:01:16 -0400 Received: from mail-pa0-f53.google.com ([209.85.220.53]:35923 "EHLO mail-pa0-f53.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752278AbcDSFBM (ORCPT ); Tue, 19 Apr 2016 01:01:12 -0400 Received: by mail-pa0-f53.google.com with SMTP id er2so2647622pad.3 for ; Mon, 18 Apr 2016 22:01:12 -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=wVwQCqMZO/ftARMZgbAavSBVAX3sRlWwFrwzF8pE8tg=; b=H3Ns3gR7ZjQ1ZG9RdkIADDAVjbdZxXDrRdLrP0tPk1zQB/kTRTKTV1z5mk4mKYYHfV MBESi3yHftuhKRs/keAU5oQVIv2taWmOn9sYjgtLd+kABrspzYqKK1K2P2H1W1Kcz1OL wqqizegT+N4aykmRDicHN5SKCD0MnGAF8E5RU= 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=wVwQCqMZO/ftARMZgbAavSBVAX3sRlWwFrwzF8pE8tg=; b=Ky8RjqY7mb4Q6VLjOrLuZ4apT7L5qII5sDxTj1zmr3LhUVMSQ8VU2BLOnowlNsZHSj QpmzslZOoSTUfNjjuugsE4CiHlX4fbUvjgjp2UN8cUmE2y917hh6+5xFipCh13qVtvu6 V3eMnuOl0NTCxerAdZxa3GDy8JJkPvy4+06ZK/tZyXxaqWqyYbJRwJvoR8mYggIfvfJA fEDM3TYkrJ3xaGec6wds/tuIHhVF4KbU9l9drkVpb/PJaM/X3RBhNLQY7IWDs+Ad3r/K ol/prp5AORfoWZiak42LJ2JjbR6KvhkxpFhbETA1fSajTmPNPKssprMjwaEOcqztn2eJ lUOA== X-Gm-Message-State: AOPr4FX7bBSne6+kLAod+hpR81CPuF8Weunza9JY08Hr7Mt35habob5/NLjpk0EoqSUowD3+ X-Received: by 10.67.1.65 with SMTP id be1mr1353226pad.46.1461042072188; Mon, 18 Apr 2016 22:01:12 -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.11 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 18 Apr 2016 22:01:11 -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 11/18] wcn36xx: Use allocated self sta index instead of hard coded Date: Mon, 18 Apr 2016 22:00:49 -0700 Message-Id: <1461042056-10607-12-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 Signed-off-by: Pontus Fuchs Signed-off-by: Bjorn Andersson --- drivers/net/wireless/ath/wcn36xx/smd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/ath/wcn36xx/smd.c b/drivers/net/wireless/ath/wcn36xx/smd.c index ebb446272d21..e0d5631657c1 100644 --- a/drivers/net/wireless/ath/wcn36xx/smd.c +++ b/drivers/net/wireless/ath/wcn36xx/smd.c @@ -200,7 +200,7 @@ static void wcn36xx_smd_set_sta_params(struct wcn36xx *wcn, sta_params->sta_index = WCN36XX_HAL_STA_INVALID_IDX; } else { sta_params->type = 0; - sta_params->sta_index = 1; + sta_params->sta_index = vif_priv->self_sta_index; } sta_params->listen_interval = WCN36XX_LISTEN_INTERVAL(wcn);