From patchwork Sun Nov 24 20:06:43 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Emmanuel Grumbach X-Patchwork-Id: 3227091 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.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 3142DC045B for ; Sun, 24 Nov 2013 20:07:43 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 5558A20429 for ; Sun, 24 Nov 2013 20:07:42 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 8F0272041F for ; Sun, 24 Nov 2013 20:07:41 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753605Ab3KXUHg (ORCPT ); Sun, 24 Nov 2013 15:07:36 -0500 Received: from mail-wi0-f171.google.com ([209.85.212.171]:42374 "EHLO mail-wi0-f171.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753512Ab3KXUHX (ORCPT ); Sun, 24 Nov 2013 15:07:23 -0500 Received: by mail-wi0-f171.google.com with SMTP id ca18so2730558wib.10 for ; Sun, 24 Nov 2013 12:07:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=LbMldU3BaFcL1P8T1V6/s5jp9sYPJl2P/DgrXtuZ5co=; b=a7R7bMc9MYk1NZi7qA6N/9moz8fxrzMqQysp1HWJltJ7Q6hFZFy/18yAagy51G0kOj hpJ/AAki0ikKqfI4KYKPRVyHDQBaIg7SZxUmNq226oDLDB+wm0PzYVMAnklfxj2hPpcT OXDoTKOAIudD85e2dsN/feDA6UNns9+H0pkx7ZAC1Li9gpBVCAKF1xkJHaNQ3EU0pZQs uXhsCWzNgmHvC25IDT1K+Fam4efkN1iDfklMqoSFouAzA9c7xhDo4zEfuadnBlY6wLIx R03qyDmWryBcwhJCoqPBWZuBKt5d7sHX1xFkvNV+mvxbbqyfo5amJQC+BKLSqYalhlvG R6Sw== X-Received: by 10.180.106.200 with SMTP id gw8mr5159573wib.50.1385323642570; Sun, 24 Nov 2013 12:07:22 -0800 (PST) Received: from localhost.localdomain (93-173-143-36.bb.netvision.net.il. [93.173.143.36]) by mx.google.com with ESMTPSA id bs15sm39450590wib.10.2013.11.24.12.07.21 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 24 Nov 2013 12:07:22 -0800 (PST) From: Emmanuel Grumbach To: linux-wireless@vger.kernel.org Cc: Johannes Berg , Emmanuel Grumbach Subject: [PATCH 26/29] iwlwifi: mvm: quota command max_duration should be zero Date: Sun, 24 Nov 2013 22:06:43 +0200 Message-Id: <1385323606-3603-26-git-send-email-egrumbach@gmail.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <52925BE7.4050406@gmail.com> References: <52925BE7.4050406@gmail.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_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, 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: Johannes Berg For now, the firmware doesn't really use the field, but it should be set to zero if there's no specific request. Setting it to the max quota doesn't make sense. Signed-off-by: Johannes Berg Reviewed-by: Ilan Peer Signed-off-by: Emmanuel Grumbach --- drivers/net/wireless/iwlwifi/mvm/quota.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/net/wireless/iwlwifi/mvm/quota.c b/drivers/net/wireless/iwlwifi/mvm/quota.c index 17e2bc8..38165eb 100644 --- a/drivers/net/wireless/iwlwifi/mvm/quota.c +++ b/drivers/net/wireless/iwlwifi/mvm/quota.c @@ -217,8 +217,7 @@ int iwl_mvm_update_quotas(struct iwl_mvm *mvm, struct ieee80211_vif *newvif) } else { cmd.quotas[idx].quota = cpu_to_le32(quota * data.n_interfaces[i]); - cmd.quotas[idx].max_duration = - cpu_to_le32(IWL_MVM_MAX_QUOTA); + cmd.quotas[idx].max_duration = cpu_to_le32(0); } idx++; }