diff --git a/include/nuttx/wireless/bt_ioctl.h b/include/nuttx/wireless/bt_ioctl.h index a0f17506856..02f2b92375e 100644 --- a/include/nuttx/wireless/bt_ioctl.h +++ b/include/nuttx/wireless/bt_ioctl.h @@ -217,7 +217,6 @@ struct bt_scanresponse_s { - char sr_name[HCI_DEVNAME_SIZE]; /* Device name */ bt_addr_le_t sr_addr; /* Advertiser LE address and type */ int8_t sr_rssi; /* Strength of advertiser signal */ uint8_t sr_type; /* Type of advertising response */ diff --git a/wireless/bluetooth/bt_ioctl.c b/wireless/bluetooth/bt_ioctl.c index acbf907a365..f3011f377de 100644 --- a/wireless/bluetooth/bt_ioctl.c +++ b/wireless/bluetooth/bt_ioctl.c @@ -201,11 +201,7 @@ static int btnet_scan_result(FAR struct bt_scanresponse_s *result, uint8_t nrsp; int ret; - if (!g_scanstate.bs_scanning) - { - wlerr("ERROR: Results received while not scanning\n"); - return -EPIPE; - } + wlinfo("Scanning? %s\n", g_scanstate.bs_scanning ? "YES" : "NO"); /* Get exclusive access to the scan data */