]> git.baikalelectronics.ru Git - kernel.git/commit
cfg80211/mac80211: Allow user space to register for station Rx authentication
authorIlan Peer <ilan.peer@intel.com>
Fri, 31 Jan 2020 11:45:29 +0000 (13:45 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 7 Feb 2020 11:54:09 +0000 (12:54 +0100)
commit5c0d0c31c232782f34aa3a18436d449580ab694f
tree7387c345827a1ef86cc2b2ca3aabd326834dec86
parent9685b1ec3a034b97f57798c2630b8f7ad549f845
cfg80211/mac80211: Allow user space to register for station Rx authentication

To support Pre Association Security Negotiation (PASN) while already
associated to one AP, allow user space to register to Rx
authentication frames, so that the user space logic would be able to
receive/handle authentication frames from a different AP as part of
PASN.

Note that it is expected that user space would intelligently register
for Rx authentication frames, i.e., only when PASN is used and
configure a match filter only for PASN authentication algorithm, as
otherwise the MLME functionality of mac80211 would be broken.

Additionally, since some versions of the user space daemons wrongly
register to all types of authentication frames (which might result in
unexpected behavior) allow such registration if the request is for a
specific authentication algorithm number.

Signed-off-by: Ilan Peer <ilan.peer@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
Link: https://lore.kernel.org/r/20200131114529.894206-1-luca@coelho.fi
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/main.c
net/wireless/core.h
net/wireless/mlme.c
net/wireless/nl80211.c