From patchwork Thu Jan 8 10:36:56 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michal Kazior X-Patchwork-Id: 5591771 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 866C5BF6C3 for ; Thu, 8 Jan 2015 10:37:45 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 9AF5E20375 for ; Thu, 8 Jan 2015 10:37:44 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 1773920270 for ; Thu, 8 Jan 2015 10:37:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754289AbbAHKhl (ORCPT ); Thu, 8 Jan 2015 05:37:41 -0500 Received: from mail-wg0-f53.google.com ([74.125.82.53]:52465 "EHLO mail-wg0-f53.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753876AbbAHKhk (ORCPT ); Thu, 8 Jan 2015 05:37:40 -0500 Received: by mail-wg0-f53.google.com with SMTP id x13so1811194wgg.12 for ; Thu, 08 Jan 2015 02:37:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tieto.com; s=google; h=from:to:cc:subject:date:message-id; bh=YlIHnrnhiGEPWJT7dumU+YJfVrApYApyBnkQv+Fq3wo=; b=ftdQgSZ3GcXFTwIVgnUd8WHgmKG0E+/fQWdyw8y2hXswb6LRYYUjRzRyHu6l+Jm801 HUkAP7q+gYL3PrqikvoHCmKZUA9sDXnuGuG4kL/iWZsieCxk5V01Y63Jg7Wt5JIve0to akA1r59wTnEclRLdge1mo1i3dFW5CpL8oyxRI= 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; bh=YlIHnrnhiGEPWJT7dumU+YJfVrApYApyBnkQv+Fq3wo=; b=HHE1thzxsKHZ8OnaQU9Otm+VVBg+E26y73CrSq5LEEdbZ+EfEMuWO1uci/iiuNpsZP 3GdrzyywHdEgvs+lb66S550jXj5Mz8UaXmhV0kAeHH7/DzMxKViZy+tP1BMeYV7MkCpK L9638zOSchuz0tnhR383cyGA8qDSpejFOUuOCC3uJoWC1Lbbokpe4sOJtOGdqSNQgTFx YHmsv89SALk7tobrKyG0eRY/GeF7nGQ8Rp1j3RXIVoUQIZe/Fz5Sdmv0fFV7AEDnjcAq SpzykJ02ejEtySUxM+eDUiwUKx+XQ1BEjCWJqDnw2TENP4v8nze8Rfyz82fJFOOiZpWY MgLA== X-Gm-Message-State: ALoCoQmJP9lNi2MletaHCdt8VtyrFP2TjeQv1hHF5key1LGWj/iJYBGQxkGxsoR3SWC8SfJMKbLah9uqyj9znjPALQPyBOOcEojzTSeH47MwkXXeTLi1TCYa2yOoLeJkc4GypWksZOmw X-Received: by 10.194.59.234 with SMTP id c10mr17731160wjr.49.1420713459363; Thu, 08 Jan 2015 02:37:39 -0800 (PST) Received: from localhost.localdomain ([91.198.246.8]) by mx.google.com with ESMTPSA id n8sm5610588wjx.0.2015.01.08.02.37.37 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 08 Jan 2015 02:37:38 -0800 (PST) From: Michal Kazior To: ath10k@lists.infradead.org Cc: linux-wireless@vger.kernel.org, Michal Kazior Subject: [PATCH] ath10k: fill max_num_vdevs for wmi-tlv Date: Thu, 8 Jan 2015 11:36:56 +0100 Message-Id: <1420713416-14634-1-git-send-email-michal.kazior@tieto.com> X-Mailer: git-send-email 1.8.5.3 X-DomainID: tieto.com Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID,T_RP_MATCHES_RCVD,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 Recent commit 30c78167bc6536d9074aa79385a575596343bf69 ("ath10k: set max_num_vdevs based on wmi op version") skipped wmi-tlv case and left max_num_vdevs reset. Make sure it is properly set. Signed-off-by: Michal Kazior --- drivers/net/wireless/ath/ath10k/core.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/wireless/ath/ath10k/core.c b/drivers/net/wireless/ath/ath10k/core.c index 2d0671e..a546575 100644 --- a/drivers/net/wireless/ath/ath10k/core.c +++ b/drivers/net/wireless/ath/ath10k/core.c @@ -927,6 +927,7 @@ static int ath10k_core_init_firmware_features(struct ath10k *ar) case ATH10K_FW_WMI_OP_VERSION_TLV: ar->max_num_peers = TARGET_TLV_NUM_PEERS; ar->max_num_stations = TARGET_TLV_NUM_STATIONS; + ar->max_num_vdevs = TARGET_TLV_NUM_VDEVS; ar->htt.max_num_pending_tx = TARGET_TLV_NUM_MSDU_DESC; break; case ATH10K_FW_WMI_OP_VERSION_UNSET: