Change-Id: I51659c64f66a449d2135f1414bce7b18e890fef0
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
}
/* Set Apperance */
- if (adv_param_setup.appearance >= 0) {
+#ifdef TIZEN_BT_HAL
+ if (adv_param_setup.include_appearance != 0) {
+#else
+ if (adv_param_setup.appearance > 0) {
+#endif
adv_data[index] = 0x03;
adv_data[index+1] = 0x19;
adv_data[index+2] = (uint8_t) (adv_param_setup.appearance & 0xFF);
bool set_scan_rsp;
bool include_name;
bool include_txpower;
+#ifdef TIZEN_BT_HAL
+ bool include_appearance;
+#endif
uint16_t appearance;
char* manufacturer_data;
uint16_t manufacturer_data_len;
uint8_t set_scan_rsp;
uint8_t include_name;
uint8_t include_txpower;
+#ifdef TIZEN_BT_HAL
+ uint8_t include_appearance;
+#endif
uint16_t appearance;
char* manufacturer_data;
uint16_t manufacturer_data_len;
adv_setup.set_scan_rsp = adv_param_setup->set_scan_rsp;
adv_setup.include_name = adv_param_setup->include_name;
adv_setup.include_txpower = adv_param_setup->include_txpower;
+#ifdef TIZEN_BT_HAL
+ adv_setup.include_appearance = adv_param_setup->include_appearance;
+#endif
adv_setup.appearance = adv_param_setup->appearance;
adv_setup.manufacturer_data = adv_param_setup->manufacturer_data;
adv_setup.manufacturer_data_len = adv_param_setup->manufacturer_data_len;
break;
}
case 0x19: {
+#ifdef TIZEN_BT_HAL
+ adv_setup->include_appearance = 1;
+#endif
memcpy(&adv_setup->appearance, (ptr + 2), (len - 1));
break;
}