From patchwork Tue Mar 29 06:06:28 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bjorn Andersson X-Patchwork-Id: 8682611 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 95DBBC0553 for ; Tue, 29 Mar 2016 06:09:48 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id B5FC72017D for ; Tue, 29 Mar 2016 06:09:47 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 94F9D201FE for ; Tue, 29 Mar 2016 06:09:46 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756035AbcC2GJX (ORCPT ); Tue, 29 Mar 2016 02:09:23 -0400 Received: from mail-pf0-f178.google.com ([209.85.192.178]:33246 "EHLO mail-pf0-f178.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755967AbcC2GGu (ORCPT ); Tue, 29 Mar 2016 02:06:50 -0400 Received: by mail-pf0-f178.google.com with SMTP id 4so6637350pfd.0 for ; Mon, 28 Mar 2016 23:06:50 -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=fUwDzmj+GVv6XMCkYUuv2yJnjse2rKuHBpw+G8oCWUg=; b=NJAUS6rX1DjovoNiWOzEaXZvFErdx4UGGvl2Br0ZECXLTBzPj4RomqYdL0QJNAmSZi +PtZ6V8BLVvkJ8y0YaDDZxi9cdRKStOfLb+/w7v9veU70MO5pXy5N+bNQDCu5WXWZWhy TG0hPmoEBycC6ZRsIrw+dHiWL63iEQHBNKV8U= 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=fUwDzmj+GVv6XMCkYUuv2yJnjse2rKuHBpw+G8oCWUg=; b=hWXpOnzqmvoaZGE+e5yTny9j+DPa9C40DDZKg/JWllNZJmqZHN73h75tlVQMdqiM7o toHK0ELFvT+c4mbY5vxe/0h7CJWhpYIjc+5XE2M70bNAuApvldcnamRQp/yx46j5SHL0 WVjqC1bAR+bNGN0swO1lPSAqkO5iyi9MbEtg+z9PpoaRbYjanox2xPAZ1fx7TV6W80Bn Pt0s07rAP0soq+P0tt6OP/YuCs2LB1r5c3ued4kwOgjcjomGGC9cY5HmSjy80IM5G7Nx UaRkwSz767Lr/fMIcNRyguu/HhN3NG0gdyzswU8u/2AJujico3CrkbNaBkwVfEV87Pu/ HkAg== X-Gm-Message-State: AD7BkJIPBZN2AlB560p/DY2mn+BcDvMy3fQx6RhkjRxQH5u2M1T380rGTTEAaZ0ED8vnuNiM X-Received: by 10.98.15.17 with SMTP id x17mr754594pfi.52.1459231610008; Mon, 28 Mar 2016 23:06:50 -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.48 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 28 Mar 2016 23:06:49 -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 11/16] wcn36xx: Use allocated self sta index instead of hard coded Date: Mon, 28 Mar 2016 23:06:28 -0700 Message-Id: <1459231593-360-12-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 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 ce764cce1a3e..8b304b305e69 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);