Skip to content

Commit a501f37

Browse files
author
ybzhao
committed
[int][bug][ble] fix ad type flags set error
Project: Bluetooth redmine: #8325, REDMINE-8325 ext-redmine: bug|feat#id [Description in detail] Affected branch: [master] Change-Id: I289b9ed6cc5aaadc0f8c2283b6fcb6a339781ea3
1 parent 9aea013 commit a501f37

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

include/bf0_sibles_advertising.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -254,6 +254,7 @@ typedef struct
254254
typedef struct
255255
{
256256
uint8_t disc_mode; /**< Discovery mode(@see enum gapm_adv_disc_mode) to set flags field. */
257+
/**< implement sibles_advertising_disc_mode_get() to set this parameter. */
257258
uint8_t flags; /**< flags, only available when disc_mode is set to GAPM_ADV_MODE_CUSTOMIZE*/
258259
uint8_t *tx_pwr_level; /**< Tx power level field. */
259260
uint16_t *appearance; /**< Appearance field. */

service/ble/bf0_sibles_advertising.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,8 @@ uint8_t sibles_advertising_init(sibles_advertising_context_t *context, sibles_ad
206206
context->adv_para.type = GAPM_ADV_TYPE_LEGACY;
207207
}
208208
context->adv_para.disc_mode = sibles_advertising_disc_mode_get();
209+
para->adv_data.disc_mode = context->adv_para.disc_mode;
210+
209211
context->adv_para.max_tx_pwr = para->config.max_tx_pwr;
210212
context->adv_para.filter_pol = ADV_ALLOW_SCAN_ANY_CON_ANY;
211213

0 commit comments

Comments
 (0)