Skip to content

Commit 4e6369d

Browse files
committed
WiFi: make library more compatible with WiFiNINA
1 parent 6352a95 commit 4e6369d

File tree

1 file changed

+16
-10
lines changed

1 file changed

+16
-10
lines changed

libraries/WiFi/src/utility/wl_definitions.h

+16-10
Original file line numberDiff line numberDiff line change
@@ -46,16 +46,17 @@
4646

4747
typedef enum {
4848
WL_NO_SHIELD = 255,
49-
WL_IDLE_STATUS = 0,
50-
WL_NO_SSID_AVAIL,
51-
WL_SCAN_COMPLETED,
52-
WL_CONNECTED,
53-
WL_CONNECT_FAILED,
54-
WL_CONNECTION_LOST,
55-
WL_DISCONNECTED,
56-
WL_AP_LISTENING,
57-
WL_AP_CONNECTED,
58-
WL_AP_FAILED
49+
WL_NO_MODULE = 255,
50+
WL_IDLE_STATUS = 0,
51+
WL_NO_SSID_AVAIL,
52+
WL_SCAN_COMPLETED,
53+
WL_CONNECTED,
54+
WL_CONNECT_FAILED,
55+
WL_CONNECTION_LOST,
56+
WL_DISCONNECTED,
57+
WL_AP_LISTENING,
58+
WL_AP_CONNECTED,
59+
WL_AP_FAILED
5960
} wl_status_t;
6061

6162
/* Encryption modes */
@@ -65,8 +66,13 @@ enum wl_enc_type { /* Values map to 802.11 encryption suites... */
6566
ENC_TYPE_CCMP = 4,
6667
/* ... except these two, 7 and 8 are reserved in 802.11-2007 */
6768
ENC_TYPE_NONE = 7,
69+
ENC_TYPE_UNKNOWN = 9,
6870
ENC_TYPE_AUTO = 8
6971
};
7072

73+
#if defined(ARDUINO_PORTENTA_H7_M7) || defined(ARDUINO_PORTENTA_H7_M4)
74+
#include "whd_version.h"
75+
#define WIFI_FIRMWARE_LATEST_VERSION WHD_VERSION
76+
#endif
7177

7278
#endif /* WL_DEFINITIONS_H_ */

0 commit comments

Comments
 (0)