OSDN Git Service

wifi: mac80211: refactor some key code
authorJohannes Berg <johannes.berg@intel.com>
Thu, 19 May 2022 21:27:22 +0000 (23:27 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 10 Jun 2022 14:12:57 +0000 (16:12 +0200)
commit8cbf0c2ab6dfd61066a6ce49d9d37d3d25b2d05f
treeb1d61a002133d3cddfff3681d2505f54e9759121
parent23a5f0af6ff43195c6fd15d8ae59d019836a6046
wifi: mac80211: refactor some key code

There's some pretty close code here, with the exception
of RCU dereference vs. protected dereference. Refactor
this to just return a pointer and then do the deref in
the caller later.

Change-Id: Ide5315e2792da6ac66eaf852293306a3ac71ced9
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/cfg.c
net/mac80211/key.h