From patchwork Fri Jul 5 10:31:08 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sven Eckelmann X-Patchwork-Id: 11032601 X-Patchwork-Delegate: kvalo@adurom.com 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 D21DF13B1 for ; Fri, 5 Jul 2019 14:02:14 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BFF2D28684 for ; Fri, 5 Jul 2019 14:02:14 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B35712874E; Fri, 5 Jul 2019 14:02:14 +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 4EE1C28684 for ; Fri, 5 Jul 2019 14:02:14 +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:References:In-Reply-To: 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: List-Owner; bh=Otpfk8IJciyFknZlIGgy97H7arc5NiErmHjJOdYAays=; b=F4T1eJfl/7lGRu nj1Se7vQo35sXMcqtsDZto4kI05alREyRmCxHuNWVuKXtJfo+OWs6Yx2mKUZaikVZb+3Ww6UEwVPP WvxzBOTEHEJScwl8oBDxMQWNI6vgnMyZI/aD7YU1l+yxLkzYSVtw6AYSFVE2auu+KrxdtHeQssYUb vgtpB99vJbG/KvR83tav04ihNHQfYFN/AdAYkVw7+zFtax9fLBCn2nUt1213hTl3ivSIbR3e2d3nC +AHgzOG25B/0x1pJv3Edba3tbGyxLzmXUIHsK8I/4UNQ+9ycHaepvlDHTuZ6ii9/xu8SEAXy4N4Yl Du6nmiMJn8gumCxgk7rQ==; 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 1hjOmw-0006CW-J6; Fri, 05 Jul 2019 14:02:10 +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 1hjOfg-0004xt-Q9 for ath11k@bombadil.infradead.org; Fri, 05 Jul 2019 13:54:40 +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: References:In-Reply-To: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:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=y1jJzPZwHZomj7D2nO0Xopguozsxuctx1TYppOkpveQ=; b=DNoyhgP2pgmE8VwK9RayYLdAAm tgtKLEK3/5at3wQXOvQSl5gGilHHFxsFxCxjAcQi2HSdyGHoYq62KOvxtmOWd5Y0eFfONWnye6a75 jSUWSryjcMOZF2qgm4sVxLoaHw2PR40RTWqt5rNOlZKN7oZ3/KIiaJ+5pGyXPNKBP2SvPAkeh3U6h z/h4h3IoO7rHwuRRvvwbfwquIvCYklV3e8gF3xlZYxXgSDSFmuj+tXh0GzOCwBHWCTuWcwF3OIbsL rcfa7provVZCO8NRMWYInTXSmq4DmXfyG/fyRKHfoK6/r1fMjHfv/3Nk5+GLTSMy0kWRkhIsEsqpw MH++p35w==; Received: from dvalin.narfation.org ([213.160.73.56]) by casper.infradead.org with esmtps (Exim 4.92 #3 (Red Hat Linux)) id 1hjLWT-0003Ge-LD for ath11k@lists.infradead.org; Fri, 05 Jul 2019 10:32:59 +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 A7AD220952; Fri, 5 Jul 2019 10:31:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=narfation.org; s=20121; t=1562322695; 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: in-reply-to:in-reply-to:references:references; bh=y1jJzPZwHZomj7D2nO0Xopguozsxuctx1TYppOkpveQ=; b=D7LBove4RZA1Ramny9Vllu2dBN0DETasZDhLzjzbNr+ZZD+QAeZymUIJo59dllO9Wrv4sT muqwyiVT3aFqCOE6WY10m11BmDjGZ4iQz3kVQ8e0xzdSa58uc8vn8U1yhkEHrBy88BRkRc flCPNtC2zbCHcpI5nT+QJQgJ4iRAtVE= From: Sven Eckelmann To: ath11k@lists.infradead.org Subject: [PATCH 3/3] ath11k: apply mgmt rate for beacons Date: Fri, 5 Jul 2019 12:31:08 +0200 Message-Id: <20190705103109.3731-4-sven@narfation.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190705103109.3731-1-sven@narfation.org> References: <20190705103109.3731-1-sven@narfation.org> MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=narfation.org; s=20121; t=1562322695; 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: in-reply-to:in-reply-to:references:references; bh=y1jJzPZwHZomj7D2nO0Xopguozsxuctx1TYppOkpveQ=; b=soZGfuofOkC0QiwwCbJ+jH8k9z5WwA/jFU7P0zP0ONf5j+eOCr3L2iGRVS+TKBiFqVtoSu KgM9EArA52YBOKn8otD917Kg0WETIiqxAkUa/Ib0OjOoIDbvpG9rwJ7EzScrJGYQ1K9Rgg nK1I869uSEOqYJhFVukSif7FaqBthE8= ARC-Seal: i=1; s=20121; d=narfation.org; t=1562322695; a=rsa-sha256; cv=none; b=RpmQVtDu8WQPaz5jgPi7w7Lo8OzzwJNzem79l5lsBp4giWNxSBkyCLUmaccBEUZd/f0YqL 4/5rg7wb0ZySlpUPzsGIql7A4G7dFOGB1Fnv3KjOKDzOrOZ8+6u7lzNk+1LrMa57Qcwlc8 fgLR6cgO1+mih670jT0d3On20cYdG+E= 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_113257_743477_EF5239CC X-CRM114-Status: UNSURE ( 9.49 ) 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 From: Sven Eckelmann ath11k is using the lowest basic rate to send management frames. But the firmware is still sending the beacons at 1 Mbit/s for 2.4GHz and 6 Mbit/s on 5GHz. But it could be that these rates are not part of the basic rates. And thus the AP should not try to submit using these rates when clients don't need to support these rates (and thus might not be able to receive these rates). Signed-off-by: Sven Eckelmann --- drivers/net/wireless/ath/ath11k/mac.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/drivers/net/wireless/ath/ath11k/mac.c b/drivers/net/wireless/ath/ath11k/mac.c index cda5b39f1a9b..37e225e0205d 100644 --- a/drivers/net/wireless/ath/ath11k/mac.c +++ b/drivers/net/wireless/ath/ath11k/mac.c @@ -1668,6 +1668,12 @@ static void ath11k_recalculate_mgmt_rate(struct ath11k *ar, hw_rate_code); if (ret) ath11k_warn(ar->ab, "failed to set mgmt tx rate %d\n", ret); + + vdev_param = WMI_VDEV_PARAM_BEACON_RATE; + ret = ath11k_wmi_vdev_set_param_cmd(ar, arvif->vdev_id, vdev_param, + hw_rate_code); + if (ret) + ath11k_warn(ar->ab, "failed to set beacon tx rate %d\n", ret); } static void ath11k_mac_op_bss_info_changed(struct ieee80211_hw *hw,