WNM: Ignore WNM-Sleep Mode Response without pending request

Commit 03ed0a52393710be6bdae657d1b36efa146520e5 ('WNM: Ignore WNM-Sleep
Mode Response if WNM-Sleep Mode has not been used') started ignoring the
response when no WNM-Sleep Mode Request had been used during the
association. This can be made tighter by clearing the used flag when
successfully processing a response. This adds an additional layer of
protection against unexpected retransmissions of the response frame.

Bug: 65245581
Test: WiFi Integration Suite
Merged-In: I8e6f16cb03c1054701a533761724394923eb504c
Change-Id: I8e6f16cb03c1054701a533761724394923eb504c
Signed-off-by: Jouni Malinen <j@w1.fi>
Signed-off-by: Glen Kuhne <kuh@google.com>
(cherry picked from commit d6f9ad33e2dd3961f55c15cd1e16d44e2476c792)
1 file changed