summaryrefslogtreecommitdiff
path: root/network/wlan/wificx/drivercode/wifitransition.h
blob: c48d4a78fb70a1a239ec767c26cf107ec7d0e280 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// Copyright (C) Microsoft Corporation. All rights reserved.
#pragma once
#include "precomp.h"
#include "wifiHAL.h"
#include "wifirequest.h"

// Generic execution context passed between steps and parse/handle
struct TransitionContext
{
    WDFDEVICE Device;
    PWIFI_IHV_DEVICE_CONTEXT DevCtx;
    WIFIREQUEST WifiRequest;
    PWDI_MESSAGE_HEADER Header;
    void* RawBuffer; // from WifiRequestGetInOutBuffer in EvtWifiDeviceSendCommand
    UINT InLen;
    UINT OutLen;
};

// -------- Runtime dispatcher (decl) --------
NTSTATUS RunTransitionByMessage(TransitionContext& ctx, UINT16 messageId);