From patchwork Fri Jul 5 10:31:05 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sven Eckelmann X-Patchwork-Id: 11032597 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 3FCC013B1 for ; Fri, 5 Jul 2019 14:01:44 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2DBE428684 for ; Fri, 5 Jul 2019 14:01:44 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 21766288F8; Fri, 5 Jul 2019 14:01:44 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.4 required=2.0 tests=BAYES_00,DKIM_ADSP_ALL, DKIM_SIGNED,DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 7EC0428684 for ; Fri, 5 Jul 2019 14:01:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:To :From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=KO0yVtL0XCElAJTgR6rw27a3ELVTn5XuMkFUnHEula0=; b=S6QZc5i5nuyl+v wbA1+dVbAX0LOTMFU3T8xVTvIv4Mdj350+K9VyfybE/97H9a+aSqbHhhbyxAaKUmhgiGOEUPfolRl IM7QjzHn/48MkWDdmI2rDxw5oSy1n7NlSFh/qp0M+fzkxSN/avlE8RLR74f3cOV4o3vmKOi1OiLJ3 3mePWwMD5wpiD7rd20gz0b6cUTsGNI932i9KFqG1XlZj+m1W41FCGVXBl7BtyQeTHH6dQm3vEOcfv 4qfh0QPAI4SQ+YJU8uRImlxwTVmiDZmZGrqFKz1ozGrYwQclP8XybIyMihT90U06Nl796Bne+/KZW RGBfJ6Rj19q6jWPl2FAQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92 #3 (Red Hat Linux)) id 1hjOmT-0005kW-NR; Fri, 05 Jul 2019 14:01:41 +0000 Received: from casper.infradead.org ([2001:8b0:10b:1236::1]) by bombadil.infradead.org with esmtps (Exim 4.92 #3 (Red Hat Linux)) id 1hjOfb-0004s8-Pg for ath11k@bombadil.infradead.org; Fri, 05 Jul 2019 13:54:36 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Content-Transfer-Encoding:MIME-Version: Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=YEE8zMXGCcK1W1epbL79owPfQagr481MtPTYWh3EXJs=; b=Cx23cmfFfDADTq3wdy88T+i4Ke 1SXdvq6w4taHhQryrb02kXcFaA0+hMpwWZqpPUL9URets1pky39AMUWSXOGXYkLmoCoEzztehoaYi nddPRzo7S8OqsZTsIfUrJGAfbSoK7grwcgb6ksyAetKOt/TPqg18ckrNtWpVeQ9HfB6Cd39IDrxC4 EdTJ6jG96n+Ifg3Z2fAHfGDLe+D/tP3Q4YcavOA1MGPFYBAc7ZYZX1zhaqPuKwaz7VOI946/AYB1K aGWgT5hQ83tXjVwCstRufl7d01f8Iqsp8pFA4hE5X5eKeIewGTAt9a40UznIg5VQfeub9Uo6sqSA0 KMxlGS4w==; Received: from dvalin.narfation.org ([213.160.73.56]) by casper.infradead.org with esmtps (Exim 4.92 #3 (Red Hat Linux)) id 1hjLW2-0003EZ-RC for ath11k@lists.infradead.org; Fri, 05 Jul 2019 10:32:32 +0000 Received: from sven-desktop.home.narfation.org (p5B34C688.dip0.t-ipconnect.de [91.52.198.136]) by dvalin.narfation.org (Postfix) with ESMTPSA id 1A992208E0; Fri, 5 Jul 2019 10:31:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=narfation.org; s=20121; t=1562322678; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=YEE8zMXGCcK1W1epbL79owPfQagr481MtPTYWh3EXJs=; b=qEUZSVNLFAtjPkOnMim9w9IBrRvt9OL+j76t2fwAkzrYTycZB9eYqbZnlG4p2oT5TRU97r tUcft8K/H6p5hdV4RtHtuGjDHjPdu79Y/I0ARJIIh7/MAFSBgv5xFZFF0pFkf6mKK6w+5E FxkFHH7kEVOd3bM9tIojIVBZOe0vvUA= From: Sven Eckelmann To: ath11k@lists.infradead.org Subject: [PATCH 0/3] ath11k: add support for mgmt and mcast rate control Date: Fri, 5 Jul 2019 12:31:05 +0200 Message-Id: <20190705103109.3731-1-sven@narfation.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=narfation.org; s=20121; t=1562322678; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=YEE8zMXGCcK1W1epbL79owPfQagr481MtPTYWh3EXJs=; b=fyRDBe2xRw6V0IbaX17ITG3Cmlbknjow5qJegZFFi2JsANfd6WQf4LCo6htczjn7lx+TL0 ioUsqVFXMlXri3APlDtSGSNqd9L3EduP8Jcp1zIabXt7C8LePb9PeoMNCYE1rIu4PBxYJw obSc8oPdimf188/f4m1C2iSFUOlSks8= ARC-Seal: i=1; s=20121; d=narfation.org; t=1562322678; a=rsa-sha256; cv=none; b=KEmxuhFI/En9NKfrNfcghM/Ok9aVMYDXpMR2olQt3Ckn2/voaPZbD/ZIP6L/+SqQjawJ8+ eJyhd6zm8++fkSRMx1RItIINubcImRwKzGSmjJQoT7g7dEAFrB0O+UJm1NvbLhV45R3owc gHYoZIw5pCiKxG7RNwGzWY9rFUIcNtw= ARC-Authentication-Results: i=1; ORIGINATING; auth=pass smtp.auth=sven smtp.mailfrom=sven@narfation.org X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190705_113230_940587_5F1CF1E6 X-CRM114-Status: UNSURE ( 7.93 ) X-CRM114-Notice: Please train this message. X-BeenThere: ath11k@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Sven Eckelmann Sender: "ath11k" Errors-To: ath11k-bounces+patchwork-ath11k=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Hi, The management frames and multicast frames have to be sent at a basic rate. But the ath11k firmware is always doing them on 1 Mbit/s for 2.4GHz and 6 Mbit/s for 5GHz. These might not be the basic rates which the AP advertised. Clients which don't support these rates will therefore not be able to receive them correctly. Also some mesh protocols try to estimate the probability of a successful submission of broadcast/multicast frames. In such setups, the multicast rate is usually manually set to an higher value to better simulate the rates which are used for unicast transmission. mac80211 already provides a list of rates for the driver. ath11k has to pick the lowest one (or only provided one) and send it to the firmware rate control. Unfortunately, the firmware WLAN.HK.2.1.0.1-00629-QCAHKSWPL_SILICONZ-1 seems to be buggy [1] and ignores the CCK preamble. So setting the CCK rates 1M, 2M, 5.5M and 11M will then result in OFDM rates 6M, 12M, 24M, 48M. Kind regards, Sven [1] at least this is my best guess Sven Eckelmann (3): ath11k: support for multicast rate control ath11k: support for mgmt rate control ath11k: apply mgmt rate for beacons drivers/net/wireless/ath/ath11k/mac.c | 119 ++++++++++++++++++++++++++ 1 file changed, 119 insertions(+)