Add new files from hostap to Zephyr build. Add wifi mgmt thread that communicates with supplicant. Signed-off-by: Chaitanya Tata <Chaitanya.Tata@nordicsemi.no> Signed-off-by: Jukka Rissanen <jukka.rissanen@nordicsemi.no>
39 lines
779 B
C
39 lines
779 B
C
/*
|
|
* Copyright (c) 2023 Nordic Semiconductor ASA
|
|
*
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
/* @file
|
|
* @brief wpa_cli implementation for Zephyr OS
|
|
*/
|
|
|
|
#include <zephyr/kernel.h>
|
|
#include <zephyr/shell/shell.h>
|
|
#include <zephyr/init.h>
|
|
|
|
#include "wpa_cli_zephyr.h"
|
|
|
|
static int cmd_wpa_cli(const struct shell *sh,
|
|
size_t argc,
|
|
const char *argv[])
|
|
{
|
|
ARG_UNUSED(sh);
|
|
|
|
if (argc == 1) {
|
|
shell_error(sh, "Missing argument");
|
|
return -EINVAL;
|
|
}
|
|
|
|
/* Remove wpa_cli from the argument list */
|
|
return z_wpa_ctrl_zephyr_cmd(argc - 1, &argv[1]);
|
|
}
|
|
|
|
/* Persisting with "wpa_cli" naming for compatibility with Wi-Fi
|
|
* certification applications and scripts.
|
|
*/
|
|
SHELL_CMD_REGISTER(wpa_cli,
|
|
NULL,
|
|
"wpa_cli commands (only for internal use)",
|
|
cmd_wpa_cli);
|