mac80211: allow SA-QUERY processing in userspace
authorJohannes Berg <johannes.berg@intel.com>
Tue, 26 May 2020 08:31:33 +0000 (10:31 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 27 May 2020 08:02:04 +0000 (10:02 +0200)
commit1ea02224afc29431880a67b8c3198146cc01d33e
treecbe4fa1da339d688ab93df7135d1487cef7eda3a
parentdca9ca2d588bd2c0989c671f048540b82e57cf1e
mac80211: allow SA-QUERY processing in userspace

As discussed with Mathy almost two years ago in
http://lore.kernel.org/r/20180806224857.14853-1-Mathy.Vanhoef@cs.kuleuven.be
we should let userspace process SA-QUERY frames if it
wants to, so that it can handle OCV (operating channel
validation) which mac80211 doesn't know how to.

Evidently I had been expecting Mathy to (re)send such a
patch, but he never did, perhaps expecting me to do it
after our discussion.

In any case, this came up now with OCV getting more
attention, so move the code around as discussed there
to let userspace handle it, and do it properly.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Link: https://lore.kernel.org/r/20200526103131.1f9cf7e5b6db.Iae5b42b09ad2b1cbcbe13492002c43f0d1d51dfc@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/rx.c