WNM: Fix candidates count in BSS Transition Management Request
authorAvraham Stern <avraham.stern@intel.com>
Mon, 29 Feb 2016 12:29:59 +0000 (14:29 +0200)
committerJouni Malinen <j@w1.fi>
Thu, 3 Mar 2016 15:09:26 +0000 (17:09 +0200)
commitf420577f3c2ea9be3012a5c5807e5f75e64a261b
tree27b0c5c4f56841b7767945e0ae4764c38bf0cbda
parent3c58df7ae7b7467e30f2aa47d2bbecc2d52abb21
WNM: Fix candidates count in BSS Transition Management Request

In BSS Transition Management Request frame, it is possible that vendor
specific IEs are included after the candidate list. In this case the
candidates count was incremented for each IE although the candidate list
is already over which could result in adding all zeros candidates into
the neighbor list.

Fix that by incrementing the candidates count only for neighbor report
elements.

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