Skip to content

Commit f15655d

Browse files
authored
Merge branch 'espressif:release/v5.5' into release/v5.5
2 parents fa0fa5c + adb3f2a commit f15655d

File tree

9 files changed

+27
-12
lines changed

9 files changed

+27
-12
lines changed

components/bt/common/ble_log/ble_log_spi_out.c

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737
#define SPI_OUT_PACKET_LOSS_FRAME_SIZE (6)
3838
#define SPI_OUT_TRANS_ITVL_MIN_US (30)
3939
#define SPI_OUT_UL_LOG_STR_BUF_SIZE (100)
40+
#define SPI_OUT_MALLOC(size) heap_caps_malloc(size, MALLOC_CAP_INTERNAL | MALLOC_CAP_8BIT)
4041

4142
#if SPI_OUT_TS_SYNC_ENABLED
4243
#define SPI_OUT_TS_SYNC_TIMEOUT (1000 * 1000)
@@ -233,13 +234,13 @@ static void spi_out_le_audio_log_deinit(void);
233234
static int spi_out_init_trans(spi_out_trans_cb_t **trans_cb, uint16_t buf_size)
234235
{
235236
// Memory allocations
236-
*trans_cb = (spi_out_trans_cb_t *)malloc(sizeof(spi_out_trans_cb_t));
237+
*trans_cb = (spi_out_trans_cb_t *)SPI_OUT_MALLOC(sizeof(spi_out_trans_cb_t));
237238
if (!(*trans_cb)) {
238239
return -1;
239240
}
240241
memset(*trans_cb, 0, sizeof(spi_out_trans_cb_t));
241242

242-
uint8_t *buf = (uint8_t *)spi_bus_dma_memory_alloc(SPI_OUT_BUS, (size_t)buf_size, 0);
243+
uint8_t *buf = (uint8_t *)SPI_OUT_MALLOC((size_t)buf_size);
243244
if (!buf) {
244245
free(*trans_cb);
245246
*trans_cb = NULL;
@@ -311,7 +312,7 @@ IRAM_ATTR static inline void spi_out_append_trans(spi_out_trans_cb_t *trans_cb)
311312
static int spi_out_log_cb_init(spi_out_log_cb_t **log_cb, uint16_t buf_size, uint8_t type)
312313
{
313314
// Initialize log control block
314-
*log_cb = (spi_out_log_cb_t *)malloc(sizeof(spi_out_log_cb_t));
315+
*log_cb = (spi_out_log_cb_t *)SPI_OUT_MALLOC(sizeof(spi_out_log_cb_t));
315316
if (!(*log_cb)) {
316317
ESP_LOGE(BLE_LOG_TAG, "Failed to initialize log control block!");
317318
return -1;
@@ -427,7 +428,7 @@ IRAM_ATTR static bool spi_out_log_cb_write(spi_out_log_cb_t *log_cb, const uint8
427428

428429
memcpy(buf, (const uint8_t *)&head, SPI_OUT_FRAME_HEAD_LEN);
429430
memcpy(buf + SPI_OUT_FRAME_HEAD_LEN, addr, len);
430-
if (len_append) {
431+
if (len_append && addr_append) {
431432
memcpy(buf + SPI_OUT_FRAME_HEAD_LEN + len, addr_append, len_append);
432433
}
433434
memcpy(buf + SPI_OUT_FRAME_HEAD_LEN + total_length, &checksum, SPI_OUT_FRAME_TAIL_LEN);
@@ -520,7 +521,7 @@ static int spi_out_ul_log_init(void)
520521
}
521522

522523
// Initialize string buffer
523-
ul_log_str_buf = (uint8_t *)malloc(SPI_OUT_UL_LOG_STR_BUF_SIZE);
524+
ul_log_str_buf = (uint8_t *)SPI_OUT_MALLOC(SPI_OUT_UL_LOG_STR_BUF_SIZE);
524525
if (!ul_log_str_buf) {
525526
ESP_LOGE(BLE_LOG_TAG, "Failed to initialize string buffer for upper layer task log!");
526527
goto str_buf_init_failed;

components/bt/common/ble_log/include/ble_log/ble_log_spi_out.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
#include "esp_timer.h"
1414
#include "esp_log.h"
1515
#include "freertos/semphr.h"
16+
#include "esp_heap_caps.h"
1617

1718
// Public enums
1819
enum {

components/esp_rom/esp32c5/ld/esp32c5.rom.pp.ld

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -154,11 +154,11 @@ pm_beacon_monitor_tbtt_timeout_process = 0x40000e00;
154154
pm_update_next_tbtt = 0x40000e04;
155155
pm_twt_disallow_tx = 0x40000e08;
156156
pm_clear_wakeup_signal = 0x40000e0c;
157-
/*pm_mac_disable_tsf_tbtt_soc_wakeup = 0x40000e10;
158-
pm_mac_disable_tsf_tbtt_modem_wakeup = 0x40000e14;
157+
//pm_mac_disable_tsf_tbtt_soc_wakeup = 0x40000e10;
158+
//pm_mac_disable_tsf_tbtt_modem_wakeup = 0x40000e14;
159159
//pm_mac_enable_tsf_tbtt_soc_wakeup = 0x40000e18;
160160
//pm_mac_enable_tsf_tbtt_modem_wakeup = 0x40000e1c;
161-
//pm_mac_modem_params_rt_update = 0x40000e20;*/
161+
//pm_mac_modem_params_rt_update = 0x40000e20;
162162
pm_update_at_next_beacon = 0x40000e24;
163163
tbtt_adaptive_setup = 0x40000e28;
164164
tbtt_adaptive_servo = 0x40000e2c;

components/esp_wifi/include/esp_wifi_types_generic.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1467,7 +1467,7 @@ typedef struct {
14671467
bool dcm; /**< Using dcm rate to send frame */
14681468
} wifi_tx_rate_config_t;
14691469

1470-
#define WIFI_MAX_SUPPORT_COUNTRY_NUM 175 /**< max number of supported countries */
1470+
#define WIFI_MAX_SUPPORT_COUNTRY_NUM 176 /**< max number of supported countries */
14711471
#ifdef CONFIG_SOC_WIFI_SUPPORT_5G
14721472
#define WIFI_MAX_REGULATORY_RULE_NUM 7 /**< max number of regulatory rules */
14731473
#else

components/esp_wifi/regulatory/esp_wifi_regulatory.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ typedef enum {
8989

9090
const wifi_regdomain_t regdomain_table[WIFI_MAX_SUPPORT_COUNTRY_NUM] = {
9191
{"01", ESP_WIFI_REGULATORY_TYPE_DEFAULT},
92+
{"EU", ESP_WIFI_REGULATORY_TYPE_CE},
9293
{"AD", ESP_WIFI_REGULATORY_TYPE_CE},
9394
{"AE", ESP_WIFI_REGULATORY_TYPE_IFETEL},
9495
{"AF", ESP_WIFI_REGULATORY_TYPE_AF},
@@ -1067,6 +1068,7 @@ typedef enum {
10671068

10681069
const wifi_regdomain_t regdomain_table[WIFI_MAX_SUPPORT_COUNTRY_NUM] = {
10691070
{"01", ESP_WIFI_REGULATORY_TYPE_DEFAULT},
1071+
{"EU", ESP_WIFI_REGULATORY_TYPE_CE},
10701072
{"AD", ESP_WIFI_REGULATORY_TYPE_CE},
10711073
{"AE", ESP_WIFI_REGULATORY_TYPE_CE},
10721074
{"AF", ESP_WIFI_REGULATORY_TYPE_CE},

components/esp_wifi/regulatory/esp_wifi_regulatory.txt

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,17 @@ country 01:
4444
# Channel 52 - 64
4545
(5250 - 5330 @ 80), (20), NO-IR, DFS, AUTO-BW
4646

47+
# EU decision 2005/513/EC: https://eur-lex.europa.eu/legal-content/EN/TXT/?uri=CELEX:02005D0513-20070213
48+
# EU decision 2006/771/EC: https://eur-lex.europa.eu/legal-content/EN/TXT/?uri=CELEX:02008D0432-20080611
49+
# Harmonized CEPT countries: https://www.ecodocdb.dk/download/25c41779-cd6e/Rec7003e.pdf
50+
country EU: DFS-ETSI
51+
(2400 - 2483.5 @ 40), (100 mW)
52+
(5150 - 5250 @ 80), (200 mW), NO-OUTDOOR, AUTO-BW, wmmrule=ETSI
53+
(5250 - 5350 @ 80), (100 mW), NO-OUTDOOR, DFS, AUTO-BW, wmmrule=ETSI
54+
(5470 - 5725 @ 160), (500 mW), DFS, wmmrule=ETSI
55+
# short range devices (ETSI EN 300 440-1)
56+
(5725 - 5875 @ 80), (25 mW)
57+
4758
# AD as part of CEPT accepted decisions 2005/513/EC (5GHz RLAN, EN 301 893)
4859
# and 2006/771/EC (amended by 2008/432/EC, Short-Range Devices, EN 300 440)
4960
# EU decision 2005/513/EC: https://eur-lex.europa.eu/legal-content/EN/TXT/?uri=CELEX:02005D0513-20070213

components/wpa_supplicant/esp_supplicant/src/esp_hostap.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ void *hostap_init(void)
158158
auth_conf->group_mgmt_cipher = WPA_CIPHER_BIP_GMAC_256;
159159
break;
160160
default:
161-
wpa_printf(MSG_DEBUG, "Invalid pairwise cipher (0x%x)", pairwise_cipher);
161+
auth_conf->group_mgmt_cipher = WPA_CIPHER_AES_128_CMAC;
162162
}
163163
}
164164
if (authmode == WIFI_AUTH_WPA2_WPA3_PSK) {

0 commit comments

Comments
 (0)