Browse Source

qcacmn: Increase num_peers to include bss_peers

bss peer are used for each vdev. Include this count also in the num_peer
count sent to FW.

Change-Id: I71c4858ebe416a644f9e100a8d28ac1fd7989757
CRs-Fixed: 2233009
Kiran Venkatappa 7 years ago
parent
commit
7095e2e883

+ 1 - 1
target_if/init_deinit/src/init_event_handler.c

@@ -355,7 +355,7 @@ static int init_deinit_ready_event_handler(ol_scn_t scn_handle,
 		/* FW allocated number of peers is different than host
 		 * requested. Update host max with FW reported value.
 		 */
-		target_if_info("Host Requested %d peers. FW Supports %d peers",
+		target_if_err("Host Requested %d peers. FW Supports %d peers",
 			       info->wlan_res_cfg.num_peers,
 			       ready_ev.num_total_peer);
 		info->wlan_res_cfg.num_peers = ready_ev.num_total_peer;

+ 1 - 1
umac/cmn_services/inc/wlan_cmn.h

@@ -33,7 +33,7 @@
 /* Max no. of VDEVs, a PDEV can support */
 #define WLAN_UMAC_PDEV_MAX_VDEVS 17
 /* Max no. of Peers, a device can support */
-#define WLAN_UMAC_PSOC_MAX_PEERS 1024
+#define WLAN_UMAC_PSOC_MAX_PEERS (1024 + WLAN_UMAC_PSOC_MAX_VDEVS)
 
 /* Max length of a SSID */
 #define WLAN_SSID_MAX_LEN 32