]> git.baikalelectronics.ru Git - kernel.git/commit
cfg80211: Purge frame registrations on iftype change
authorDenis Kenzior <denkenz@gmail.com>
Wed, 28 Aug 2019 21:11:10 +0000 (16:11 -0500)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 11 Sep 2019 08:45:10 +0000 (10:45 +0200)
commitfbf9b5641c259aec1d7264bacee71382893214f3
tree3af40141142325c1403289f2623f85ea9b6e1596
parent339f0bf8cac2c5c31563b3e15c42692ed2da5a3d
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: stable@vger.kernel.org
Signed-off-by: Denis Kenzior <denkenz@gmail.com>
Link: https://lore.kernel.org/r/20190828211110.15005-1-denkenz@gmail.com
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/wireless/util.c