Explorar el Código

Merge "qcacld-3.0: Disable IBSS creator info upon GETIBSSPEERINFOALL command" into wlan-cld3.driver.lnx.1.1-dev

Service qcabuildsw hace 8 años
padre
commit
63a5df90a2
Se han modificado 1 ficheros con 5 adiciones y 1 borrados
  1. 5 1
      core/wma/src/wma_data.c

+ 5 - 1
core/wma/src/wma_data.c

@@ -2165,7 +2165,11 @@ int wma_ibss_peer_info_event_handler(void *handle, uint8_t *data,
 		goto send_response;
 	}
 
-	for (count = 0; count < num_peers; count++) {
+	/*
+	 *For displaying only connected IBSS peer info, iterate till
+	 *last but one entry only as last entry is used for IBSS creator
+	 */
+	for (count = 0; count < num_peers-1; count++) {
 		pSmeRsp = &pRsp->ibssPeerInfoRspParams.peerInfoParams[count];
 
 		WMI_MAC_ADDR_TO_CHAR_ARRAY(&peer_info->peer_mac_address,