From bf23588a4146e0f96cf33ce1ef73962aa92855a5 Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Mon, 2 Apr 2018 14:20:01 -0600 Subject: [PATCH] include/nuttx/wireless: Another correction to a Bluetooth IOCTL command structure. --- include/nuttx/wireless/bt_ioctl.h | 10 +++++++++- wireless/bluetooth/bt_ioctl.c | 3 ++- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/include/nuttx/wireless/bt_ioctl.h b/include/nuttx/wireless/bt_ioctl.h index 6326ea822f..f468e14313 100644 --- a/include/nuttx/wireless/bt_ioctl.h +++ b/include/nuttx/wireless/bt_ioctl.h @@ -116,7 +116,8 @@ /* SIOCBT_ADVERTISESTOP * Description: Stop advertising. - * Input: None + * Input: A reference to a write-able instance of struct + * bt_scanstop_s. * Output: None */ @@ -245,6 +246,13 @@ struct bt_advertisestart_s FAR const struct bt_eir_s as_sd; /* Data for scan response packets */ }; +/* The read-only data that accompanies the SIOCBT_SCANSTOP IOCTL command */ + +struct bt_advertisestop_s +{ + char at_name[HCI_DEVNAME_SIZE]; /* Device name */ +}; + /* The read-only data that accompanies the SIOCBT_SCANSTART IOCTL command */ struct bt_scanstart_s diff --git a/wireless/bluetooth/bt_ioctl.c b/wireless/bluetooth/bt_ioctl.c index 28aa2a86bd..98f3f4293b 100644 --- a/wireless/bluetooth/bt_ioctl.c +++ b/wireless/bluetooth/bt_ioctl.c @@ -300,7 +300,8 @@ int btnet_ioctl(FAR struct net_driver_s *dev, int cmd, unsigned long arg) /* SIOCBT_ADVERTISESTOP * Description: Stop advertising. - * Input: None + * Input: A reference to a write-able instance of struct + * bt_scanstop_s. * Output: None */