wpa_cli/hostapd_cli: Add driver_flags2 command
Leverage the already available control socket cmd "DRIVER_FLAGS2" and dump the driver capab "flags2" bitmask on triggering the new CLI CMD "driver_flags2", similar to the already existing CLI CMD "driver_flags". $ hostapd_cli -i wlan0 driver_flags2 (OR) $ wpa_cli -i wlan0 driver_flags2 0000000000000020: BEACON_RATE_HE Signed-off-by: Gokul Sivakumar <gokulkumar.sivakumar@infineon.com>
This commit is contained in:
parent
c0da381a31
commit
4f20dd52ff
2 changed files with 19 additions and 0 deletions
|
@ -1393,6 +1393,13 @@ static int hostapd_cli_cmd_driver_flags(struct wpa_ctrl *ctrl, int argc,
|
|||
}
|
||||
|
||||
|
||||
static int hostapd_cli_cmd_driver_flags2(struct wpa_ctrl *ctrl, int argc,
|
||||
char *argv[])
|
||||
{
|
||||
return wpa_ctrl_command(ctrl, "DRIVER_FLAGS2");
|
||||
}
|
||||
|
||||
|
||||
#ifdef CONFIG_DPP
|
||||
|
||||
static int hostapd_cli_cmd_dpp_qr_code(struct wpa_ctrl *ctrl, int argc,
|
||||
|
@ -1728,6 +1735,8 @@ static const struct hostapd_cli_cmd hostapd_cli_commands[] = {
|
|||
" = send FTM range request"},
|
||||
{ "driver_flags", hostapd_cli_cmd_driver_flags, NULL,
|
||||
" = show supported driver flags"},
|
||||
{ "driver_flags2", hostapd_cli_cmd_driver_flags2, NULL,
|
||||
" = show supported driver flags2"},
|
||||
#ifdef CONFIG_DPP
|
||||
{ "dpp_qr_code", hostapd_cli_cmd_dpp_qr_code, NULL,
|
||||
"report a scanned DPP URI from a QR Code" },
|
||||
|
|
|
@ -551,6 +551,13 @@ static int wpa_cli_cmd_driver_flags(struct wpa_ctrl *ctrl, int argc,
|
|||
}
|
||||
|
||||
|
||||
static int wpa_cli_cmd_driver_flags2(struct wpa_ctrl *ctrl, int argc,
|
||||
char *argv[])
|
||||
{
|
||||
return wpa_ctrl_command(ctrl, "DRIVER_FLAGS2");
|
||||
}
|
||||
|
||||
|
||||
static int wpa_cli_cmd_get(struct wpa_ctrl *ctrl, int argc, char *argv[])
|
||||
{
|
||||
return wpa_cli_cmd(ctrl, "GET", 1, argc, argv);
|
||||
|
@ -3384,6 +3391,9 @@ static const struct wpa_cli_cmd wpa_cli_commands[] = {
|
|||
{ "driver_flags", wpa_cli_cmd_driver_flags, NULL,
|
||||
cli_cmd_flag_none,
|
||||
"= list driver flags" },
|
||||
{ "driver_flags2", wpa_cli_cmd_driver_flags2, NULL,
|
||||
cli_cmd_flag_none,
|
||||
"= list driver flags2" },
|
||||
{ "logon", wpa_cli_cmd_logon, NULL,
|
||||
cli_cmd_flag_none,
|
||||
"= IEEE 802.1X EAPOL state machine logon" },
|
||||
|
|
Loading…
Reference in a new issue