Skip to content

Commit c1d3ad8

Browse files
denkenzjmberg-intel
authored andcommitted
cfg80211: Purge frame registrations on iftype change
Currently frame registrations are not purged, even when changing the interface type. This can lead to potentially weird situations where frames possibly not allowed on a given interface type remain registered due to the type switching happening after registration. The kernel currently relies on userspace apps to actually purge the registrations themselves, this is not something that the kernel should rely on. Add a call to cfg80211_mlme_purge_registrations() to forcefully remove any registrations left over prior to switching the iftype. Cc: [email protected] Signed-off-by: Denis Kenzior <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Johannes Berg <[email protected]>
1 parent b697746 commit c1d3ad8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

net/wireless/util.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -964,6 +964,7 @@ int cfg80211_change_iface(struct cfg80211_registered_device *rdev,
964964
}
965965

966966
cfg80211_process_rdev_events(rdev);
967+
cfg80211_mlme_purge_registrations(dev->ieee80211_ptr);
967968
}
968969

969970
err = rdev_change_virtual_intf(rdev, dev, ntype, params);

0 commit comments

Comments
 (0)