diff --git a/components/nan/core/src/nan_main.c b/components/nan/core/src/nan_main.c index ac60edf7f0..9687f83c5c 100644 --- a/components/nan/core/src/nan_main.c +++ b/components/nan/core/src/nan_main.c @@ -341,15 +341,8 @@ nan_increment_ndp_sessions(struct wlan_objmgr_psoc *psoc, wlan_objmgr_peer_release_ref(peer, WLAN_NAN_ID); return QDF_STATUS_E_NULL_VALUE; } - qdf_spin_lock_bh(&peer_nan_obj->lock); - if (peer_nan_obj->active_ndp_sessions == MAX_NDP_INSTANCES_PER_PEER) { - qdf_spin_unlock_bh(&peer_nan_obj->lock); - nan_err("Already reached Max limit(%d) for NDP's per peer!", - MAX_NDP_INSTANCES_PER_PEER); - wlan_objmgr_peer_release_ref(peer, WLAN_NAN_ID); - return QDF_STATUS_E_FAILURE; - } + /* * Store the first channel info in NDP Confirm as the home channel info * and store it in the peer private object. diff --git a/components/nan/core/src/nan_main_i.h b/components/nan/core/src/nan_main_i.h index fa7107e6bf..07fc44532e 100644 --- a/components/nan/core/src/nan_main_i.h +++ b/components/nan/core/src/nan_main_i.h @@ -58,9 +58,6 @@ struct scheduler_msg; #define nan_nofl_debug(params...) \ QDF_TRACE_DEBUG_NO_FL(QDF_MODULE_ID_NAN, params) -/* Maximum number of NDP instances supported on each NAN Peer */ -#define MAX_NDP_INSTANCES_PER_PEER 2 - /** * enum nan_disc_state - NAN Discovery states * @NAN_DISC_DISABLED: NAN Discovery is disabled