Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp3674040ybd; Tue, 25 Jun 2019 06:40:19 -0700 (PDT) X-Google-Smtp-Source: APXvYqz4hTaD6rItnr8xgtDavciB9UxLp/WJkXIde2kulksJ6+5t4PXMgHrdPwUhyTiJqjs7T4id X-Received: by 2002:a17:90a:9903:: with SMTP id b3mr31906195pjp.80.1561470019139; Tue, 25 Jun 2019 06:40:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561470019; cv=none; d=google.com; s=arc-20160816; b=HNEaA8KSOLEZgeP+CtvwH+hehelEnY7fGAk/9+hSCoa5vg918fe4rah5f2Aa8e/LZL ITOx6oHbRrnCp/NB0KkZThNLuLVBgJIGCxEBA8nGR+piA0IWAX1l87WO5QKWnUqPkKlj kRnAhXNyUHTpkUqjWZDHNPE8B9W1UyttexNyNiEwODlR19spgvjvv4EM7vK9NQWjcvdE 1unMx4jgAnqiQyf9WkVA3yO59aXoAEWae1lZ4/H/YIZ6LtYQX7rxoZGRVuce6s+GOVjX 5KA6bAQqCeO3eUhzymgTC9YTymDf1nA1zO+L0yfGPP5Dup1VUOP4bbQtOC0mulrMZYIt Marw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:date:message-id:user-agent:cc:to :references:in-reply-to:from:subject:content-transfer-encoding :mime-version:dmarc-filter:dkim-signature:dkim-signature; bh=vXT7hsBJYB0m3N3LjZaSHNdEYK/QeJZNErfLXHe4gj4=; b=YuwoMN8pp952Gv2MwquLBFX5vh1StFD7eJ2Dlqda0lyeuc+hWDTCmYP4behRb/57Gf bgtuD7TTboSpVlpHFP8VzJm70h4esBGnTPAhcaG5f6/8KPa0WmWMvgYpY7RebbHwJ4p0 X2Lmg4TqkoRjPCwunfZUv/k+w2SmtIm+g/nr9wvRHIGrK3iWWl9oh7dlXWEyM9TxJqzn CEkcuDBFObs//Wdu3HH/pZ6lmqBJnyxDLepUL3d1yGfWN4t8lJs+NQzEqJ0TjCb09MEE M7ENgbJCar/1sr+VgnBqmxusPvD0BUJqRXknUx3cXz4BjvX3Xn5bDOsWmqUVjQB4c5Yh p75Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=JG21v+zj; dkim=pass header.i=@codeaurora.org header.s=default header.b=B2V+cB6n; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i17si13640179pgh.372.2019.06.25.06.40.04; Tue, 25 Jun 2019 06:40:19 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=JG21v+zj; dkim=pass header.i=@codeaurora.org header.s=default header.b=B2V+cB6n; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730150AbfFYNCe (ORCPT + 99 others); Tue, 25 Jun 2019 09:02:34 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:43130 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727919AbfFYNCd (ORCPT ); Tue, 25 Jun 2019 09:02:33 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 8582F608A5; Tue, 25 Jun 2019 13:02:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1561467752; bh=goyYnP7cy9ipwr1KfMe6m/clr8EHIElroEeXKJsdJfc=; h=Subject:From:In-Reply-To:References:To:Cc:Date:From; b=JG21v+zjk3kqYzQF2gVFpo7X+fkwF0+mtIVUpB8KB00hNYtX24sBNWB2ahXeiuo21 WrC8zZhbl2orzADeSc2wiyN0f+PHlnhQIrGfXzu3GYSvNG3bixz0Eashd2SZzrbZA1 6MSpAJnKdrSEuBWQqxvNJG6PN3SQPy3Sw4wQ49YE= X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on pdx-caf-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=2.0 tests=ALL_TRUSTED,BAYES_00, DKIM_INVALID,DKIM_SIGNED,MISSING_DATE,MISSING_MID,SPF_NONE autolearn=no autolearn_force=no version=3.4.0 Received: from potku.adurom.net (88-114-240-156.elisa-laajakaista.fi [88.114.240.156]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: kvalo@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id E59BE601B4; Tue, 25 Jun 2019 13:02:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1561467751; bh=goyYnP7cy9ipwr1KfMe6m/clr8EHIElroEeXKJsdJfc=; h=Subject:From:In-Reply-To:References:To:Cc:From; b=B2V+cB6nj33RpaDjy7APHFG83RyGsW9OkR77WdH6hG7d/o7E/1FOUn8tFl4Bv5jvO tPt/T2wkolZ0S5LS2bVxeclGVg0XwHQ5QDHQdTwyuaQE27LXgaBLiHUg8Re3CKAmrd 1Gib72gS7qW19WmO78wHcaI4eYrS6O2y+gSOSRys= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org E59BE601B4 Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=kvalo@codeaurora.org Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: Re: [PATCH v2] ath10k: fix failure to set multiple fixed rate From: Kalle Valo In-Reply-To: <1559117608-11117-1-git-send-email-miaoqing@codeaurora.org> References: <1559117608-11117-1-git-send-email-miaoqing@codeaurora.org> To: Miaoqing Pan Cc: ath10k@lists.infradead.org, linux-wireless@vger.kernel.org, Miaoqing Pan User-Agent: pwcli/0.0.0-git (https://github.com/kvalo/pwcli/) Python/2.7.12 Message-Id: <20190625130232.8582F608A5@smtp.codeaurora.org> Date: Tue, 25 Jun 2019 13:02:32 +0000 (UTC) Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Miaoqing Pan wrote: > Currently, below fixed rate commands are broken, > iw wlanx set bitrates legacy-<2.4|5> ht-mcs-<2.4|5> vht-mcs-<2.4|5> \ > > iw wlanx set bitrates legacy-<2.4|5> ht-mcs-<2.4|5> \ > vht-mcs-<2.4|5> > > There are two methods to set fixed rate, both failed, > - Use vdev fixed rate command > This command only support one single rate, but it's broken due to > mac80211 change commit e8e4f5280ddd ("mac80211: reject/clear user > rate mask if not usable"), which requires user to specify at least > one legacy rate. So we can't use this command to set ht/vht single > rate any more. > - Use peer_assoc command > This command can update rx capability for multiple rates, it will > work fine for ht mcs rates, as each supported mcs can be advertised > in ht_mcs index mask. But this will not work with vht rates because, > as per the vht mcs capability advertisement, there are only two bits > to indicate the supported mcs. E.g. only support 0-7, 0-8, 0-9. > > So introduced new WMI command: WMI_PEER_PARAM_FIXED_RATE. After peer > assoc, the peer fixed rate cmd will work for that specific peer. > Remaining peers will use auto rate. If both vdev fixed rate and peer > fixed rates are given, peer fixed rate will take effect to peers for > which this cmd is given. Remaining peers in that vdev, will use vdev > fixed rate. > > Tested HW: QCA9984 > Tested FW: 10.4-3.9.0.2-00035 > > Signed-off-by: Miaoqing Pan > Signed-off-by: Kalle Valo Patch applied to ath-next branch of ath.git, thanks. 8b97b055dc9d ath10k: fix failure to set multiple fixed rate -- https://patchwork.kernel.org/patch/10966425/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches