TDLS: Use proper IE parsing routine for non-EAPOL-Key cases
authorJouni Malinen <j@w1.fi>
Sat, 5 Sep 2015 17:51:11 +0000 (20:51 +0300)
committerJouni Malinen <j@w1.fi>
Sat, 5 Sep 2015 17:51:11 +0000 (20:51 +0300)
commitfaf427645aa79a32ebd8093ff676abfc9d36e951
tree329999ddfc0ad1518c681113e5eaf8b47b8feab3
parentdcc8bc82e088b1253f16c2e302b767fb33525db3
TDLS: Use proper IE parsing routine for non-EAPOL-Key cases

wpa_supplicant_parse_ies() was never supposed to be used as a generic IE
parser, i.e., it is for the specific purpose of parsing EAPOL-Key Key
Data IEs and KDEs. TDLS used this function for parsing generic AP IEs
and while that works, it resulted in confusing "WPA: Unrecognized
EAPOL-Key Key Data IE" debug messages. Clean this up by using
ieee802_11_parse_elems() for the cases where generic IEs are being
parsed.

Signed-off-by: Jouni Malinen <j@w1.fi>
src/rsn_supp/tdls.c