summaryrefslogtreecommitdiff
path: root/drivers/net/wireless/virtual/mac80211_hwsim.c
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2024-01-29 19:54:21 +0100
committerJohannes Berg <johannes.berg@intel.com>2024-02-02 14:20:43 +0100
commit57d1b4632e03e5f938972055c45b0f2e475e6929 (patch)
treed954bc05cb25fa323f3c53e82b85b31c6f815f61 /drivers/net/wireless/virtual/mac80211_hwsim.c
parent392d3dfdfd68f4be6964d4fc8f3979a7a859e6f2 (diff)
wifi: nl80211: move WPA version validation to policy
For a contiguous mask (starting with bit 0) of allowed values in a bitmap, it's equivalent to check "!(val & ~mask)" and "val ∈ [0, mask]". Use that to move the WPA versions check to the policy, for better error reporting. Reviewed-by: Jeff Johnson <quic_jjohnson@quicinc.com> Link: https://msgid.link/20240129195421.e8cae9866ccb.I2539b395e3476307d702c6867e51a937e52e57a0@changeid Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'drivers/net/wireless/virtual/mac80211_hwsim.c')
0 files changed, 0 insertions, 0 deletions