]> git.ipfire.org Git - thirdparty/hostap.git/commit
RRM: Use dynamically allocated buffer for beacon report
authorAvraham Stern <avraham.stern@intel.com>
Wed, 8 Mar 2017 12:31:49 +0000 (14:31 +0200)
committerJouni Malinen <j@w1.fi>
Wed, 8 Mar 2017 14:05:52 +0000 (16:05 +0200)
commit891aa65b88f457b6e293bcfce7ddbe25eaf00f15
treee89cde4ec71fa39dea20818adcc7d7b66f499882
parent732b57acb4c5655e2ee0b8260136acf14a15b11a
RRM: Use dynamically allocated buffer for beacon report

The maximum required size for each Beacon Report element is known in
advance: it is the size of the Beacon Report element fixed fields + the
size of the Reported Frame Body subelement.

Allocate the buffer used for constructing the Beacon Report element
dynamically with the maximum needed size, instead of using a very
large static buffer.

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