Skip to content

Commit 63bafd9

Browse files
committed
wifi: mac80211: don't re-add debugfs during reconfig
If we're doing reconfig, then we cannot add the debugfs files that are already there from before the reconfig. Skip that in drv_change_sta_links() during reconfig. Fixes: d2caad5 ("wifi: mac80211: add API to show the link STAs in debugfs") Signed-off-by: Johannes Berg <[email protected]> Reviewed-by: Gregory Greenman <[email protected]> Reviewed-by: Benjamin Berg <[email protected]> Signed-off-by: Miri Korenblit <[email protected]> Link: https://msgid.link/20231211085121.88a950f43e16.Id71181780994649219685887c0fcad33d387cc78@changeid Signed-off-by: Johannes Berg <[email protected]>
1 parent 23484d8 commit 63bafd9

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

net/mac80211/driver-ops.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// SPDX-License-Identifier: GPL-2.0-only
22
/*
33
* Copyright 2015 Intel Deutschland GmbH
4-
* Copyright (C) 2022 Intel Corporation
4+
* Copyright (C) 2022-2023 Intel Corporation
55
*/
66
#include <net/mac80211.h>
77
#include "ieee80211_i.h"
@@ -589,6 +589,10 @@ int drv_change_sta_links(struct ieee80211_local *local,
589589
if (ret)
590590
return ret;
591591

592+
/* during reconfig don't add it to debugfs again */
593+
if (local->in_reconfig)
594+
return 0;
595+
592596
for_each_set_bit(link_id, &links_to_add, IEEE80211_MLD_MAX_NUM_LINKS) {
593597
link_sta = rcu_dereference_protected(info->link[link_id],
594598
lockdep_is_held(&local->hw.wiphy->mtx));

0 commit comments

Comments
 (0)