]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211: use exact-size allocation for authentication frame
authorFred Zhou <fred.zy@gmail.com>
Tue, 24 Sep 2013 02:33:01 +0000 (10:33 +0800)
committerJohannes Berg <johannes.berg@intel.com>
Tue, 1 Oct 2013 10:20:38 +0000 (12:20 +0200)
commit06141ee01bf7213e6979e1a8e47af93b3a4b9a83
tree6960ab6a712d09c7c95f39355833c93cf42369fa
parent7f1237869ab98e8dc1c27420866cd33cabad1938
mac80211: use exact-size allocation for authentication frame

The authentication frame has a fixied size of 30 bytes
(including header, algo num, trans seq num, and status)
followed by a variable challenge text.
Allocate using exact size, instead of over-allocation
by sizeof(ieee80211_mgmt).

Signed-off-by: Fred Zhou <fred.zy@gmail.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/util.c