Skip to content

Commit 7314de4

Browse files
committed
Add scan limit configure item
Expose scan limit configuration to customer Signed-off-by: Rex Chen <rex.chen_1@nxp.com>
1 parent cf8f163 commit 7314de4

File tree

2 files changed

+12
-16
lines changed

2 files changed

+12
-16
lines changed

mcux/middleware/wifi_nxp/incl/nxp_wifi.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff 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

mcux/middleware/wifi_nxp/incl/wlcmgr/wlan.h

Lines changed: 4 additions & 16 deletions
Original file line numberDiff line numberDiff 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 */

0 commit comments

Comments
 (0)