On 1/29/2024 10:54 AM, Johannes Berg wrote: > From: Johannes Berg <johannes.berg@xxxxxxxxx> > > 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. > > Signed-off-by: Johannes Berg <johannes.berg@xxxxxxxxx> Reviewed-by: Jeff Johnson <quic_jjohnson@xxxxxxxxxxx>