Fix Deauth/Disassoc callback handling with test frames
authorJouni Malinen <jouni@qca.qualcomm.com>
Tue, 6 Sep 2011 18:03:02 +0000 (21:03 +0300)
committerJouni Malinen <j@w1.fi>
Tue, 6 Sep 2011 18:03:02 +0000 (21:03 +0300)
commitcc28ad8cdf38965b11bef80167319f7001242cba
tree4225f0a61d64b30103b724454b38823f091e4a1f
parent98aa7ca5d8cd14dcefd2d7a27d5ade2b3facba7e
Fix Deauth/Disassoc callback handling with test frames

The Deauth/Disassoc TX status callbacks were ending up kicking the
station entry from kernel driver when test functionality was used to
inject Deauth/Disassoc frames from the AP with the purpose of leaving
the local association in place. Fix this by using STA flags to figure
out whether there was a pending callback for the frame that we need
to act on.

In addition, add forgotten functionality for the Disassoc TX status
callback to match the behavior with Deauth.
src/ap/sta_info.c
src/ap/sta_info.h