]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
nl80211: Accept NL80211_CMD_FRAME events in global context
authorJouni Malinen <quic_jouni@quicinc.com>
Mon, 18 Dec 2023 19:08:26 +0000 (21:08 +0200)
committerJouni Malinen <j@w1.fi>
Mon, 18 Dec 2023 19:08:26 +0000 (21:08 +0200)
This is a workaround for some race conditions where the hardcoded use of
global->nl_cb in send_and_recv() ends up getting events delivered
through unexpected context when they happen to arrive at the time when a
command is being processed.

Signed-off-by: Jouni Malinen <quic_jouni@quicinc.com>
src/drivers/driver_nl80211_event.c

index c3242b45f7e836dcd028294097549972c0a6c3da..6c674672ea0e9fae33d495e6268f199c94b0420a 100644 (file)
@@ -3926,6 +3926,7 @@ static void do_process_drv_event(struct i802_bss *bss, int cmd,
        case NL80211_CMD_ASSOCIATE:
        case NL80211_CMD_DEAUTHENTICATE:
        case NL80211_CMD_DISASSOCIATE:
+       case NL80211_CMD_FRAME:
        case NL80211_CMD_FRAME_TX_STATUS:
        case NL80211_CMD_UNPROT_DEAUTHENTICATE:
        case NL80211_CMD_UNPROT_DISASSOCIATE: