Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp3261902rwb; Mon, 15 Aug 2022 22:37:21 -0700 (PDT) X-Google-Smtp-Source: AA6agR56qMsZ8IDGOj8yqE/nLb0ZyS0NsLxvhJP7VUFPLkSlKx+ftOxdQod5+wNd54CibdXlM7bu X-Received: by 2002:a63:5f86:0:b0:41c:f1:f494 with SMTP id t128-20020a635f86000000b0041c00f1f494mr17141103pgb.51.1660628241304; Mon, 15 Aug 2022 22:37:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660628241; cv=none; d=google.com; s=arc-20160816; b=V8mV9YNr87MUZu7060iteXAWQB1fkQOvBq7D85kmlaITuH3nw8VIxph6AOf54giA7P DH5UHCNn8fmwKF6rW5Po0GM835KXbCjammdM52SadganNkjml2/6UxyRzKVrGne7iVyP /eQIS13SGbe2Ehlqaymiu7GZVym9cH/qmCl0bZGf6gR1ds1o3+BLQ2QEnjX1NB3jHwoV 3qglURYhy25pkX3Hwh6a1mZ53Vc7IlW3d6Yldq0ktMklUB7QJlieyCu4b1a6LGF6EnM/ vO1y4AEspP8qcBoQLg+yLnci6/KE4ltHjFL1M9KYJDPO9KvYUKJGOT5+omLV43596edW Ah6Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=e7KPYYT9CBmQxOoRQ61Zmp5cSYHusS8EY9qGaK3uzqA=; b=pzXTIFfnTgSLXNS49H6YBzTbJexOEkF3TTytlm8M2zgeTbZcRTLz7qbNEAF6MCDsgx BpcmovTM8/gK6y+2CptCOtavV+7GU/DSB5ed0yEeSgVkf1isG+ZIHVqPd3g25/6e71iW 9lwoIkx63I2pkjOh1o5seTtD7uWOmNnWBTm/8K3eoJ5Ir+qJtr8eQw4Q/e9UeOYXHwAV /EMcKThRy0pF7mDYJPAg9ZoQfLGhKMgpoC5C8Nu24MJE3nHVeXEv9yE5xTRkiOy1yJI/ 0oawI3QZ5/nx7Jp5C72ii9rEbfgYux/48lsxoAv57IGk/SKHORWMeF16XvgKYXBJPZHM wnuw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=MHAKOQcm; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y200-20020a6264d1000000b0052b1d70991csi758pfb.242.2022.08.15.22.37.10; Mon, 15 Aug 2022 22:37:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=MHAKOQcm; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234041AbiHPE5h (ORCPT + 99 others); Tue, 16 Aug 2022 00:57:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56644 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234219AbiHPE4a (ORCPT ); Tue, 16 Aug 2022 00:56:30 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CEF10BBA67; Mon, 15 Aug 2022 13:51:25 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 26DD9B811A1; Mon, 15 Aug 2022 20:51:07 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 713A8C433C1; Mon, 15 Aug 2022 20:51:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1660596665; bh=PJly4xxA0KHxTLeU6eH53rLAotSf69fCsTaHrNR2ODA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=MHAKOQcm21tXdarq9cL6gx1tE0cLt4QGKlk4K4mnjdR5JuX4/NM/M0RpBFYnz1Kpp 8LpFvLjDHRX2YTwZ7YtBiPXzT/ELBaQK2uJEzlwdzIKN6hSEqAipLdbMcJwt0+4kyo tKvRvAE4uGcNa89D6FC8euyCOl9sNTMK/i5clYTw= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Johannes Berg Subject: [PATCH 5.19 1151/1157] wifi: cfg80211: remove chandef check in cfg80211_cac_event() Date: Mon, 15 Aug 2022 20:08:27 +0200 Message-Id: <20220815180526.577115424@linuxfoundation.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220815180439.416659447@linuxfoundation.org> References: <20220815180439.416659447@linuxfoundation.org> User-Agent: quilt/0.67 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Johannes Berg commit d6f671c8a339d5b655acfacb8be6918c744fbabf upstream. The current check only worked for AP mode, but we can do radar detection in mesh as well (for example). We could try to check this using wdev_chandef(), but we also don't really care since the chandef is passed in and we have no need to use it anymore (since we added the argument in commit d2859df5e7f0 ("cfg80211/mac80211: DFS setup chandef for cac event")). Change-Id: I856e4344d5e64ff4d2eead0b4c53b11f264be9b8 Fixes: 7b0a0e3c3a88 ("wifi: cfg80211: do some rework towards MLO link APIs") Signed-off-by: Johannes Berg Signed-off-by: Greg Kroah-Hartman --- net/wireless/mlme.c | 3 --- 1 file changed, 3 deletions(-) --- a/net/wireless/mlme.c +++ b/net/wireless/mlme.c @@ -955,9 +955,6 @@ void cfg80211_cac_event(struct net_devic if (WARN_ON(!wdev->cac_started && event != NL80211_RADAR_CAC_STARTED)) return; - if (WARN_ON(!wdev->links[0].ap.chandef.chan)) - return; - switch (event) { case NL80211_RADAR_CAC_FINISHED: timeout = wdev->cac_start_time +