Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions mcux/middleware/wifi_nxp/incl/nxp_wifi.h
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,14 @@ extern "C" {
#define CONFIG_MAX_AP_ENTRIES CONFIG_NXP_WIFI_MAX_AP_ENTRIES
#endif

#if CONFIG_NXP_WIFI_MAX_RESCAN_LIMIT
#define CONFIG_MAX_RESCAN_LIMIT CONFIG_NXP_WIFI_MAX_RESCAN_LIMIT
#endif

#if CONFIG_NXP_WIFI_MAX_RECONNECT_LIMIT
#define CONFIG_MAX_RECONNECT_LIMIT CONFIG_NXP_WIFI_MAX_RECONNECT_LIMIT
#endif

#if CONFIG_NXP_WIFI_WLAN_KNOWN_NETWORKS
#define CONFIG_WLAN_KNOWN_NETWORKS CONFIG_NXP_WIFI_WLAN_KNOWN_NETWORKS
#endif
Expand Down
20 changes: 4 additions & 16 deletions mcux/middleware/wifi_nxp/incl/wlcmgr/wlan.h
Original file line number Diff line number Diff line change
Expand Up @@ -85,24 +85,12 @@ typedef enum

/** The number of times that the Wi-Fi connection manager look for a
* network before giving up. */
#if CONFIG_MAX_RESCAN_LIMIT
#define WLAN_RESCAN_LIMIT CONFIG_MAX_RESCAN_LIMIT
#else
#if CONFIG_WPA_SUPP
#define WLAN_RESCAN_LIMIT 30U
#else
#if CONFIG_P2P
#define WLAN_RESCAN_LIMIT 10U
#else
#define WLAN_RESCAN_LIMIT 5U
#endif /* CONFIG_P2P */
#endif /* CONFIG_WPA_SUPP */
#endif /* CONFIG_MAX_RESCAN_LIMIT */
#define WLAN_RESCAN_LIMIT CONFIG_MAX_RESCAN_LIMIT
/** The number of times that the Wi-Fi connection manager attempts a
* reconnection with the network before giving up. */
#define WLAN_RECONNECT_LIMIT CONFIG_MAX_RECONNECT_LIMIT

#define WLAN_11D_SCAN_LIMIT 3U
/** The number of times that the Wi-Fi connection manager attempts a
* reconnection with the network before giving up. */
#define WLAN_RECONNECT_LIMIT 5U
/** Minimum length for network names, see \ref wlan_network. */
#define WLAN_NETWORK_NAME_MIN_LENGTH 1U
/** Maximum length for network names, see \ref wlan_network */
Expand Down