File tree Expand file tree Collapse file tree 2 files changed +12
-16
lines changed
mcux/middleware/wifi_nxp/incl Expand file tree Collapse file tree 2 files changed +12
-16
lines changed Original file line number Diff line number Diff line change @@ -46,6 +46,14 @@ extern "C" {
4646#define CONFIG_MAX_AP_ENTRIES CONFIG_NXP_WIFI_MAX_AP_ENTRIES
4747#endif
4848
49+ #if CONFIG_NXP_WIFI_MAX_RESCAN_LIMIT
50+ #define CONFIG_MAX_RESCAN_LIMIT CONFIG_NXP_WIFI_MAX_RESCAN_LIMIT
51+ #endif
52+
53+ #if CONFIG_NXP_WIFI_MAX_RECONNECT_LIMIT
54+ #define CONFIG_MAX_RECONNECT_LIMIT CONFIG_NXP_WIFI_MAX_RECONNECT_LIMIT
55+ #endif
56+
4957#if CONFIG_NXP_WIFI_WLAN_KNOWN_NETWORKS
5058#define CONFIG_WLAN_KNOWN_NETWORKS CONFIG_NXP_WIFI_WLAN_KNOWN_NETWORKS
5159#endif
Original file line number Diff line number Diff line change @@ -85,24 +85,12 @@ typedef enum
8585
8686/** The number of times that the Wi-Fi connection manager look for a
8787 * network before giving up. */
88- #if CONFIG_MAX_RESCAN_LIMIT
89- #define WLAN_RESCAN_LIMIT CONFIG_MAX_RESCAN_LIMIT
90- #else
91- #if CONFIG_WPA_SUPP
92- #define WLAN_RESCAN_LIMIT 30U
93- #else
94- #if CONFIG_P2P
95- #define WLAN_RESCAN_LIMIT 10U
96- #else
97- #define WLAN_RESCAN_LIMIT 5U
98- #endif /* CONFIG_P2P */
99- #endif /* CONFIG_WPA_SUPP */
100- #endif /* CONFIG_MAX_RESCAN_LIMIT */
88+ #define WLAN_RESCAN_LIMIT CONFIG_MAX_RESCAN_LIMIT
89+ /** The number of times that the Wi-Fi connection manager attempts a
90+ * reconnection with the network before giving up. */
91+ #define WLAN_RECONNECT_LIMIT CONFIG_MAX_RECONNECT_LIMIT
10192
10293#define WLAN_11D_SCAN_LIMIT 3U
103- /** The number of times that the Wi-Fi connection manager attempts a
104- * reconnection with the network before giving up. */
105- #define WLAN_RECONNECT_LIMIT 5U
10694/** Minimum length for network names, see \ref wlan_network. */
10795#define WLAN_NETWORK_NAME_MIN_LENGTH 1U
10896/** Maximum length for network names, see \ref wlan_network */
You can’t perform that action at this time.
0 commit comments