mesh: Calculate MTK before sending it to MAC in case Open is dropped
authorPeter Oh <poh@qca.qualcomm.com>
Fri, 29 Apr 2016 21:27:58 +0000 (14:27 -0700)
committerJouni Malinen <j@w1.fi>
Fri, 13 May 2016 17:54:51 +0000 (20:54 +0300)
commitf42c3ceb949691cd906c0aa67f23a548cee70d62
treec6c22c6174278b353f7c30b27da6cf1a40ee58a2
parentbaa12136495ac72a9e34d9053c3f21efd87876b9
mesh: Calculate MTK before sending it to MAC in case Open is dropped

IEEE Std 802.11-2012 13.5.6.3 State transitions require an action
sending SETKEYS primitive to MAC when OPN_ACPT event occurs in CNF_RCVD
state in case of AMPE is used, but since MTK calculation is missed in
this condition, all zero valued key are passed to MAC and cause unicast
packet decryption error. This could happen if the first transmission of
plink Open frame is dropped and Confirm frame is processed first
followed by retransmitted Open frame.

Fix this by calculating the MTK also in this sequence of unexpected
messages.

Signed-off-by: Peter Oh <poh@qca.qualcomm.com>
wpa_supplicant/mesh_mpm.c