P2P: Use WPS_SEC_DEV_TYPE_MAX_LEN in P2P array definition
authorJouni Malinen <jouni@qca.qualcomm.com>
Tue, 7 Apr 2015 13:06:43 +0000 (16:06 +0300)
committerJouni Malinen <j@w1.fi>
Wed, 22 Apr 2015 08:44:19 +0000 (11:44 +0300)
commit632931c3cef852fc0a2a38150825cd949fff940e
tree4f604d4fe5ba28f2cd518800f7c9b8cdf8290516
parent6ca8a74cd0fe1d1d51ef77b24393115e3de73c56
P2P: Use WPS_SEC_DEV_TYPE_MAX_LEN in P2P array definition

This makes it more obvious that the wps_parse_msg() bounds checking is
used to verify that there is sufficient space in the P2P buffer for the
secondary device types.

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
src/p2p/p2p.h