45 #include <sys/socket.h>
50 void baswap(bdaddr_t *dst,
const bdaddr_t *src)
52 register unsigned char *d = (
unsigned char *) dst;
53 register const unsigned char *s = (
const unsigned char *) src;
56 for (i = 0; i < 6; i++)
66 sprintf(str,
"%2.2X:%2.2X:%2.2X:%2.2X:%2.2X:%2.2X",
67 ba->b[0], ba->b[1], ba->b[2],
68 ba->b[3], ba->b[4], ba->b[5]);
86 int ba2str(
const bdaddr_t *ba,
char *str)
88 return sprintf(str,
"%2.2X:%2.2X:%2.2X:%2.2X:%2.2X:%2.2X",
89 ba->b[5], ba->b[4], ba->b[3], ba->b[2], ba->b[1], ba->b[0]);
92 int str2ba(
const char *str, bdaddr_t *ba)
97 memset(ba, 0,
sizeof(*ba));
101 for (i = 5; i >= 0; i--, str += 3)
102 ba->b[i] = strtol(str, NULL, 16);
107 int ba2oui(
const bdaddr_t *ba,
char *str)
109 return sprintf(str,
"%2.2X-%2.2X-%2.2X", ba->b[5], ba->b[4], ba->b[3]);
117 if (strlen(str) != 17)
121 if (!isxdigit(*str++))
124 if (!isxdigit(*str++))
142 va_start(ap, format);
143 len = vprintf(format, ap);
154 va_start(ap, format);
155 len = vfprintf(stream, format, ap);
166 va_start(ap, format);
167 len = vsnprintf(str, (~0U) >> 1, format, ap);
173 int basnprintf(
char *str,
size_t size,
const char *format, ...)
178 va_start(ap, format);
179 len = vsnprintf(str, size, format, ap);
256 return EPROTONOSUPPORT;
274 return "Ericsson Technology Licensing";
276 return "Nokia Mobile Phones";
278 return "Intel Corp.";
282 return "Toshiba Corp.";
292 return "Infineon Technologies AG";
294 return "Cambridge Silicon Radio";
296 return "Silicon Wave";
298 return "Digianswer A/S";
300 return "Texas Instruments Inc.";
302 return "Ceva, Inc. (formerly Parthus Technologies, Inc.)";
304 return "Broadcom Corporation";
306 return "Mitel Semiconductor";
308 return "Widcomm, Inc";
310 return "Zeevo, Inc.";
312 return "Atmel Corporation";
314 return "Mitsubishi Electric Corporation";
316 return "RTX Telecom A/S";
318 return "KC Technology Inc.";
322 return "Transilica, Inc.";
324 return "Rohde & Schwarz GmbH & Co. KG";
326 return "TTPCom Limited";
328 return "Signia Technologies, Inc.";
330 return "Conexant Systems Inc.";
338 return "BandSpeed, Inc.";
340 return "Mansella Ltd";
342 return "NEC Corporation";
344 return "WavePlus Technology Co., Ltd.";
348 return "NXP Semiconductors (formerly Philips Semiconductors)";
350 return "C Technologies";
352 return "Open Interface";
354 return "R F Micro Devices";
356 return "Hitachi Ltd";
358 return "Symbol Technologies, Inc.";
362 return "Macronix International Co. Ltd.";
364 return "GCT Semiconductor";
366 return "Norwood Systems";
368 return "MewTel Technology Inc.";
370 return "ST Microelectronics";
374 return "Red-M (Communications) Ltd";
378 return "Computer Access Technology Corporation (CATC)";
380 return "Eclipse (HQ Espana) S.L.";
382 return "Renesas Electronics Corporation";
384 return "Mobilian Corporation";
388 return "Integrated System Solution Corp.";
390 return "Matsushita Electric Industrial Co., Ltd.";
392 return "Gennum Corporation";
394 return "BlackBerry Limited (formerly Research In Motion)";
396 return "IPextreme, Inc.";
398 return "Systems and Chips, Inc.";
400 return "Bluetooth SIG, Inc.";
402 return "Seiko Epson Corporation";
404 return "Integrated Silicon Solution Taiwan, Inc.";
406 return "CONWISE Technology Corporation Ltd";
410 return "Socket Mobile";
412 return "Atheros Communications, Inc.";
414 return "MediaTek, Inc.";
418 return "Marvell Technology Group Ltd.";
420 return "3DSP Corporation";
422 return "Accel Semiconductor Ltd.";
424 return "Continental Automotive Systems";
426 return "Apple, Inc.";
428 return "Staccato Communications, Inc.";
430 return "Avago Technologies";
432 return "APT Licensing Ltd.";
434 return "SiRF Technology";
436 return "Tzero Technologies, Inc.";
438 return "J&M Corporation";
440 return "Free2move AB";
442 return "3DiJoy Corporation";
444 return "Plantronics, Inc.";
446 return "Sony Ericsson Mobile Communications";
448 return "Harman International Industries, Inc.";
450 return "Vizio, Inc.";
452 return "Nordic Semiconductor ASA";
454 return "EM Microelectronic-Marin SA";
456 return "Ralink Technology Corporation";
458 return "Belkin International, Inc.";
460 return "Realtek Semiconductor Corporation";
462 return "Stonestreet One, LLC";
464 return "Wicentric, Inc.";
466 return "RivieraWaves S.A.S";
468 return "RDA Microelectronics";
470 return "Gibson Guitars";
472 return "MiCommand Inc.";
474 return "Band XI International, LLC";
476 return "Hewlett-Packard Company";
478 return "9Solutions Oy";
480 return "GN Netcom A/S";
482 return "General Motors";
484 return "A&D Engineering, Inc.";
486 return "MindTree Ltd.";
488 return "Polar Electro OY";
490 return "Beautiful Enterprise Co., Ltd.";
492 return "BriarTek, Inc.";
494 return "Summit Data Communications, Inc.";
498 return "Monster, LLC";
500 return "connectBlue AB";
502 return "ShangHai Super Smart Electronics Co. Ltd.";
504 return "Group Sense Ltd.";
508 return "Samsung Electronics Co. Ltd.";
510 return "Creative Technology Ltd.";
512 return "Laird Technologies";
516 return "lesswire AG";
518 return "MStar Semiconductor, Inc.";
520 return "Hanlynn Technologies";
522 return "A & R Cambridge";
524 return "Seers Technology Co. Ltd";
526 return "Sports Tracking Technologies Ltd.";
528 return "Autonet Mobile";
530 return "DeLorme Publishing Company, Inc.";
532 return "WuXi Vimicro";
534 return "Sennheiser Communications A/S";
536 return "TimeKeeping Systems, Inc.";
538 return "Ludus Helsinki Ltd.";
540 return "BlueRadios, Inc.";
544 return "Garmin International, Inc.";
548 return "GN ReSound A/S";
552 return "Topcorn Positioning Systems, LLC";
554 return "Gimbal Inc. (formerly Qualcomm Labs, Inc. and Qualcomm Retail Solutions, Inc.)";
556 return "Zscan Software";
558 return "Quintic Corp.";
560 return "Stollman E+V GmbH";
562 return "Funai Electric Co., Ltd.";
564 return "Advanced PANMOBIL Systems GmbH & Co. KG";
566 return "ThinkOptics, Inc.";
568 return "Universal Electronics, Inc.";
570 return "Airoha Technology Corp.";
572 return "NEC Lighting, Ltd.";
574 return "ODM Technology, Inc.";
576 return "ConnecteDevice Ltd.";
578 return "zer01.tv GmbH";
580 return "i.Tech Dynamic Global Distribution Ltd.";
584 return "Jiangsu Toppower Automotive Electronics Co., Ltd.";
586 return "Colorfy, Inc.";
588 return "Geoforce Inc.";
590 return "Bose Corporation";
594 return "Kensington Computer Products Group";
596 return "SR-Medizinelektronik";
598 return "Vertu Corporation Limited";
600 return "Meta Watch Ltd.";
604 return "OTL Dynamics LLC";
606 return "Panda Ocean Inc.";
608 return "Visteon Corporation";
610 return "ARP Devices Limited";
612 return "Magneti Marelli S.p.A";
614 return "CAEN RFID srl";
616 return "Ingenieur-Systemgruppe Zahn GmbH";
618 return "Green Throttle Games";
620 return "Peter Systemtechnik GmbH";
622 return "Omegawave Oy";
626 return "Passif Semiconductor Corp";
628 return "Saris Cycling Group, Inc";
632 return "Clarinox Technologies Pty. Ltd.";
634 return "BDE Technology Co., Ltd.";
636 return "Swirl Networks";
638 return "Meso international";
642 return "Qualcomm Innovation Center, Inc. (QuIC)";
644 return "Johnson Controls, Inc.";
646 return "Starkey Laboratories Inc.";
648 return "S-Power Electronics Limited";
650 return "Ace Sensor Inc";
652 return "Aplix Corporation";
654 return "AAMP of America";
656 return "Stalmart Technology Limited";
658 return "AMICCOM Electronics Corporation";
660 return "Shenzhen Excelsecu Data Technology Co.,Ltd";
666 return "LG Electronics";
668 return "Onset Computer Corporation";
680 return "Binauric SE";
682 return "Beats Electronics";
684 return "Microchip Technology Inc.";
686 return "Elgato Systems GmbH";
690 return "Dexcom, Inc.";
692 return "Polar Electro Europe B.V.";
694 return "Dialog Semiconductor B.V.";
696 return "Taixingbang Technology (HK) Co,. LTD.";
700 return "Austco Communication Systems";
702 return "Timex Group USA, Inc.";
704 return "Qualcomm Technologies, Inc.";
706 return "Qualcomm Connected Experiences, Inc.";
708 return "Voyetra Turtle Beach";
712 return "Biosentronics";
714 return "Procter & Gamble";
716 return "Hosiden Corporation";
720 return "Misfit Wearables Corp";
724 return "Danlers Ltd";
726 return "Semilink Inc";
728 return "inMusic Brands, Inc";
730 return "L.S. Research Inc.";
732 return "Eden Software Consultants Ltd.";
736 return "KS Technologies";
738 return "ACTS Technologies";
740 return "Vtrack Systems";
742 return "Nielsen-Kellerman Company";
744 return "Server Technology, Inc.";
746 return "BioResearch Associates";
748 return "Jolly Logic, LLC";
750 return "Above Average Outcomes, Inc.";
752 return "Bitsplitters GmbH";
754 return "PayPal, Inc.";
756 return "Witron Technology Limited";
758 return "Aether Things Inc. (formerly Morse Project Inc.)";
760 return "Kent Displays Inc.";
762 return "Nautilus Inc.";
764 return "Smartifier Oy";
766 return "Elcometer Limited";
768 return "VSN Technologies Inc.";
770 return "AceUni Corp., Ltd.";
774 return "Crystal Code AB";
776 return "KOUKAAM a.s.";
778 return "Delphi Corporation";
780 return "ValenceTech Limited";
784 return "Typo Products, LLC";
786 return "TomTom International BV";
790 return "Keiser Corporation";
792 return "Bang & Olufsen A/S";
794 return "PLUS Locations Systems Pty Ltd";
796 return "Ubiquitous Computing Technology Corporation";
798 return "Innovative Yachtter Solutions";
800 return "William Demant Holding A/S";
802 return "Chicony Electronics Co., Ltd.";
806 return "Codegate Ltd.";
810 return "Transducers Direct, LLC";
812 return "Fujitsu Ten Limited";
816 return "HiSilicon Technologies Co., Ltd.";
818 return "Nippon Seiki Co., Ltd.";
820 return "Steelseries ApS";
822 return "vyzybl Inc.";
824 return "Openbrain Technologies, Co., Ltd.";
828 return "e.solutions";
830 return "1OAK Technologies";
832 return "Wimoto Technologies Inc";
834 return "Radius Networks, Inc.";
836 return "Wize Technology Co., Ltd.";
838 return "Qualcomm Labs, Inc.";
840 return "Aruba Networks";
846 return "Skoda Auto a.s.";
848 return "Volkswagon AG";
852 return "Sino Wealth Electronic Ltd.";
854 return "AirTurn, Inc.";
856 return "Kinsa, Inc.";
862 return "Promethean Ltd.";
864 return "Salutica Allied Solutions";
866 return "GPSI Group Pty Ltd";
868 return "Nimble Devices Oy";
870 return "Changzhou Yongse Infotech Co., Ltd";
874 return "TEMEC Instruments B.V.";
876 return "Sony Corporation";
880 return "Clarion Co., Ltd.";
882 return "Warehouse Innovations";
884 return "Cypress Semiconductor Corporation";
888 return "Blue Maestro Limited";
890 return "Resolution Products, Inc.";
892 return "Airewear LLC";
894 return "Seed Labs, Inc. (formerly ETC sp. z.o.o.)";
896 return "Prestigio Plaza Ltd.";
900 return "Focus Systems Corporation";
902 return "Tencent Holdings Limited";
906 return "Murata Manufacuring Co., Ltd.";
908 return "WirelessWERX";
912 return "B&B Manufacturing Company";
914 return "Alpine Electronics (China) Co., Ltd";
916 return "FedEx Services";
918 return "Grape Systems Inc.";
920 return "Bkon Connect";
922 return "Lintech GmbH";
924 return "Novatel Wireless";
928 return "Mighty Cast, Inc.";
930 return "Ambimat Electronics";
932 return "Perytons Ltd.";
934 return "Tivoli Audio, LLC";
936 return "Master Lock";
938 return "Mesh-Net Ltd";
940 return "Huizhou Desay SV Automotive CO., LTD.";
942 return "Tangerine, Inc.";
944 return "B&W Group Ltd.";
946 return "Pioneer Corporation";
950 return "Vernier Software & Technology";
954 return "Pebble Technology";
958 return "Accumulate AB";
960 return "Anhui Huami Information Technology Co., Ltd.";
962 return "Inmite s.r.o.";
964 return "ChefSteps, Inc.";
968 return "Biomedical Research Ltd.";
970 return "Pitius Tec S.L.";
972 return "Estimote, Inc.";
974 return "Unikey Technologies, Inc.";
976 return "Timer Cap Co.";
982 return "MADSGlobal NZ Ltd.";
984 return "PCH International";
986 return "Qingdao Yeelink Information Technology Co., Ltd.";
988 return "Milwaukee Tool (formerly Milwaukee Electric Tools)";
990 return "MISHIK Pte Ltd";
992 return "Bayer HealthCare";
994 return "Spicebox LLC";
998 return "Cooper-Atkins Corporation";
1004 return "LifeScan Inc";
1006 return "Volantic AB";
1008 return "Podo Labs, Inc";
1010 return "Roche Diabetes Care AG";
1012 return "Amazon Fulfillment Service";
1014 return "Connovate Technology Private Limited";
1016 return "Kocomojo, LLC";
1018 return "Everykey LLC";
1020 return "Dynamic Controls";
1022 return "SentriLock";
1024 return "I-SYST inc.";
1026 return "CASIO COMPUTER CO., LTD.";
1028 return "LAPIS Semiconductor Co., Ltd.";
1030 return "Telemonitor, Inc.";
1032 return "taskit GmbH";
1034 return "Daimler AG";
1038 return "BluDotz Ltd";
1042 return "Gigaset Communications GmbH";
1044 return "Gecko Health Innovations, Inc.";
1046 return "HOP Ubiquitous";
1048 return "To Be Assigned";
1052 return "bel'apps LLC";
1054 return "CORE Lighting Ltd";
1056 return "Seraphim Sense Ltd";
1060 return "Physical Enterprises Inc.";
1062 return "Able Trend Technology Limited";
1064 return "Konica Minolta, Inc.";
1068 return "Extron Design Services";
1070 return "Fitbit, Inc.";
1072 return "Fireflies Systems";
1074 return "Intelletto Technologies Inc.";
1076 return "FDK CORPORATION";
1078 return "Cloudleaf, Inc";
1080 return "Maveric Automation LLC";
1082 return "Acoustic Stream Corporation";
1086 return "Paxton Access Ltd";
1088 return "WiSilica Inc";
1090 return "Vengit Limited";
1092 return "SALTO SYSTEMS S.L.";
1094 return "TRON Forum (formerly T-Engine Forum)";
1096 return "CUBETECH s.r.o.";
1098 return "Cokiya Incorporated";
1100 return "CVS Health";
1104 return "Strainstall Ltd";
1106 return "Channel Enterprises (HK) Ltd.";
1110 return "GIGALANE.CO.,LTD";
1114 return "Mine Safety Appliances";
1116 return "Icon Health and Fitness";
1118 return "Asandoo GmbH";
1120 return "ENERGOUS CORPORATION";
1124 return "Canon Inc.";
1126 return "Geophysical Technology Inc.";
1128 return "Facebook, Inc.";
1130 return "Nipro Diagnostics, Inc.";
1132 return "FlightSafety International";
1134 return "Earlens Corporation";
1136 return "Sunrise Micro Devices, Inc.";
1138 return "Star Micronics Co., Ltd.";
1140 return "Netizens Sp. z o.o.";
1144 return "Nytec, Inc.";
1146 return "Trineo Sp. z o.o.";
1148 return "Nest Labs Inc.";
1150 return "LM Technologies Ltd";
1152 return "General Electric Company";
1156 return "HANA Micron";
1158 return "Stages Cycling LLC";
1160 return "Cochlear Bone Anchored Solutions AB";
1162 return "SenionLab AB";
1164 return "Syszone Co., Ltd";
1166 return "Pulsate Mobile Ltd.";
1168 return "Hong Kong HunterSun Electronic Limited";
1170 return "pironex GmbH";
1172 return "BRADATECH Corp.";
1174 return "Transenergooil AG";
1178 return "DME Microelectronics";
1180 return "Bitcraze AB";
1182 return "HASWARE Inc.";
1184 return "Abiogenix Inc.";
1186 return "Poly-Control ApS";
1190 return "Laerdal Medical AS";
1192 return "Fetch My Pet";
1194 return "Sam Labs Ltd.";
1196 return "Chengdu Synwing Technology Ltd";
1198 return "HOUWA SYSTEM DESIGN, k.k.";
1202 return "Primus Inter Pares Ltd";
1206 return "Gill Electronics";
1208 return "Sky Wave Design";
1210 return "Newlab S.r.l.";
1214 return "G-wearables inc.";
1216 return "Squadrone Systems Inc.";
1218 return "Code Corporation";
1220 return "Savant Systems LLC";
1222 return "Logitech International SA";
1224 return "Innblue Consulting";
1226 return "iParking Ltd.";
1228 return "Koninklijke Philips Electronics N.V.";
1230 return "Minelab Electronics Pty Limited";
1232 return "Bison Group Ltd.";
1238 return "Lectronix, Inc.";
1240 return "Caterpillar Inc";
1242 return "Freedom Innovations";
1244 return "Dynamic Devices Ltd";
1246 return "Technology Solutions (UK) Ltd";
1248 return "IPS Group Inc.";
1254 return "Advanced Application Design, Inc.";
1256 return "AutoMap LLC";
1258 return "Spreadtrum Communications Shanghai Ltd";
1260 return "CuteCircuit LTD";
1262 return "Valeo Service";
1264 return "Fullpower Technologies, Inc.";
1266 return "KloudNation";
1268 return "Zebra Technologies Corporation";
1270 return "Itron, Inc.";
1272 return "The University of Tokyo";
1274 return "UTC Fire and Security";
1276 return "Cool Webthings Limited";
1278 return "DJO Global";
1280 return "Gelliner Limited";
1282 return "Anyka (Guangzhou) Microelectronics Technology Co, LTD";
1284 return "Medtronic, Inc.";
1286 return "Gozio, Inc.";
1288 return "Form Lifting, LLC";
1290 return "Wahoo Fitness, LLC";
1292 return "Kontakt Micro-Location Sp. z o.o.";
1294 return "Radio System Corporation";
1296 return "Freescale Semiconductor, Inc.";
1298 return "Verifone Systems PTe Ltd. Taiwan Branch";
1302 return "Rigado LLC";
1306 return "Tapcentive Inc.";
1308 return "Smartbotics Inc.";
1310 return "Otter Products, LLC";
1312 return "STEMP Inc.";
1314 return "LumiGeek LLC";
1316 return "InvisionHeart Inc.";
1318 return "Macnica Inc.";
1320 return "Jaguar Land Rover Limited";
1322 return "CoroWare Technologies, Inc";
1324 return "Simplo Technology Co., LTD";
1326 return "Omron Healthcare Co., LTD";
1328 return "Comodule GMBH";
1332 return "Telink Semiconductor Co. Ltd";
1334 return "Interplan Co., Ltd";
1338 return "IK Multimedia Production srl";
1340 return "Lukoton Experience Oy";
1344 return "Tech4home, Lda";
1346 return "Hiotech AB";
1348 return "DOTT Limited";
1350 return "Blue Speck Labs, LLC";
1352 return "Cisco Systems Inc";
1354 return "Mobicomm Inc";
1358 return "Goodnet Ltd";
1360 return "Luster Leaf Products Inc";
1362 return "Manus Machina BV";
1364 return "Mobiquity Networks Inc";
1366 return "Praxis Dynamics";
1368 return "Philip Morris Products S.A.";
1370 return "Comarch SA";
1372 return "Nestl Nespresso S.A.";
1374 return "Merlinia A/S";
1376 return "LifeBEAM Technologies";
1378 return "Twocanoes Labs, LLC";
1380 return "Muoverti Limited";
1382 return "Stamer Musikanlagen GMBH";
1384 return "Tesla Motors";
1386 return "Pharynks Corporation";
1390 return "Siemens AG";
1392 return "Huami (Shanghai) Culture Communication CO., LTD";
1394 return "Foster Electric Company, Ltd";
1398 return "x-Senso Solutions Kft";
1400 return "Shenzhen SuLong Communication Ltd";
1402 return "FengFan (BeiJing) Technology Co, Ltd";
1406 return "Pitpatpet Ltd";
1408 return "MSHeli s.r.l.";
1410 return "Trakm8 Ltd";
1412 return "JIN CO, Ltd";
1414 return "Alatech Technology";
1416 return "Beijing CarePulse Electronic Technology Co, Ltd";
1418 return "Awarepoint";
1420 return "ViCentra B.V.";
1422 return "Raven Industries";
1424 return "WaveWare Technologies";
1426 return "Argenox Technologies";
1428 return "Bragi GmbH";
1432 return "Masimo Corp";
1434 return "Iotera Inc.";
1436 return "Endress+Hauser";
1438 return "ACKme Networks, Inc.";
1440 return "FiftyThree Inc.";
1442 return "Parker Hannifin Corp";
1444 return "Transcranial Ltd";
1450 return "Blue Clover Devices";
1452 return "internal use";
1454 return "not assigned";
void * bt_malloc(size_t size)
#define HCI_SLOT_VIOLATION
int bachk(const char *str)
const char * bt_compidtostr(int compid)
#define HCI_INVALID_PARAMETERS
#define HCI_CLASSIFICATION_NOT_SUPPORTED
#define HCI_ACL_CONNECTION_EXISTS
#define HCI_QOS_NOT_SUPPORTED
#define HCI_UNSUPPORTED_FEATURE
int basnprintf(char *str, size_t size, const char *format,...)
#define HCI_CONNECTION_TIMEOUT
#define HCI_INVALID_LMP_PARAMETERS
int basprintf(char *str, const char *format,...)
#define HCI_CONNECTION_TERMINATED
#define HCI_REJECTED_PERSONAL
#define HCI_OE_USER_ENDED_CONNECTION
int ba2oui(const bdaddr_t *ba, char *str)
char * batostr(const bdaddr_t *ba)
#define HCI_NO_CONNECTION
bdaddr_t * strtoba(const char *str)
#define HCI_MAX_NUMBER_OF_SCO_CONNECTIONS
void baswap(bdaddr_t *dst, const bdaddr_t *src)
#define HCI_UNSUPPORTED_LMP_PARAMETER_VALUE
#define HCI_ENCRYPTION_MODE_NOT_ACCEPTED
#define HCI_LMP_PDU_NOT_ALLOWED
#define HCI_PAIRING_NOT_SUPPORTED
#define HCI_AUTHENTICATION_FAILURE
#define HCI_UNSUPPORTED_REMOTE_FEATURE
#define HCI_PARAMETER_OUT_OF_RANGE
int baprintf(const char *format,...)
#define HCI_PAIRING_NOT_ALLOWED
#define HCI_REJECTED_SECURITY
#define HCI_UNKNOWN_LMP_PDU
#define HCI_HARDWARE_FAILURE
#define HCI_PIN_OR_KEY_MISSING
#define HCI_INSUFFICIENT_SECURITY
#define HCI_COMMAND_DISALLOWED
int str2ba(const char *str, bdaddr_t *ba)
#define HCI_REPEATED_ATTEMPTS
#define HCI_UNKNOWN_COMMAND
#define HCI_SCO_OFFSET_REJECTED
int ba2str(const bdaddr_t *ba, char *str)
#define HCI_REJECTED_LIMITED_RESOURCES
#define HCI_TRANSACTION_COLLISION
#define HCI_OE_LOW_RESOURCES
#define HCI_LMP_ERROR_TRANSACTION_COLLISION
#define HCI_ROLE_SWITCH_PENDING
#define HCI_MAX_NUMBER_OF_CONNECTIONS
int bt_error(uint16_t code)
int bafprintf(FILE *stream, const char *format,...)
#define HCI_QOS_UNACCEPTABLE_PARAMETER