Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp3286652ybb; Tue, 31 Mar 2020 02:07:47 -0700 (PDT) X-Google-Smtp-Source: ADFU+vtulArRf6xIzDDMfIE7rqCx45f7ge6tjNRwsrimLaEUOdXNKwKK6QWdzuv5b6/lvd6sMsKk X-Received: by 2002:aca:1e0e:: with SMTP id m14mr1398597oic.136.1585645667446; Tue, 31 Mar 2020 02:07:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585645667; cv=none; d=google.com; s=arc-20160816; b=cL2fxhDUNE92ilLwjJA9NvHtUX0gOAGX904hy4mWRTouNXUhLjtIbT0zsT+6t3QBm/ 8tfa2bf8zevIhKkskG7DwyKMjU9YTDUMidJWDM8zV5kbKxEJzbKuOEIRjDh8jNBsmR1W APlqkDrSYulPFhXQ+WxydpFcfBqb4nuzBuE6yxS1fNMjSiupYfmD9WpzfLZ4WqGDmCH1 VAuWlHFlDglwHDeG1OJatTpDZWLp2ynYTjKkrAinsJUpcQvK2Jf0ZZf720BeW1ztuSBO vHfwV1zXotYjTb0a3eIdIrYZabEzL9o1KoNEyh2M3ZJf4uGh5XlV+RKlgw7gscjIh3hP j6ZA== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=QoP+LHuS1sQSPd3XC7RITwh8EUOiQmpGIQrTAjOs4mU=; b=JZN1Z+Wy51qtZEL0ah3OzBlEN8AU6GZhYI17kqxrXP9gK34ij6ZvCIaFeT1sjSNM4/ dENIs10t6yxaN5zt2FPBQlcLhe+c8ehgYnpStEDUTf5tRVBw5hSOhjxEfF6L7lE9ErKP 54WMiDL46UiDcT/jHi0sKDA+SMU47GtH4+fxxCqTDwylAxrwsEL2C7Uj0WXlIJNPlUGt raJG8t3eaqeA7JdG1FZWNp9dvBJGw4fqzXFppIzjN7XqYxp60bJIiJeCfXXFn0IPWd0z Th1W0GBsBCZC4tkdI0TnWqein303uTNZUN8Zi143a3TWdalxDEDcOoOeCoBkwIkNu2u/ EfKg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=FPV5FsvT; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-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 z12si7431045otm.3.2020.03.31.02.07.35; Tue, 31 Mar 2020 02:07:47 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=FPV5FsvT; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731228AbgCaJHU (ORCPT + 99 others); Tue, 31 Mar 2020 05:07:20 -0400 Received: from mail.kernel.org ([198.145.29.99]:48986 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731219AbgCaJHQ (ORCPT ); Tue, 31 Mar 2020 05:07:16 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 7816020675; Tue, 31 Mar 2020 09:07:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1585645635; bh=CamO4UEFcXfw9TeICbbmIbQ1M6RNs/sXyPRb67bcy08=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=FPV5FsvTUUGEooexGkto0tOBE5AZlOk4TMHmKPXJMcDM10psEF9pgrqmW9hQ7YkWd umAcSjzRk1mpRLC0wMJxVZfQs5w1fILIkr7ikxGJZfGccEufkeJCP2w0VaBRRre4aV enaZ6o+ch+CULKfqRslrsbNbkKiAoe7vXQ9qJYG8= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Nicolas Cavallari , Johannes Berg , Sasha Levin Subject: [PATCH 5.5 076/170] mac80211: Do not send mesh HWMP PREQ if HWMP is disabled Date: Tue, 31 Mar 2020 10:58:10 +0200 Message-Id: <20200331085432.419679919@linuxfoundation.org> X-Mailer: git-send-email 2.26.0 In-Reply-To: <20200331085423.990189598@linuxfoundation.org> References: <20200331085423.990189598@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Nicolas Cavallari [ Upstream commit ba32679cac50c38fdf488296f96b1f3175532b8e ] 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 Link: https://lore.kernel.org/r/20200305140409.12204-1-cavallar@lri.fr Signed-off-by: Johannes Berg Signed-off-by: Sasha Levin --- 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 d699833703819..38a0383dfbcfa 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_data *sdata, } } - 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); if (skb_queue_len(&mpath->frame_queue) >= MESH_FRAME_QUEUE_LEN) -- 2.20.1