]> git.ipfire.org Git - thirdparty/hostap.git/commit - src/ap/drv_callbacks.c
Use more consistent Action frame RX handling in both AP mode paths
authorJouni Malinen <j@w1.fi>
Sat, 1 Dec 2018 11:19:47 +0000 (13:19 +0200)
committerJouni Malinen <j@w1.fi>
Sat, 1 Dec 2018 18:30:09 +0000 (20:30 +0200)
commite0785ebbbd1810471fc37c13e1f1a2d545bf649d
tree0353ec85944bc8d34c30e19b213ed6c8bc355d8c
parentff501011391ce6447a21c2c795d4d8610ab653a7
Use more consistent Action frame RX handling in both AP mode paths

Both handle_action() and hostapd_action_rx() are used for processing
received Action frames depending on what type of driver architecture is
used (MLME in hostapd vs. driver) and which build options were used to
build hostapd. These functions had a bit different sequence for checking
the frame and printing debug prints. Make those more consistent by
checking that the frame includes the category-specific action field and
some payload. Add a debug print for both functions to make it easier to
see which path various Action frames use.

Signed-off-by: Jouni Malinen <j@w1.fi>
src/ap/drv_callbacks.c
src/ap/ieee802_11.c