11diff --git a/src/cyw43_ctrl.c b/src/cyw43_ctrl.c
2- index cc9973e..ab76673 100644
2+ index 8cfcc77..000ea91 100644
33--- a/src/cyw43_ctrl.c
44+++ b/src/cyw43_ctrl.c
5- @@ -288 ,13 +288 ,17 @@ static const char *const cyw43_async_event_name_table[89] = {
5+ @@ -300 ,13 +300 ,17 @@ static const char *const cyw43_async_event_name_table[89] = {
66 [CYW43_EV_SET_SSID] = "SET_SSID",
77 [CYW43_EV_JOIN] = "JOIN",
88 [CYW43_EV_AUTH] = "AUTH",
@@ -21,10 +21,10 @@ index cc9973e..ab76673 100644
2121 [CYW43_EV_ASSOC_REQ_IE] = "ASSOC_REQ_IE",
2222 [CYW43_EV_ASSOC_RESP_IE] = "ASSOC_RESP_IE",
2323diff --git a/src/cyw43_ll.c b/src/cyw43_ll.c
24- index 033eec2..11f08d5 100644
24+ index dc58df1..031eeea 100644
2525--- a/src/cyw43_ll.c
2626+++ b/src/cyw43_ll.c
27- @@ -65 ,11 +65 ,6 @@ extern bool enable_spi_packet_dumping;
27+ @@ -63 ,11 +63 ,6 @@ extern bool enable_spi_packet_dumping;
2828
2929 #define CYW43_RAM_SIZE (512 * 1024)
3030
@@ -36,7 +36,7 @@ index 033eec2..11f08d5 100644
3636 #define ALIGN_UINT(val, align) (((val) + (align) - 1) & ~((align) - 1))
3737
3838 // Configure the padding needed for data sent to cyw43_write_bytes().
39- @@ -101 ,18 +96 ,6 @@ static inline void cyw43_put_le32(uint8_t *buf, uint32_t x) {
39+ @@ -110 ,18 +105 ,6 @@ static inline void cyw43_put_le32(uint8_t *buf, uint32_t x) {
4040 buf[3] = x >> 24;
4141 }
4242
@@ -55,7 +55,7 @@ index 033eec2..11f08d5 100644
5555 /*******************************************************************************/
5656 // CYW43 constants and types
5757
58- @@ -409 ,10 +392 ,6 @@ static int cyw43_check_valid_chipset_firmware(cyw43_int_t *self, size_t len, uin
58+ @@ -418 ,10 +401 ,6 @@ static int cyw43_check_valid_chipset_firmware(cyw43_int_t *self, size_t len, uin
5959 }
6060
6161 static int cyw43_download_resource(cyw43_int_t *self, uint32_t addr, size_t len, uintptr_t source) {
@@ -66,7 +66,7 @@ index 033eec2..11f08d5 100644
6666 CYW43_VDEBUG("writing %u bytes to 0x%x\n", (uint32_t)len, (uint32_t)addr);
6767
6868 uint32_t block_size = CYW43_BUS_MAX_BLOCK_SIZE;
69- @@ -431 ,12 +410 ,18 @@ static int cyw43_download_resource(cyw43_int_t *self, uint32_t addr, size_t len,
69+ @@ -440 ,12 +419 ,18 @@ static int cyw43_download_resource(cyw43_int_t *self, uint32_t addr, size_t len,
7070 uint32_t dest_addr = addr + offset;
7171 assert(((dest_addr & BACKPLANE_ADDR_MASK) + sz) <= (BACKPLANE_ADDR_MASK + 1));
7272 cyw43_set_backplane_window(self, dest_addr);
@@ -87,7 +87,7 @@ index 033eec2..11f08d5 100644
8787 if (ret != 0) {
8888
8989 return CYW43_FAIL_FAST_CHECK(ret);
90- @@ -449 ,42 +434 ,6 @@ static int cyw43_download_resource(cyw43_int_t *self, uint32_t addr, size_t len,
90+ @@ -458 ,42 +443 ,6 @@ static int cyw43_download_resource(cyw43_int_t *self, uint32_t addr, size_t len,
9191 CYW43_VDEBUG("done dnload; dt = %u us; speed = %u kbytes/sec\n", (unsigned int)dt, (unsigned int)(len * 1000 / dt));
9292 #endif
9393
@@ -130,7 +130,7 @@ index 033eec2..11f08d5 100644
130130 return 0;
131131 }
132132
133- @@ -1374 ,7 +1323 ,7 @@ void cyw43_ll_bus_sleep(cyw43_ll_t *self_in, bool can_sleep) {
133+ @@ -1348 ,7 +1297 ,7 @@ void cyw43_ll_bus_sleep(cyw43_ll_t *self_in, bool can_sleep) {
134134 #define CLM_CHUNK_LEN 1024 + 512
135135 #endif
136136
@@ -139,7 +139,7 @@ index 033eec2..11f08d5 100644
139139 // Reuse spid_buf but be careful to start at the right offset in it
140140 uint8_t *buf = &self->spid_buf[SDPCM_HEADER_LEN + 16];
141141
142- @@ -1400 ,7 +1349 ,7 @@ static void cyw43_clm_load(cyw43_int_t *self, const uint8_t *clm_ptr, size_t clm
142+ @@ -1374 ,7 +1323 ,7 @@ static void cyw43_clm_load(cyw43_int_t *self, const uint8_t *clm_ptr, size_t clm
143143 *(uint32_t *)(buf + 12) = len;
144144 *(uint32_t *)(buf + 16) = 0;
145145 #pragma GCC diagnostic pop
@@ -148,7 +148,7 @@ index 033eec2..11f08d5 100644
148148
149149 CYW43_VDEBUG("clm data send %u/%u\n", off + len, clm_len);
150150
151- @@ -1656 ,14 +1605 ,11 @@ alp_set:
151+ @@ -1633 ,14 +1582 ,11 @@ alp_set:
152152 cyw43_write_backplane(self, SOCSRAM_BANKX_INDEX, 4, 0x3);
153153 cyw43_write_backplane(self, SOCSRAM_BANKX_PDA, 4, 0);
154154
@@ -166,7 +166,7 @@ index 033eec2..11f08d5 100644
166166 if (ret != 0) {
167167 return ret;
168168 }
169- @@ -1784 ,9 +1730 ,11 @@ f2_ready:
169+ @@ -1761 ,9 +1707 ,11 @@ f2_ready:
170170
171171 // Load the CLM data; it sits just after main firmware
172172 CYW43_VDEBUG("cyw43_clm_load start\n");
@@ -179,7 +179,7 @@ index 033eec2..11f08d5 100644
179179 cyw43_write_iovar_u32(self, "bus:txglom", 0, WWD_STA_INTERFACE); // tx glomming off
180180 cyw43_write_iovar_u32(self, "apsta", 1, WWD_STA_INTERFACE); // apsta on
181181
182- @@ -1890 ,10 +1838 ,14 @@ int cyw43_ll_wifi_on(cyw43_ll_t *self_in, uint32_t country) {
182+ @@ -1867 ,10 +1815 ,14 @@ int cyw43_ll_wifi_on(cyw43_ll_t *self_in, uint32_t country) {
183183 cyw43_delay_ms(50);
184184
185185 #ifndef NDEBUG
@@ -195,7 +195,7 @@ index 033eec2..11f08d5 100644
195195 #endif
196196
197197 // Set antenna to chip antenna
198- @@ -1919 ,8 +1871 ,8 @@ int cyw43_ll_wifi_on(cyw43_ll_t *self_in, uint32_t country) {
198+ @@ -1896 ,8 +1848 ,8 @@ int cyw43_ll_wifi_on(cyw43_ll_t *self_in, uint32_t country) {
199199 CLR_EV(buf, 19); // roam attempt occurred
200200 CLR_EV(buf, 20); // tx fail
201201 CLR_EV(buf, 40); // radio
@@ -206,10 +206,10 @@ index 033eec2..11f08d5 100644
206206 #undef CLR_EV
207207 memcpy(buf, "bsscfg:event_msgs", 18);
208208diff --git a/src/cyw43_ll.h b/src/cyw43_ll.h
209- index b5c1ead..6e4ea30 100644
209+ index fe7c68f..4791641 100644
210210--- a/src/cyw43_ll.h
211211+++ b/src/cyw43_ll.h
212- @@ -67,15 +67,19 @@
212+ @@ -67,16 +67,20 @@
213213 #define CYW43_EV_SET_SSID (0)
214214 #define CYW43_EV_JOIN (1)
215215 #define CYW43_EV_AUTH (3)
@@ -224,12 +224,13 @@ index b5c1ead..6e4ea30 100644
224224 #define CYW43_EV_PRUNE (23)
225225+ #define CYW43_EV_PROBREQ_MSG (44)
226226 #define CYW43_EV_PSK_SUP (46)
227+ #define CYW43_EV_ICV_ERROR (49)
227228 #define CYW43_EV_ESCAN_RESULT (69)
228229+ #define CYW43_EV_P2P_PROBREQ_MSG (72)
229230 #define CYW43_EV_CSA_COMPLETE_IND (80)
230231 #define CYW43_EV_ASSOC_REQ_IE (87)
231232 #define CYW43_EV_ASSOC_RESP_IE (88)
232- @@ -316 ,6 +320 ,12 @@ uint32_t cyw43_ll_read_backplane_reg(cyw43_ll_t *self_in, uint32_t addr);
233+ @@ -317 ,6 +321 ,12 @@ uint32_t cyw43_ll_read_backplane_reg(cyw43_ll_t *self_in, uint32_t addr);
233234 int cyw43_ll_write_backplane_mem(cyw43_ll_t *self_in, uint32_t addr, uint32_t len, const uint8_t *buf);
234235 int cyw43_ll_read_backplane_mem(cyw43_ll_t *self_in, uint32_t addr, uint32_t len, uint8_t *buf);
235236
0 commit comments