From patchwork Sun Apr 3 22:16:42 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bjorn Andersson X-Patchwork-Id: 8735201 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 7ABC5C0553 for ; Sun, 3 Apr 2016 22:18:58 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 9BA0D20212 for ; Sun, 3 Apr 2016 22:18:57 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id B6C15201F5 for ; Sun, 3 Apr 2016 22:18:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754538AbcDCWSv (ORCPT ); Sun, 3 Apr 2016 18:18:51 -0400 Received: from mail-pa0-f44.google.com ([209.85.220.44]:36729 "EHLO mail-pa0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753835AbcDCWRE (ORCPT ); Sun, 3 Apr 2016 18:17:04 -0400 Received: by mail-pa0-f44.google.com with SMTP id tt10so130156209pab.3 for ; Sun, 03 Apr 2016 15:17:04 -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=YrPJP7jFl7uMCrrenOZ6N+tBKYSHUnj+m6VFWFs3+OZBbdDk6EINANJ7U4vxmn6j/G c+EerWfnUgHpTcopCZYgxiPh/v3i+6rzgdaQiClzAphaee6fKYQU12zR5SXs1KY7h+Ya vfabHjM4aqHp0oMUTGKyZtBfddjZXEiwdDSfM= 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=ZChavJdz3HKW7v2x99sJWgHzGOQGf1XqgExh8KBEDVVEfNkk7c2cKgpQNkCJlorUFj fATdKxU2k+b4LJ3b5MQebSr4XczWTnGusTvfRSBtluQyz/FVkPrteezZxU/3/xdF9QOC iAWN2eb5+WLyJ1mKVg5PIMOEvuucsJWVaR0P33ZN+iw9KvqfSlrrWL8tnpjT14pZNdAx Klqo+njweWIWEri0P5/OudTdY82CmRUROTvaQBTP9jvnTEwpcQvy1qHh78LmA9MrJRTo fvFrj5t75MlXH7rFcknc5ZB+dPt6TQmEukTftZpACdMLHYRlox/Vy9Ba3vTV2Uwd2uIZ OigQ== X-Gm-Message-State: AD7BkJIZ+6v1Tb7jj87+CCInhv0t9yS04IAG5p7unXiMewnprvtPZoDARIFusFVt51ELmZrY X-Received: by 10.66.66.198 with SMTP id h6mr47728177pat.112.1459721823828; Sun, 03 Apr 2016 15:17:03 -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.17.00 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 03 Apr 2016 15:17:00 -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 11/15] wcn36xx: Use allocated self sta index instead of hard coded Date: Sun, 3 Apr 2016 15:16:42 -0700 Message-Id: <1459721806-11817-11-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 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);