| * Copyright 2023-2024 NXP |
| * SPDX-License-Identifier: Apache-2.0 |
| * Wi-Fi driver shell adapter layer |
| #include <zephyr/kernel.h> |
| #include <zephyr/shell/shell.h> |
| #include "nxp_wifi_drv.h" |
| static struct nxp_wifi_dev *nxp_wifi; |
| void nxp_wifi_shell_register(struct nxp_wifi_dev *dev) |
| /* only one instance supported */ |
| static int nxp_wifi_shell_cmd(const struct shell *sh, size_t argc, char **argv) |
| shell_print(sh, "no nxp_wifi device registered"); |
| k_mutex_lock(&nxp_wifi->mutex, K_FOREVER); |
| nxp_wifi_request(argc, argv); |
| k_mutex_unlock(&nxp_wifi->mutex); |
| SHELL_CMD_ARG_REGISTER(nxp_wifi, NULL, "NXP Wi-Fi commands (Use help)", nxp_wifi_shell_cmd, 2, |