else if (use_reserved_slot == TRUE)
i = 1;
else
- i = 2;
+ i = 0;
- for (i = 0; i < le_feature_info.adv_inst_max; i++) {
+ for ( ; i < le_feature_info.adv_inst_max; i++) {
if (le_adv_slot[i].initialized == 0) {
DBG("Slot to be allocated [%d] UUID to be registered [%s]",
i, btuuid2str(uuid->uu));