]> git.ipfire.org Git - thirdparty/hostap.git/commit
WNM: Use a dynamically allocated buffer for BTM query and response
authorAvraham Stern <avraham.stern@intel.com>
Wed, 8 Mar 2017 12:37:38 +0000 (14:37 +0200)
committerJouni Malinen <j@w1.fi>
Fri, 10 Mar 2017 21:52:44 +0000 (23:52 +0200)
commit13bf18eda56fc64abfdb481caeeae9d9a7d18ba8
treeea85e266d538e9bad58cac0982a39f7d6cff27d1
parent5d9fa5ead26b1eba431f56cbf29aaa77201ec60f
WNM: Use a dynamically allocated buffer for BTM query and response

BSS transition management query and response use a large static buffer
for the frame because the candidate list may require a lot of space.
However, in most cases the actually used space will be much less than
the buffer (since the candidate list is short or completely missing).

Use a dynamically allocated buffer instead and allocate it according
to the actual space needed.

While at it, remove unneeded filling of the MAC header in the Action
frames, since this gets ignored and wpa_drv_send_action() adds the MAC
header anyway.

Signed-off-by: Avraham Stern <avraham.stern@intel.com>
wpa_supplicant/wnm_sta.c