浏览代码

fix extend adv set remove failed

zwj 3 年之前
父节点
当前提交
e414dd7e07
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      components/bt/host/bluedroid/bta/dm/bta_dm_api.c

+ 1 - 0
components/bt/host/bluedroid/bta/dm/bta_dm_api.c

@@ -2820,6 +2820,7 @@ void BTA_DmBleGapExtAdvSetRemove(UINT8 instance)
     if ((p_msg = (tBTA_DM_API_BLE_EXT_ADV_SET_REMOVE *) osi_malloc(sizeof(tBTA_DM_API_BLE_EXT_ADV_SET_REMOVE))) != NULL) {
         memset(p_msg, 0, sizeof(tBTA_DM_API_BLE_EXT_ADV_SET_REMOVE));
         p_msg->hdr.event = BTA_DM_API_EXT_ADV_SET_REMOVE_EVT;
+        p_msg->instance = instance;
         //start sent the msg to the bta system control moudle
         bta_sys_sendmsg(p_msg);
     } else {