hci.c (8ef6d15f2e57475299d899dc83148afff11dea01) hci.c (ae35a99c2d13e1f528eebba1d62d051700b83ded)
1/*
2 * Copyright (C) 2014 BlueKitchen GmbH
3 *
4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions
6 * are met:
7 *
8 * 1. Redistributions of source code must retain the above copyright

--- 5934 unchanged lines hidden (view full) ---

5943#ifdef ENABLE_LE_EXTENDED_ADVERTISING
5944 if (hci_extended_advertising_supported()) {
5945 hci_send_cmd(&hci_le_set_advertising_set_random_address, 0, hci_stack->le_random_address);
5946 }
5947#endif
5948 {
5949 hci_send_cmd(&hci_le_set_random_address, hci_stack->le_random_address);
5950 }
1/*
2 * Copyright (C) 2014 BlueKitchen GmbH
3 *
4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions
6 * are met:
7 *
8 * 1. Redistributions of source code must retain the above copyright

--- 5934 unchanged lines hidden (view full) ---

5943#ifdef ENABLE_LE_EXTENDED_ADVERTISING
5944 if (hci_extended_advertising_supported()) {
5945 hci_send_cmd(&hci_le_set_advertising_set_random_address, 0, hci_stack->le_random_address);
5946 }
5947#endif
5948 {
5949 hci_send_cmd(&hci_le_set_random_address, hci_stack->le_random_address);
5950 }
5951#ifdef ENABLE_LE_SET_ADV_PARAMS_ON_RANDOM_ADDRESS_CHANGE
5952 // workaround: on some Controllers, address in advertisements is updated only after next dv params set
5953 hci_stack->le_advertisements_todo |= LE_ADVERTISEMENT_TASKS_SET_PARAMS;
5954#endif
5951 return true;
5952 }
5953
5954#ifdef ENABLE_LE_CENTRAL
5955 if (hci_stack->le_scanning_param_update){
5956 hci_stack->le_scanning_param_update = false;
5957#ifdef ENABLE_LE_EXTENDED_ADVERTISING
5958 if (hci_extended_advertising_supported()){

--- 4092 unchanged lines hidden ---
5955 return true;
5956 }
5957
5958#ifdef ENABLE_LE_CENTRAL
5959 if (hci_stack->le_scanning_param_update){
5960 hci_stack->le_scanning_param_update = false;
5961#ifdef ENABLE_LE_EXTENDED_ADVERTISING
5962 if (hci_extended_advertising_supported()){

--- 4092 unchanged lines hidden ---