Skip to content
Commit e3a55b53 authored by Johannes Berg's avatar Johannes Berg
Browse files

mac80211: validate cipher scheme PN length better



Currently, a cipher scheme can advertise an arbitrarily long
sequence counter, but mac80211 only supports up to 16 bytes
and the initial value from userspace will be truncated.

Fix two things:
 * don't allow the driver to register anything longer than
   the 16 bytes that mac80211 reserves space for
 * require userspace to specify a starting value with the
   correct length (or none at all)

Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
parent a31cf1c6
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment