[OpenWrt-Devel] [PATCH] ralink: remove VHT capabilities when not using 802.11ac

John Crispin blogic at openwrt.org
Tue Feb 3 02:58:47 EST 2015


Hi,

On 03/02/2015 02:54, wengbj wrote:
> Signed-off-by: wengbj <fl.service at t-firefly.com>
> ---
>  .../0001-mt7602-remove-vht-capabilities.patch      |   46 ++++++++++++++++++++
>  1 file changed, 46 insertions(+)
>  create mode 100644 package/kernel/mt76/patches/0001-mt7602-remove-vht-capabilities.patch
> 
> diff --git a/package/kernel/mt76/patches/0001-mt7602-remove-vht-capabilities.patch b/package/kernel/mt76/patches/0001-mt7602-remove-vht-capabilities.patch
> new file mode 100644
> index 0000000..397fbbf
> --- /dev/null
> +++ b/package/kernel/mt76/patches/0001-mt7602-remove-vht-capabilities.patch
> @@ -0,0 +1,46 @@
> +--- a/init.c
> ++++ b/init.c
> +@@ -682,24 +682,27 @@ mt76_init_sband(struct mt76_dev *dev, st
> + 	ht_cap->ampdu_factor = IEEE80211_HT_MAX_AMPDU_64K;
> + 	ht_cap->ampdu_density = IEEE80211_HT_MPDU_DENSITY_4;
> + 
> +-	vht_cap = &sband->vht_cap;
> +-	vht_cap->vht_supported = true;
> ++    if (dev->cap.has_5ghz)
> ++    {
> +
      ^  whitespace bug, space vs tab. please fix and resend




+	    vht_cap = &sband->vht_cap;
> ++	    vht_cap->vht_su
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel



More information about the openwrt-devel mailing list