Ver Fonte

qcacld-3.0: Add one to vdev max allowed create peer count

In some roaming scenario, the old bss peer was not destroyed before
new bss peer create, so new bss peer fail to attach to vdev because
max allowed create peer for STA vdev is 2 (self peer + bss peer + no
TDLS peer on TDLS disabled platform).

Add one more peer count to vdev max peer count for STA.
It has no impact to memory requirement.

Change-Id: I474b0b9493c385123351b1cdcdfab8e584803dca
CRs-Fixed: 3646841
Will Huang há 1 ano atrás
pai
commit
80d0e97f13
1 ficheiros alterados com 5 adições e 2 exclusões
  1. 5 2
      core/hdd/src/wlan_hdd_main.c

+ 5 - 2
core/hdd/src/wlan_hdd_main.c

@@ -7438,9 +7438,12 @@ hdd_vdev_configure_max_tdls_params(struct wlan_objmgr_psoc *psoc,
 	uint16_t max_peer_count;
 	bool target_bigtk_support = false;
 
-	/* Max peer can be tdls peers + self peer + bss peer */
+	/*
+	 * Max peer can be tdls peers + self peer + bss peer +
+	 * temp bss peer for roaming create/delete peer at same time
+	 */
 	max_peer_count = cfg_tdls_get_max_peer_count(psoc);
-	max_peer_count += 2;
+	max_peer_count += 3;
 	wlan_vdev_set_max_peer_count(vdev, max_peer_count);
 
 	ucfg_mlme_get_bigtk_support(psoc, &target_bigtk_support);