Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp739494rwd; Thu, 8 Jun 2023 07:10:25 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ60x88XhTrKvAqlrnxx90HN84/k8VzcD70YGHQJNVhoFd+ZJWmd/+nShLvArARx49aL2D2t X-Received: by 2002:a05:6a20:9388:b0:114:6993:5a3b with SMTP id x8-20020a056a20938800b0011469935a3bmr5573393pzh.13.1686233425551; Thu, 08 Jun 2023 07:10:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686233425; cv=none; d=google.com; s=arc-20160816; b=LcENwWCzG0uvwXa+qvWkwwyudsNCk92VmxAMjQVBj9gUmFiv/Wm2zgBrsDrHER6h1R U+FxNYHejHcrjKLrB5/pfAs3oPs3ImGD7kBp06pOhIqHB8/d2cwcV3Qmmju96P5LfFRE GvvtJKFy6eEfZRHfG+T/WCQDgn6K3LrervT5SQj6/t96n+wY0zIz/BmcYHU8n/+3lLSj 7m3SsnYcI9U/bNdWjR34LLZFH5akSrxI9rUQANPZ7zTUAIWJ18E/xjB4xzotxuVeersy e0GuTq2oaelKUpg9XCpwLSHf6HJh1sXF8DdQb0sTUxekUsbESr0onNxXimv3YaN2YiT0 xaFQ== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=/f+zLWPbVm5/8CUYNRP90pOl5Tizcg+tPMZZNBkRK2E=; b=UT8kRfK2RcdR38W1N3ud0H7nNDL4zyRvDf/Ezosqj57gGYtkmBjgneXuS72eFflq4A WdYcwoGnFCeTojTQvb4MR+0nhY7ue2fPZUkq0WOBk1o+58yIBn7HBDeiFJydnUIZucWQ yqf/m4dQ1yHRF1qFZ/uoym+7nI6rK0y98QLDg3KgOP0WHFvMzXhMyOfho9rdSHVAi6Ku 0l1BFG6nq4U30Z8aRgk4Ki1WKbleqzmIktyt7K1MvW8fW4eCBxZhBS/UiDZCgdFHRhlR 9klrFiBhAUBzaarLbrax3YMWZP60eVnooT31JspQznIVnY7QdNR8UspcwnEs2om8SXvr uqcw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=DPBhp78x; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s65-20020a637744000000b005406e76606csi1003022pgc.900.2023.06.08.07.10.16; Thu, 08 Jun 2023 07:10:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-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=@intel.com header.s=Intel header.b=DPBhp78x; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236852AbjFHOHY (ORCPT + 61 others); Thu, 8 Jun 2023 10:07:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45204 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236870AbjFHOHO (ORCPT ); Thu, 8 Jun 2023 10:07:14 -0400 Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 23BF62D76 for ; Thu, 8 Jun 2023 07:07:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1686233233; x=1717769233; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=2/7nb2cQ7Hniq+3nBlE2/lCePJJQb5qGKE5M1Dca+pM=; b=DPBhp78xdO/t4y9zBDQzn8iBoQa7mI7iTNgTlXfE1REVMqBowpJ+q6Nq /+goyF2WbSBU1KNuwJAUD9ZVGh3MDc+xsWDihuTdznyMOoasGavmszIwq E13LC1jRMZsrOOflpJRD8LKv5A7ZgrHhuvDW9F51EZwQF1998W0NiMWR0 TZnkEIksEis5SWOXvg5IQSYlddspF38SAnjoS+0wryiQIMa5XO6T+Zr5e Xio6U4jmnoReZ+W1mD/bu+SXxIXCaiy63c27ljLkBiXZAxi28qV7o9PzF +aqolsyCG9PW7TpIt52gySYNw9yq5gLgmYqgXvECDXvbWNIOcQW7CjSSp Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10734"; a="423176215" X-IronPort-AV: E=Sophos;i="6.00,226,1681196400"; d="scan'208";a="423176215" Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Jun 2023 06:36:35 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10734"; a="956706189" X-IronPort-AV: E=Sophos;i="6.00,226,1681196400"; d="scan'208";a="956706189" Received: from unknown (HELO ggreenma-mobl2.intel.com) ([10.249.94.100]) by fmsmga006-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Jun 2023 06:36:33 -0700 From: gregory.greenman@intel.com To: johannes@sipsolutions.net Cc: linux-wireless@vger.kernel.org, Benjamin Berg , Gregory Greenman Subject: [PATCH 05/15] wifi: cfg80211: fix link del callback to call correct handler Date: Thu, 8 Jun 2023 16:36:01 +0300 Message-Id: <20230608163202.ebd00e000459.Iaff7dc8d1cdecf77f53ea47a0e5080caa36ea02a@changeid> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20230608133611.1303724-1-gregory.greenman@intel.com> References: <20230608133611.1303724-1-gregory.greenman@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_NONE,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-wireless@vger.kernel.org From: Benjamin Berg The wrapper function was incorrectly calling the add handler instead of the del handler. This had no negative side effect as the default handlers are essentially identical. Fixes: f2a0290b2df2 ("wifi: cfg80211: add optional link add/remove callbacks") Signed-off-by: Benjamin Berg Signed-off-by: Gregory Greenman --- net/wireless/rdev-ops.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/net/wireless/rdev-ops.h b/net/wireless/rdev-ops.h index 2e497cf26ef2..69b508743e57 100644 --- a/net/wireless/rdev-ops.h +++ b/net/wireless/rdev-ops.h @@ -2,7 +2,7 @@ /* * Portions of this file * Copyright(c) 2016-2017 Intel Deutschland GmbH - * Copyright (C) 2018, 2021-2022 Intel Corporation + * Copyright (C) 2018, 2021-2023 Intel Corporation */ #ifndef __CFG80211_RDEV_OPS #define __CFG80211_RDEV_OPS @@ -1441,8 +1441,8 @@ rdev_del_intf_link(struct cfg80211_registered_device *rdev, unsigned int link_id) { trace_rdev_del_intf_link(&rdev->wiphy, wdev, link_id); - if (rdev->ops->add_intf_link) - rdev->ops->add_intf_link(&rdev->wiphy, wdev, link_id); + if (rdev->ops->del_intf_link) + rdev->ops->del_intf_link(&rdev->wiphy, wdev, link_id); trace_rdev_return_void(&rdev->wiphy); } -- 2.38.1