mirror of
https://github.com/hardkernel/linux.git
synced 2026-03-25 20:10:23 +09:00
UPSTREAM: 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. Bug: 254441685 Fixes:f2a0290b2d("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> (cherry picked from commit1ff56684fa) Signed-off-by: Lee Jones <joneslee@google.com> Change-Id: I8e3c2ff671437de0fdc3c40b9ee7c9eb7849eec9
This commit is contained in:
committed by
Treehugger Robot
parent
dc11ed25f7
commit
9b46997240
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user