From patchwork Tue Oct 10 22:18:40 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ben Greear X-Patchwork-Id: 824102 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.infradead.org (client-ip=65.50.211.133; helo=bombadil.infradead.org; envelope-from=lede-dev-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org; receiver=) Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="smaUWW1A"; dkim-atps=neutral Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3yBWk65XXjz9t6C for ; Wed, 11 Oct 2017 09:19:26 +1100 (AEDT) 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:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Subject:Message-Id: Date: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=i28ouWUiuc2I/Lq4AHnE1F+E1AxR9jyxdPtcGzTubyw=; b=smaUWW1AaR9bYp nkzAklGDYxTQXMdOLY+7d9GcJRLuxMS9VZ678yEkjNAxkchNBoDmyHR5U/D9xRKeR225IZVuk4hGT MhGV5HxD6fHw2xC90jrlxSh5FkTVd34suSh+FJ5vMnLHllZ/Nsbk6EF7FIsdY+ESmRl06/cSLZlBx FhpuZgMj9XWLtiRVLq7l7wSNLIGBSl5OLLXh9vDVIDhQPO7tL9n3klj2dU23RiE5t5uFqilkkUFU3 I0ILjZ8Xj0xbN4EnUY5x99LQ7mEsIwa5RxFL5j2BQ7s8KsCEQdzo1/uuzj8LFZ9GAEbRtBnnNMEnA iLkIhac4YF0r/2HYUzaw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1e22rm-0006zR-3f; Tue, 10 Oct 2017 22:19:10 +0000 Received: from mail2.candelatech.com ([208.74.158.173]) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1e22rj-0006x1-3Z for lede-dev@lists.infradead.org; Tue, 10 Oct 2017 22:19:08 +0000 Received: from ben-dt3.candelatech.com (firewall.candelatech.com [50.251.239.81]) by mail2.candelatech.com (Postfix) with ESMTP id 71F9A40A5A2; Tue, 10 Oct 2017 15:18:45 -0700 (PDT) From: greearb@candelatech.com To: lede-dev@lists.infradead.org Date: Tue, 10 Oct 2017 15:18:40 -0700 Message-Id: <1507673920-27184-1-git-send-email-greearb@candelatech.com> X-Mailer: git-send-email 2.4.11 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20171010_151907_191717_97AB4042 X-CRM114-Status: GOOD ( 10.83 ) X-Spam-Score: -1.9 (-) X-Spam-Report: SpamAssassin version 3.4.1 on bombadil.infradead.org summary: Content analysis details: (-1.9 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 SPF_PASS SPF: sender matches SPF record -0.0 RP_MATCHES_RCVD Envelope sender domain matches handover relay domain -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] Subject: [LEDE-DEV] [PATCH] mac80211: Add patch to re-enable setting a single rate. X-BeenThere: lede-dev@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Ben Greear MIME-Version: 1.0 Sender: "Lede-dev" Errors-To: lede-dev-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org From: Ben Greear This lets one use 'iw' to set individual rates on ath10k again. Signed-off-by: Ben Greear --- .../111-mac80211_allow_single_tx_rate_again.patch | 33 ++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 package/kernel/mac80211/patches/111-mac80211_allow_single_tx_rate_again.patch diff --git a/package/kernel/mac80211/patches/111-mac80211_allow_single_tx_rate_again.patch b/package/kernel/mac80211/patches/111-mac80211_allow_single_tx_rate_again.patch new file mode 100644 index 0000000..c88ab2b --- /dev/null +++ b/package/kernel/mac80211/patches/111-mac80211_allow_single_tx_rate_again.patch @@ -0,0 +1,33 @@ +From f1f0375f67622c4f5c2faeb03c0275e4f7e8191a Mon Sep 17 00:00:00 2001 +From: Ben Greear +Date: Tue, 10 Oct 2017 13:56:29 -0700 +Subject: [PATCH] mac80211: Revert some of e8e4f5, fixes setting single rate + in ath10k. + +This lets us successfully set a single rate in ath10k again. + +Signed-off-by: Ben Greear +--- + net/mac80211/cfg.c | 6 ++++-- + 1 file changed, 4 insertions(+), 2 deletions(-) + +diff --git a/net/mac80211/cfg.c b/net/mac80211/cfg.c +index d4c2511..087d33a 100644 +--- a/net/mac80211/cfg.c ++++ b/net/mac80211/cfg.c +@@ -2756,8 +2756,10 @@ static int ieee80211_set_bitrate_mask(struct wiphy *wiphy, + u32 basic_rates = sdata->vif.bss_conf.basic_rates; + enum nl80211_band band = sdata->vif.bss_conf.chandef.chan->band; + +- if (!(mask->control[band].legacy & basic_rates)) +- return -EINVAL; ++ if (!(mask->control[band].legacy & basic_rates)) { ++ pr_err("%s: WARNING: no legacy rates for band[%d] in set-bitrate-mask.\n", ++ sdata->dev->name, band); ++ } + } + + for (i = 0; i < NUM_NL80211_BANDS; i++) { +-- +2.4.11 +