Loading system/btif/src/btif_gatt_client.c +5 −1 Original line number Diff line number Diff line Loading @@ -819,7 +819,7 @@ static void btgattc_handle_event(uint16_t event, char* p_param) break; case BTIF_GATTC_LISTEN: #ifdef BLE_PERIPHERAL_MODE_SUPPORT #if (defined(BLE_PERIPHERAL_MODE_SUPPORT) && (BLE_PERIPHERAL_MODE_SUPPORT == TRUE)) BTA_GATTC_Listen(p_cb->client_if, p_cb->start, NULL); #else BTA_DmBleBroadcast(p_cb->start); Loading Loading @@ -1087,6 +1087,10 @@ static bt_status_t btif_gattc_set_adv_data(int client_if, bool set_scan_rsp, boo } } #if (defined(BLE_PERIPHERAL_ADV_NAME) && (BLE_PERIPHERAL_ADV_NAME == TRUE)) btif_cb.adv_data.mask |= BTM_BLE_AD_BIT_DEV_NAME; #endif return btif_transfer_context(btgattc_handle_event, BTIF_GATTC_SET_ADV_DATA, (char*) &btif_cb, sizeof(btif_gattc_cb_t), NULL); } Loading system/include/bt_target.h +12 −0 Original line number Diff line number Diff line Loading @@ -1440,6 +1440,18 @@ and USER_HW_DISABLE_API macros */ #define GATT_CLIENT_ENABLED TRUE #endif #ifndef BLE_PERIPHERAL_MODE_SUPPORT #define BLE_PERIPHERAL_MODE_SUPPORT FALSE #endif #ifndef BLE_PERIPHERAL_DISPLAYONLY #define BLE_PERIPHERAL_DISPLAYONLY FALSE #endif #ifndef BLE_PERIPHERAL_ADV_NAME #define BLE_PERIPHERAL_ADV_NAME FALSE #endif #ifndef GATT_MAX_SR_PROFILES #define GATT_MAX_SR_PROFILES 32 /* max is 32 */ #endif Loading system/stack/gatt/gatt_api.c +1 −1 Original line number Diff line number Diff line Loading @@ -1295,7 +1295,7 @@ void GATT_Deregister (tGATT_IF gatt_if) gatt_deregister_bgdev_list(gatt_if); /* update the listen mode */ #ifdef BLE_PERIPHERAL_MODE_SUPPORT #if (defined(BLE_PERIPHERAL_MODE_SUPPORT) && (BLE_PERIPHERAL_MODE_SUPPORT == TRUE)) GATT_Listen(gatt_if, FALSE, NULL); #endif Loading system/stack/include/btm_ble_api.h +1 −1 Original line number Diff line number Diff line Loading @@ -276,8 +276,8 @@ typedef struct tBTM_BLE_MANU manu; /* manufactuer data */ tBTM_BLE_INT_RANGE int_range; /* slave prefered conn interval range */ tBTM_BLE_SERVICE services; /* services */ UINT8 flag; UINT16 appearance; UINT8 flag; tBTM_BLE_PROPRIETARY *p_proprietary; }tBTM_BLE_ADV_DATA; Loading system/stack/smp/smp_act.c +6 −0 Original line number Diff line number Diff line Loading @@ -108,6 +108,12 @@ void smp_send_app_cback(tSMP_CB *p_cb, tSMP_INT_DATA *p_data) { p_cb->loc_auth_req = cb_data.io_req.auth_req; p_cb->loc_io_caps = cb_data.io_req.io_cap; #if (defined(BLE_PERIPHERAL_DISPLAYONLY) && (BLE_PERIPHERAL_DISPLAYONLY == TRUE)) if (p_cb->role == HCI_ROLE_SLAVE) { p_cb->loc_io_caps = SMP_IO_CAP_OUT; } #endif p_cb->loc_oob_flag = cb_data.io_req.oob_data; p_cb->loc_enc_size = cb_data.io_req.max_key_size; p_cb->loc_i_key = cb_data.io_req.init_keys; Loading Loading
system/btif/src/btif_gatt_client.c +5 −1 Original line number Diff line number Diff line Loading @@ -819,7 +819,7 @@ static void btgattc_handle_event(uint16_t event, char* p_param) break; case BTIF_GATTC_LISTEN: #ifdef BLE_PERIPHERAL_MODE_SUPPORT #if (defined(BLE_PERIPHERAL_MODE_SUPPORT) && (BLE_PERIPHERAL_MODE_SUPPORT == TRUE)) BTA_GATTC_Listen(p_cb->client_if, p_cb->start, NULL); #else BTA_DmBleBroadcast(p_cb->start); Loading Loading @@ -1087,6 +1087,10 @@ static bt_status_t btif_gattc_set_adv_data(int client_if, bool set_scan_rsp, boo } } #if (defined(BLE_PERIPHERAL_ADV_NAME) && (BLE_PERIPHERAL_ADV_NAME == TRUE)) btif_cb.adv_data.mask |= BTM_BLE_AD_BIT_DEV_NAME; #endif return btif_transfer_context(btgattc_handle_event, BTIF_GATTC_SET_ADV_DATA, (char*) &btif_cb, sizeof(btif_gattc_cb_t), NULL); } Loading
system/include/bt_target.h +12 −0 Original line number Diff line number Diff line Loading @@ -1440,6 +1440,18 @@ and USER_HW_DISABLE_API macros */ #define GATT_CLIENT_ENABLED TRUE #endif #ifndef BLE_PERIPHERAL_MODE_SUPPORT #define BLE_PERIPHERAL_MODE_SUPPORT FALSE #endif #ifndef BLE_PERIPHERAL_DISPLAYONLY #define BLE_PERIPHERAL_DISPLAYONLY FALSE #endif #ifndef BLE_PERIPHERAL_ADV_NAME #define BLE_PERIPHERAL_ADV_NAME FALSE #endif #ifndef GATT_MAX_SR_PROFILES #define GATT_MAX_SR_PROFILES 32 /* max is 32 */ #endif Loading
system/stack/gatt/gatt_api.c +1 −1 Original line number Diff line number Diff line Loading @@ -1295,7 +1295,7 @@ void GATT_Deregister (tGATT_IF gatt_if) gatt_deregister_bgdev_list(gatt_if); /* update the listen mode */ #ifdef BLE_PERIPHERAL_MODE_SUPPORT #if (defined(BLE_PERIPHERAL_MODE_SUPPORT) && (BLE_PERIPHERAL_MODE_SUPPORT == TRUE)) GATT_Listen(gatt_if, FALSE, NULL); #endif Loading
system/stack/include/btm_ble_api.h +1 −1 Original line number Diff line number Diff line Loading @@ -276,8 +276,8 @@ typedef struct tBTM_BLE_MANU manu; /* manufactuer data */ tBTM_BLE_INT_RANGE int_range; /* slave prefered conn interval range */ tBTM_BLE_SERVICE services; /* services */ UINT8 flag; UINT16 appearance; UINT8 flag; tBTM_BLE_PROPRIETARY *p_proprietary; }tBTM_BLE_ADV_DATA; Loading
system/stack/smp/smp_act.c +6 −0 Original line number Diff line number Diff line Loading @@ -108,6 +108,12 @@ void smp_send_app_cback(tSMP_CB *p_cb, tSMP_INT_DATA *p_data) { p_cb->loc_auth_req = cb_data.io_req.auth_req; p_cb->loc_io_caps = cb_data.io_req.io_cap; #if (defined(BLE_PERIPHERAL_DISPLAYONLY) && (BLE_PERIPHERAL_DISPLAYONLY == TRUE)) if (p_cb->role == HCI_ROLE_SLAVE) { p_cb->loc_io_caps = SMP_IO_CAP_OUT; } #endif p_cb->loc_oob_flag = cb_data.io_req.oob_data; p_cb->loc_enc_size = cb_data.io_req.max_key_size; p_cb->loc_i_key = cb_data.io_req.init_keys; Loading