Skip to content

Commit 1ff5668

Browse files
benzeajmberg-intel
authored andcommitted
wifi: cfg80211: fix link del callback to call correct handler
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: f2a0290 ("wifi: cfg80211: add optional link add/remove callbacks") Signed-off-by: Benjamin Berg <benjamin.berg@intel.com> Signed-off-by: Gregory Greenman <gregory.greenman@intel.com> Link: https://lore.kernel.org/r/20230608163202.ebd00e000459.Iaff7dc8d1cdecf77f53ea47a0e5080caa36ea02a@changeid Signed-off-by: Johannes Berg <johannes.berg@intel.com>
1 parent 01605ad commit 1ff5668

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

net/wireless/rdev-ops.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
/*
33
* Portions of this file
44
* Copyright(c) 2016-2017 Intel Deutschland GmbH
5-
* Copyright (C) 2018, 2021-2022 Intel Corporation
5+
* Copyright (C) 2018, 2021-2023 Intel Corporation
66
*/
77
#ifndef __CFG80211_RDEV_OPS
88
#define __CFG80211_RDEV_OPS
@@ -1441,8 +1441,8 @@ rdev_del_intf_link(struct cfg80211_registered_device *rdev,
14411441
unsigned int link_id)
14421442
{
14431443
trace_rdev_del_intf_link(&rdev->wiphy, wdev, link_id);
1444-
if (rdev->ops->add_intf_link)
1445-
rdev->ops->add_intf_link(&rdev->wiphy, wdev, link_id);
1444+
if (rdev->ops->del_intf_link)
1445+
rdev->ops->del_intf_link(&rdev->wiphy, wdev, link_id);
14461446
trace_rdev_return_void(&rdev->wiphy);
14471447
}
14481448

0 commit comments

Comments
 (0)