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: 5591781 Return-Path: X-Original-To: patchwork-ath10k@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 E2EB89F357 for ; Thu, 8 Jan 2015 10:38:30 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 1DEF92037D for ; Thu, 8 Jan 2015 10:38:30 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 2973620270 for ; Thu, 8 Jan 2015 10:38:29 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1Y9ATn-0000zz-Bn; Thu, 08 Jan 2015 10:38:15 +0000 Received: from mail-wi0-x236.google.com ([2a00:1450:400c:c05::236]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1Y9ATj-0000i2-BL for ath10k@lists.infradead.org; Thu, 08 Jan 2015 10:38:12 +0000 Received: by mail-wi0-f182.google.com with SMTP id h11so2330962wiw.3 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=UvuQ4MFH/9DVBZ9l47UxKynTUZ/DxGAfWemstsSKB4OPBBF739PO3VHYEXfEeVO5r+ O7KpqMSsVYx4t7T3vML0Y+P3ifvKX4LOwdmWVw3TcalBHR/ZlhublnhpboX4lXl/cQi7 CGludufkFnTV6YeBLlnyQOspF2c3IjU6iX1mvJSqvq083o5tJ7OcvvWGWkWDhAOQHgPu RL53X9Hfl63VTo88QFS/z5+Au09NFQoMR6eNG4Qnt1Hm8mTUFguuNG8vapG0Nxc7grpf e6MYk7aheQRxPEF3lKub1n4Ue40OAATgzL+sG+RX+E7HcJodYdqhbgIFUo3kdVI/LERf rh7Q== X-Gm-Message-State: ALoCoQlmwehLQoerReNDexE5+9nSKI5uEvYiUMK0enILnOMVFCtAlgZddj68abMT3Y49Bbqbg5Cuos5UMbQZpVjrDL+XQUWykwlEMmHke9Nyw7AG0Om7CpHqhOVt+F2HffcuzcOgat02eRFztFdcv2sRG6oWou3+lgO/2i2dcWJomdolR3cKgao= 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 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150108_023811_579513_EE2A9929 X-CRM114-Status: UNSURE ( 6.92 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.8 (/) Cc: linux-wireless@vger.kernel.org, Michal Kazior X-BeenThere: ath10k@lists.infradead.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "ath10k" Errors-To: ath10k-bounces+patchwork-ath10k=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED, 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: