Skip to content

Commit ab84dcd

Browse files
authored
Merge pull request #13198 from kyle-cypress/pr/whd-1.91.2
Cypress: Update WHD to version 1.91.2
2 parents 60c94eb + c7a6a8f commit ab84dcd

File tree

12 files changed

+206
-129
lines changed

12 files changed

+206
-129
lines changed

features/netsocket/emac-drivers/TARGET_Cypress/COMPONENT_WHD/interface/WhdSTAInterface.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,13 +113,16 @@ static nsapi_security_t whd_tosecurity(whd_security_t sec)
113113
case WHD_SECURITY_WEP_PSK:
114114
case WHD_SECURITY_WEP_SHARED:
115115
return NSAPI_SECURITY_WEP;
116+
case WHD_SECURITY_WPA_MIXED_PSK:
116117
case WHD_SECURITY_WPA_TKIP_PSK:
117118
case WHD_SECURITY_WPA_TKIP_ENT:
118119
return NSAPI_SECURITY_WPA;
119-
case WHD_SECURITY_WPA2_MIXED_PSK:
120+
case WHD_SECURITY_WPA2_WPA_AES_PSK:
121+
case WHD_SECURITY_WPA2_WPA_MIXED_PSK:
120122
return NSAPI_SECURITY_WPA_WPA2;
121123
case WHD_SECURITY_WPA2_MIXED_ENT:
122124
return NSAPI_SECURITY_WPA2_ENT;
125+
case WHD_SECURITY_WPA2_MIXED_PSK:
123126
case WHD_SECURITY_WPA2_AES_PSK:
124127
case WHD_SECURITY_WPA2_AES_ENT:
125128
case WHD_SECURITY_WPA2_FBT_PSK:

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:83:ef:22"
9+
#define NVRAM_GENERATED_MAC_ADDRESS "macaddr=00:A0:50:6f:b2:ea"

targets/TARGET_Cypress/TARGET_PSOC6/COMPONENT_WHD/inc/whd_types.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ extern "C"
4444
#define WPA_SECURITY 0x00200000 /**< Flag to enable WPA Security */
4545
#define WPA2_SECURITY 0x00400000 /**< Flag to enable WPA2 Security */
4646
#define WPA3_SECURITY 0x01000000 /**< Flag to enable WPA3 PSK Security */
47+
#define SECURITY_MASK (WEP_ENABLED | TKIP_ENABLED | AES_ENABLED) /**< Flag to Security mask */
4748

4849
#define ENTERPRISE_ENABLED 0x02000000 /**< Flag to enable Enterprise Security */
4950
#define WPS_ENABLED 0x10000000 /**< Flag to enable WPS Security */
@@ -191,6 +192,9 @@ typedef enum
191192
WHD_SECURITY_WPA2_MIXED_PSK = (WPA2_SECURITY | AES_ENABLED | TKIP_ENABLED), /**< WPA2 PSK Security with AES & TKIP */
192193
WHD_SECURITY_WPA2_FBT_PSK = (WPA2_SECURITY | AES_ENABLED | FBT_ENABLED), /**< WPA2 FBT PSK Security with AES & TKIP */
193194
WHD_SECURITY_WPA3_SAE = (WPA3_SECURITY | AES_ENABLED), /**< WPA3 Security with AES */
195+
WHD_SECURITY_WPA2_WPA_AES_PSK = (WPA2_SECURITY | WPA_SECURITY | AES_ENABLED), /**< WPA2 WPA PSK Security with AES */
196+
WHD_SECURITY_WPA2_WPA_MIXED_PSK = (WPA2_SECURITY | WPA_SECURITY | AES_ENABLED | TKIP_ENABLED), /**< WPA2 WPA PSK Security with AES & TKIP */
197+
194198
WHD_SECURITY_WPA3_WPA2_PSK = (WPA3_SECURITY | WPA2_SECURITY | AES_ENABLED), /**< WPA3 WPA2 PSK Security with AES */
195199

196200
WHD_SECURITY_WPA_TKIP_ENT = (ENTERPRISE_ENABLED | WPA_SECURITY | TKIP_ENABLED), /**< WPA Enterprise Security with TKIP */
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
#define WHD_VERSION "v1.90.2"
2-
#define WHD_BRANCH "v1.90.2"
3-
#define WHD_DATE "2020-04-13 02:49:57 -0500"
1+
#define WHD_VERSION "v1.91.2"
2+
#define WHD_BRANCH "v1.91.2"
3+
#define WHD_DATE "2020-06-25 02:15:47 -0500"

targets/TARGET_Cypress/TARGET_PSOC6/COMPONENT_WHD/inc/whd_wifi_api.h

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,8 @@ extern uint32_t whd_wifi_join(whd_interface_t ifp, const whd_ssid_t *ssid, whd_s
289289
* On successful return, the system is ready to send data packets.
290290
*
291291
* @param ifp Pointer to handle instance of whd interface
292-
* @param ap A pointer to a whd_scan_result_t structure containing AP details
292+
* @param ap A pointer to a whd_scan_result_t structure containing AP details and
293+
* set ap.channel to 0 for unspecificed channel
293294
* @param security_key A byte array containing either the cleartext security key for WPA/WPA2
294295
* secured networks
295296
* @param key_length The length of the security_key in bytes.
@@ -804,7 +805,7 @@ whd_result_t whd_arp_cache_clear(whd_interface_t ifp);
804805
/** Get ARP Offload Feature Flags from Device (WLAN)
805806
*
806807
* @param[in] ifp : pointer to handle instance of whd interface
807-
* @param[out] features : ptr to store currently set features - bit flags @ref CY_ARP_OL_AGENT_ENABLE, etc.
808+
* @param[out] features : ptr to store currently set features - bit flags CY_ARP_OL_AGENT_ENABLE, etc.
808809
* ARL_OL_AGENT | ARL_OL_SNOOP | ARP_OL_HOST_AUTO_REPLY | ARP_OL_PEER_AUTO_REPLY
809810
*
810811
* @return whd_result_t
@@ -814,7 +815,7 @@ whd_result_t whd_arp_features_get(whd_interface_t ifp, uint32_t *features);
814815
/** Set ARP Offload Feature Flags in Device (WLAN)
815816
*
816817
* @param[in] ifp : pointer to handle instance of whd interface
817-
* @param[in] features : features to set value (you can OR ('|') multiple flags) @ref CY_ARP_OL_AGENT_ENABLE, etc.
818+
* @param[in] features : features to set value (you can OR ('|') multiple flags) CY_ARP_OL_AGENT_ENABLE, etc.
818819
* ARL_OL_AGENT | ARL_OL_SNOOP | ARP_OL_HOST_AUTO_REPLY | ARP_OL_PEER_AUTO_REPLY
819820
*
820821
* @return whd_result_t
@@ -823,7 +824,7 @@ whd_result_t whd_arp_features_set(whd_interface_t ifp, uint32_t features);
823824

824825
/** Print ARP Offload Feature Flags in Human readable form to console
825826
*
826-
* @param[in] features : feature flags to set (you can OR '|' multiple flags) @ref CY_ARP_OL_AGENT_ENABLE, etc.
827+
* @param[in] features : feature flags to set (you can OR '|' multiple flags) CY_ARP_OL_AGENT_ENABLE, etc.
827828
* ARL_OL_AGENT | ARL_OL_SNOOP | ARP_OL_HOST_AUTO_REPLY | ARP_OL_PEER_AUTO_REPLY
828829
* @param[in] title : Optional: Title for output (NULL == no title)
829830
*
@@ -898,7 +899,7 @@ whd_result_t whd_arp_stats_clear(whd_interface_t ifp);
898899
/** Get ARP Offload statistics from Device (WLAN)
899900
*
900901
* @param[in] ifp : pointer to handle instance of whd interface
901-
* @param[out] stats : Ptr to store statistics @ref whd_arp_stats_t
902+
* @param[out] stats : Ptr to store statistics whd_arp_stats_t
902903
*
903904
* @return whd_result_t
904905
*/

targets/TARGET_Cypress/TARGET_PSOC6/COMPONENT_WHD/resources/nvram/TARGET_CYESKIT_064B0S2_4343W/wifi_nvram_image.h

Lines changed: 0 additions & 96 deletions
This file was deleted.

0 commit comments

Comments
 (0)