diff options
| -rw-r--r-- | network/wlan/WIFICX/drivercode/transition_steps.hpp | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/network/wlan/WIFICX/drivercode/transition_steps.hpp b/network/wlan/WIFICX/drivercode/transition_steps.hpp deleted file mode 100644 index dc04eab2..00000000 --- a/network/wlan/WIFICX/drivercode/transition_steps.hpp +++ /dev/null @@ -1,17 +0,0 @@ -template<typename Param, typename... StepFns> -NTSTATUS ExecuteSteps(TransitionContext& ctx, Param& p, StepFns... fns) -{ - NTSTATUS status = STATUS_SUCCESS; - auto seq = { (status = (fns(ctx, p)), status == STATUS_SUCCESS ? 0 : 1)... }; - UNREFERENCED_PARAMETER(seq); - return status; -} - -// In a traits Handle(): -static NTSTATUS Handle(TransitionContext& ctx, ParamType& params) -{ - return ExecuteSteps(ctx, params, - [](TransitionContext& c, ParamType& par){ return c.DevCtx->wifiHAL->WifiIhvSetRadioState(par, c.Header); }, - [](TransitionContext& c, ParamType&){ return STATUS_SUCCESS; } // extra step - ); -}
\ No newline at end of file |
