OSDN Git Service

nl80211: correctly validate S1G beacon head
authorThomas Pedersen <thomas@adapt-ip.com>
Tue, 8 Sep 2020 19:03:05 +0000 (12:03 -0700)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 18 Sep 2020 10:30:57 +0000 (12:30 +0200)
commit1d47f1198d58117735edc6b8b1a687db47883f1e
treee0baff5ba0d71f0ecc4905797e351b96a939c97c
parent68dbad8c656960292142832c3b44c63db9831d67
nl80211: correctly validate S1G beacon head

The S1G beacon has a different header size than regular
beacons, so adjust the beacon head validator.

Signed-off-by: Thomas Pedersen <thomas@adapt-ip.com>
Link: https://lore.kernel.org/r/20200908190323.15814-5-thomas@adapt-ip.com
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/wireless/nl80211.c
net/wireless/util.c