Skip to content

Commit 9f4119e

Browse files
authored
Merge pull request #11885 from morser499/pr/whd1.60
Update to WHD 1.60 release
2 parents d0d3462 + 722a6eb commit 9f4119e

File tree

12 files changed

+23961
-30538
lines changed

12 files changed

+23961
-30538
lines changed

targets/TARGET_Cypress/TARGET_PSOC6/COMPONENT_WHD/generated_mac_address.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@
66
* MAC address is printed during WHD power up
77
*/
88

9-
#define NVRAM_GENERATED_MAC_ADDRESS "macaddr=00:A0:50:13:e1:5d"
9+
#define NVRAM_GENERATED_MAC_ADDRESS "macaddr=00:A0:50:d6:93:82"
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
#define WHD_VERSION "v1.50.0-rc1"
2-
#define WHD_BRANCH "v1.50.0-rc1"
3-
#define WHD_DATE "2019-10-30 18:42:31 +0530"
1+
#define WHD_VERSION "v1.60.0-rc1"
2+
#define WHD_BRANCH "v1.60.0-rc1"
3+
#define WHD_DATE "2019-11-13 21:27:38 -0600"

targets/TARGET_Cypress/TARGET_PSOC6/COMPONENT_WHD/resources/firmware/COMPONENT_43012/43012C0-mfgtest_bin.c

Lines changed: 13934 additions & 17223 deletions
Large diffs are not rendered by default.

targets/TARGET_Cypress/TARGET_PSOC6/COMPONENT_WHD/resources/firmware/COMPONENT_43012/43012C0-mfgtest_clm_blob.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@
1919
CY_SECTION_WHD(CY_STORAGE_WIFI_DATA) __attribute__((used))
2020
#endif
2121
const unsigned char wifi_mfg_firmware_clm_blob_image_data[7697] = {
22-
66, 76, 79, 66, 60, 0, 0, 0, 119, 14, 187, 250, 1, 0, 0, 0, 2, 0, 0,
23-
0, 0, 0, 0, 0, 60, 0, 0, 0, 209, 29, 0, 0, 66, 38, 18, 29, 0, 0, 0,
22+
66, 76, 79, 66, 60, 0, 0, 0, 152, 171, 222, 29, 1, 0, 0, 0, 2, 0, 0,
23+
0, 0, 0, 0, 0, 60, 0, 0, 0, 209, 29, 0, 0, 12, 188, 123, 67, 0, 0, 0,
2424
0, 0, 0, 0, 0, 13, 30, 0, 0, 4, 0, 0, 0, 147, 68, 77, 121, 0, 0, 0,
2525
0, 67, 76, 77, 32, 68, 65, 84, 65, 0, 0, 18, 0, 2, 0, 57, 46, 49, 48,
2626
46, 48, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 49, 46, 51, 54, 46,
@@ -257,7 +257,7 @@ const unsigned char wifi_mfg_firmware_clm_blob_image_data[7697] = {
257257
2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 4, 0, 1, 2, 3, 8, 12, 13, 14, 15, 16,
258258
17, 18, 19, 8, 4, 5, 6, 7, 8, 9, 10, 11, 21, 2, 2, 18, 4, 5, 6, 7, 8,
259259
9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 50, 48, 49, 57, 45,
260-
49, 48, 45, 50, 57, 32, 50, 49, 58, 53, 48, 58, 52, 56, 0, 0, 3, 0,
260+
49, 48, 45, 51, 49, 32, 48, 51, 58, 48, 49, 58, 52, 50, 0, 0, 3, 0,
261261
0, 0, 196, 11, 0, 0, 1, 14, 1, 0, 3, 0, 0, 0, 120, 14, 0, 0, 42, 58,
262262
16, 106, 138, 16, 155, 171, 16, 0, 0, 0, 3, 0, 0, 0, 28, 23, 0, 0, 21,
263263
2, 2, 0, 9, 0, 19, 0, 22, 0, 24, 0, 32, 0, 35, 0, 42, 0, 53, 0, 59,

targets/TARGET_Cypress/TARGET_PSOC6/COMPONENT_WHD/resources/firmware/COMPONENT_43012/43012C0_bin.c

Lines changed: 9605 additions & 12901 deletions
Large diffs are not rendered by default.

targets/TARGET_Cypress/TARGET_PSOC6/COMPONENT_WHD/resources/firmware/COMPONENT_43012/43012C0_clm_blob.c

Lines changed: 401 additions & 400 deletions
Large diffs are not rendered by default.

targets/TARGET_Cypress/TARGET_PSOC6/COMPONENT_WHD/resources/firmware/COMPONENT_43012/resources.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,11 @@
2020
#include "wiced_resource.h"
2121

2222
extern const resource_hnd_t wifi_firmware_image;
23-
extern const unsigned char wifi_firmware_image_data[448820];
23+
extern const unsigned char wifi_firmware_image_data[389776];
2424
extern const resource_hnd_t wifi_firmware_clm_blob;
2525
extern const unsigned char wifi_firmware_clm_blob_image_data[7697];
2626
extern const resource_hnd_t wifi_mfg_firmware_image;
27-
extern const unsigned char wifi_mfg_firmware_image_data[529375];
27+
extern const unsigned char wifi_mfg_firmware_image_data[470331];
2828
extern const resource_hnd_t wifi_mfg_firmware_clm_blob;
2929
extern const unsigned char wifi_mfg_firmware_clm_blob_image_data[7697];
3030

targets/TARGET_Cypress/TARGET_PSOC6/COMPONENT_WHD/src/whd_wifi_api.c

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -775,11 +775,6 @@ static void *whd_wifi_join_events_handler(whd_interface_t ifp, const whd_event_h
775775
case WLC_E_DISASSOC_IND:
776776
whd_driver->internal_info.whd_join_status[event_header->bsscfgidx] &=
777777
~(JOIN_AUTHENTICATED | JOIN_LINK_READY);
778-
if (ifp->event_reg_list[WHD_JOIN_EVENT_ENTRY] != WHD_EVENT_NOT_REGISTERED)
779-
{
780-
whd_wifi_deregister_event_handler(ifp, ifp->event_reg_list[WHD_JOIN_EVENT_ENTRY]);
781-
ifp->event_reg_list[WHD_JOIN_EVENT_ENTRY] = WHD_EVENT_NOT_REGISTERED;
782-
}
783778
break;
784779

785780
case WLC_E_AUTH:
@@ -1279,6 +1274,12 @@ static uint32_t whd_wifi_prepare_join(whd_interface_t ifp, whd_security_t auth_t
12791274
*wpa_auth = htod32(*wpa_auth);
12801275
CHECK_RETURN(whd_cdc_send_ioctl(ifp, CDC_SET, WLC_SET_WPA_AUTH, buffer, 0) );
12811276

1277+
if (ifp->event_reg_list[WHD_JOIN_EVENT_ENTRY] != WHD_EVENT_NOT_REGISTERED)
1278+
{
1279+
whd_wifi_deregister_event_handler(ifp, ifp->event_reg_list[WHD_JOIN_EVENT_ENTRY]);
1280+
ifp->event_reg_list[WHD_JOIN_EVENT_ENTRY] = WHD_EVENT_NOT_REGISTERED;
1281+
}
1282+
12821283
CHECK_RETURN(whd_management_set_event_handler(ifp, join_events, whd_wifi_join_events_handler, (void *)semaphore,
12831284
&event_entry) );
12841285
if (event_entry >= WHD_EVENT_ENTRY_MAX)
@@ -2238,6 +2239,12 @@ uint32_t whd_wifi_scan(whd_interface_t ifp,
22382239
}
22392240
param_size = ( uint16_t )(param_size + channel_list_size * sizeof(uint16_t) );
22402241
}
2242+
2243+
if (ifp->event_reg_list[WHD_SCAN_EVENT_ENTRY] != WHD_EVENT_NOT_REGISTERED)
2244+
{
2245+
whd_wifi_deregister_event_handler(ifp, ifp->event_reg_list[WHD_SCAN_EVENT_ENTRY]);
2246+
ifp->event_reg_list[WHD_SCAN_EVENT_ENTRY] = WHD_EVENT_NOT_REGISTERED;
2247+
}
22412248
CHECK_RETURN(whd_management_set_event_handler(ifp, scan_events, whd_wifi_scan_events_handler, user_data,
22422249
&event_entry) );
22432250
if (event_entry >= WHD_MAX_EVENT_SUBSCRIPTION)

0 commit comments

Comments
 (0)