Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp5730170ybf; Thu, 5 Mar 2020 06:05:23 -0800 (PST) X-Google-Smtp-Source: ADFU+vv9Kai66SG7Gg+1YCYPPwimPXgUxAAdPG2JJsPoVN031XN+TuaxCXkkvsvqJDOODctOQmK2 X-Received: by 2002:aca:2114:: with SMTP id 20mr242130oiz.147.1583417123151; Thu, 05 Mar 2020 06:05:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583417123; cv=none; d=google.com; s=arc-20160816; b=cA8LxtAG8D+DMmqwMjiDOU6bqJhwTKQEpbyi5yzP8wR2ZDWtvdVKIjpXkx/DUoyc3k M35Lpoi65arKp5tNoHnYw1lQ72aCgM8sA8mdhyLyC/oa/oh+XcHwYyFXe9JsCSMMximf q8n85QtKGYK21ffbMtHLSnPllcXGrWl90Kq5cAqo/ed3BBS0KxpQZHF5+bxajR1AD/C1 j4gRCkGNqrU5yKIa4cAhHMbfyjuPPTpOxQwxu/okksgMfLm9MJf/+HOmXnv6rTN9fJ70 IFa6gH/ZXq7XhVO4prdKuh2ubvYnKowrYa4PV5NOzwWUHA+oajaGiLaYhJ9eSaBeQVWK 9SCQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=CV+ny+ZJGtFcdpP4izQqCbNPzZOZa9nPAwjo/K9DdqY=; b=OcMJ6f2DmOAHhfN3oq3GWZKnBur5ACgI/AFTrdcg9ywB+1YCKZLrITDFlJmR4rma3O o+NhAnAn2HV/yUuBSZmURJszjaTUfG7csxlgl7AKrpV8nfgDlYh9KQgobC7tlGkYU0T6 bp6WXTTAAbY6f+M95MpcETui1tSHAxn994PgPbpoND0SZjpIpSrB61JcMLauOWeVUP7M kf5Z2rqdAbTLGj7XGHGza8K8sojJz7a8W0VJGqMYSAUdN0JMve8GvluaYh9GDbIL7UsG mmiJj8OfXOuBj0TCHUKOPn0NnzbCPTT+ItqtVaDuI/46uKO81FELN5nHpYlzO0HeOFJO a0aA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c8si3568750oto.95.2020.03.05.06.04.37; Thu, 05 Mar 2020 06:05:23 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726220AbgCEOEQ (ORCPT + 99 others); Thu, 5 Mar 2020 09:04:16 -0500 Received: from mailext.lri.fr ([129.175.15.10]:48382 "HELO mailext.lri.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1726204AbgCEOEQ (ORCPT ); Thu, 5 Mar 2020 09:04:16 -0500 X-Greylist: delayed 371 seconds by postgrey-1.27 at vger.kernel.org; Thu, 05 Mar 2020 09:04:15 EST Received: from [129.175.15.10] (mailext.lri.fr [129.175.15.10]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by mailext.lri.fr (Postfix) with ESMTPSA id B41D7C0FAD; Thu, 5 Mar 2020 15:04:14 +0100 (CET) From: Nicolas Cavallari To: linux-wireless@vger.kernel.org Cc: Johannes Berg Subject: [PATCH] mac80211: Do not send mesh HWMP PREQ if HWMP is disabled Date: Thu, 5 Mar 2020 15:04:09 +0100 Message-Id: <20200305140409.12204-1-cavallar@lri.fr> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org From: Nicolas Cavallari When trying to transmit to an unknown destination, the mesh code would unconditionally transmit a HWMP PREQ even if HWMP is not the current path selection algorithm. Signed-off-by: Nicolas Cavallari --- net/mac80211/mesh_hwmp.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/net/mac80211/mesh_hwmp.c b/net/mac80211/mesh_hwmp.c index d69983370381..38a0383dfbcf 100644 --- a/net/mac80211/mesh_hwmp.c +++ b/net/mac80211/mesh_hwmp.c @@ -1152,7 +1152,8 @@ int mesh_nexthop_resolve(struct ieee80211_sub_if_da= ta *sdata, } } =20 - if (!(mpath->flags & MESH_PATH_RESOLVING)) + if (!(mpath->flags & MESH_PATH_RESOLVING) && + mesh_path_sel_is_hwmp(sdata)) mesh_queue_preq(mpath, PREQ_Q_F_START); =20 if (skb_queue_len(&mpath->frame_queue) >=3D MESH_FRAME_QUEUE_LEN) --=20 2.25.1