Commit 822cab19 authored by Johannes Berg's avatar Johannes Berg
Browse files

wifi: mac80211: don't recreate driver link debugfs in reconfig



We can delete any that we want to remove, but we can't
recreate the links as they already exist.

Fixes: 170cd6a6 ("wifi: mac80211: add netdev per-link debugfs data and driver hook")
Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
Signed-off-by: default avatarGregory Greenman <gregory.greenman@intel.com>
Link: https://lore.kernel.org/r/20230928172905.3d0214838421.I512a0ff86f631ff42bf25ea0cb2e8e8616794a94@changeid


Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
parent 6b398f1c
Loading
Loading
Loading
Loading
+6 −3
Original line number Diff line number Diff line
@@ -526,11 +526,14 @@ int drv_change_vif_links(struct ieee80211_local *local,
	if (ret)
		return ret;

	for_each_set_bit(link_id, &links_to_add, IEEE80211_MLD_MAX_NUM_LINKS) {
	if (!local->in_reconfig) {
		for_each_set_bit(link_id, &links_to_add,
				 IEEE80211_MLD_MAX_NUM_LINKS) {
			link = rcu_access_pointer(sdata->link[link_id]);

			ieee80211_link_debugfs_drv_add(link);
		}
	}

	return 0;
}