mesh: Clean up AMPE element encoding and parsing
authorJouni Malinen <j@w1.fi>
Sat, 18 Jun 2016 11:11:23 +0000 (14:11 +0300)
committerJouni Malinen <j@w1.fi>
Sun, 19 Jun 2016 17:18:09 +0000 (20:18 +0300)
commitf868d5607d67d9e99b7ca3e7eed3383283830c64
tree976a987a90395d20cb58bb83cf9787ecd88b2384
parent4367eec4394002046e1ad99b2ecf878d925415f0
mesh: Clean up AMPE element encoding and parsing

The AMPE element includes number of optional and variable length fields
and those cannot really be represented by a fixed struct
ieee80211_ampe_ie. Remove the optional fields from the struct and
build/parse these fields separately.

This is also adding support for IGTKdata that was completely missing
from the previous implementation. In addition, Key RSC for MGTK is now
filled in and used when configuring the RX MGTK for a peer.

Signed-off-by: Jouni Malinen <j@w1.fi>
src/ap/sta_info.h
src/common/ieee802_11_defs.h
wpa_supplicant/driver_i.h
wpa_supplicant/mesh_mpm.c
wpa_supplicant/mesh_rsn.c
wpa_supplicant/mesh_rsn.h