1、support adapter_bluetooth and hc08 device;2、fix adapter at agent bug。

This commit is contained in:
Liu_Weichao
2021-10-11 10:13:01 +08:00
parent b07ad19dc3
commit 92347f7e29
10 changed files with 435 additions and 44 deletions
@@ -501,7 +501,7 @@ static const struct IpProtocolDone hfa21_done =
*/
AdapterProductInfoType Hfa21Attach(struct Adapter *adapter)
{
struct AdapterProductInfo *product_info = malloc(sizeof(struct AdapterProductInfo));
struct AdapterProductInfo *product_info = PrivMalloc(sizeof(struct AdapterProductInfo));
if (!product_info) {
printf("Hfa21Attach Attach malloc product_info error\n");
PrivFree(product_info);