Lets make wifi fast again!
 help / color / mirror / Atom feed
* Re: [Make-wifi-fast] [LEDE-DEV] [PATCH] mac80211: Add patch to re-enable setting a single rate.
       [not found] <1507673920-27184-1-git-send-email-greearb@candelatech.com>
@ 2017-10-11 22:12 ` Dave Taht
  0 siblings, 0 replies; only message in thread
From: Dave Taht @ 2017-10-11 22:12 UTC (permalink / raw)
  To: greearb; +Cc: make-wifi-fast


looks helpful on seeing if the ath10k code is still doing what we want.

greearb@candelatech.com writes:

> From: Ben Greear <greearb@candelatech.com>
>
> This lets one use 'iw' to set individual rates on ath10k again.
>
> Signed-off-by: Ben Greear <greearb@candelatech.com>
> ---
>  .../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 <greearb@candelatech.com>
> +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 <greearb@candelatech.com>
> +---
> + 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
> +

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2017-10-11 22:12 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <1507673920-27184-1-git-send-email-greearb@candelatech.com>
2017-10-11 22:12 ` [Make-wifi-fast] [LEDE-DEV] [PATCH] mac80211: Add patch to re-enable setting a single rate Dave Taht

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox