From f27124dfc466b4d6345437fc695a2f37ff59e710 Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Thu, 19 Apr 2018 09:14:48 -0600 Subject: [PATCH] include/nuttx/wireless: Remove bogus name from structure. This was left over from a previous change and had me confused for awhile. --- include/nuttx/wireless/bt_ioctl.h | 1 - wireless/bluetooth/bt_ioctl.c | 6 +----- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/include/nuttx/wireless/bt_ioctl.h b/include/nuttx/wireless/bt_ioctl.h index a0f1750685..02f2b92375 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 acbf907a36..f3011f377d 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 */