From patchwork Fri Dec 13 09:26:36 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Crispin X-Patchwork-Id: 11290287 X-Patchwork-Delegate: johannes@sipsolutions.net Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 98DDA1593 for ; Fri, 13 Dec 2019 09:26:46 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 8090D2077B for ; Fri, 13 Dec 2019 09:26:46 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726427AbfLMJ0p (ORCPT ); Fri, 13 Dec 2019 04:26:45 -0500 Received: from nbd.name ([46.4.11.11]:32788 "EHLO nbd.name" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725770AbfLMJ0p (ORCPT ); Fri, 13 Dec 2019 04:26:45 -0500 Received: from pd95fd344.dip0.t-ipconnect.de ([217.95.211.68] helo=bertha.fritz.box) by ds12 with esmtpa (Exim 4.89) (envelope-from ) id 1ifhDe-0001pp-VG; Fri, 13 Dec 2019 10:26:43 +0100 From: John Crispin To: Johannes Berg Cc: linux-wireless@vger.kernel.org, Pradeep Kumar Chitrapu , Sven Eckelmann , John Crispin Subject: [PATCH] mac80211: he_support was not set when bringing up a HE mesh interface Date: Fri, 13 Dec 2019 10:26:36 +0100 Message-Id: <20191213092636.17736-1-john@phrozen.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org From: Pradeep Kumar Chitrapu The he_support flag inside bss_conf was not set when a HE mesh interface gets created. This causes the drivers to not set the HW up correctly. Fixes: 60ad72da55ac ("mac80211: implement HE support for mesh") Cc: Sven Eckelmann Signed-off-by: John Crispin Signed-off-by: Pradeep Kumar Chitrapu --- net/mac80211/mesh.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/net/mac80211/mesh.c b/net/mac80211/mesh.c index d09b3c789314..98d70f4ef6a4 100644 --- a/net/mac80211/mesh.c +++ b/net/mac80211/mesh.c @@ -551,6 +551,8 @@ int mesh_add_he_cap_ie(struct ieee80211_sub_if_data *sdata, sdata->vif.bss_conf.chandef.width == NL80211_CHAN_WIDTH_10) return 0; + sdata->vif.bss_conf.he_support = 1; + if (skb_tailroom(skb) < ie_len) return -ENOMEM;