GAS: Calculate response buffer length of ANQP elements
authorMax Stepanov <Max.Stepanov@intel.com>
Mon, 25 Jan 2016 10:28:50 +0000 (12:28 +0200)
committerJouni Malinen <j@w1.fi>
Fri, 5 Feb 2016 23:19:32 +0000 (01:19 +0200)
commitd179089b6d3f3e42b3863285d4638c66f45211ef
tree4dfb9de6601f50dd3e09181635d4a0e29811a157
parent31dd31538268406084cf04c1fbdefbc37301e45c
GAS: Calculate response buffer length of ANQP elements

Calculate the required length needed for the extra ANQP elements added
to GAS response buffer instead of using fixed size and truncating the
response if there was not sufficient space.

Signed-off-by: Max Stepanov <Max.Stepanov@intel.com>
src/ap/gas_serv.c