From 0255f8542d735c5feb2ef1d48344485df9919578 Mon Sep 17 00:00:00 2001 From: yeshwanth sriram guntuka Date: Wed, 31 Aug 2016 17:18:19 +0530 Subject: [PATCH] qcacld-3.0: Disable IBSS creator info upon GETIBSSPEERINFOALL command When GETIBSSPEERINFOALL command is used to print IBSS peer info, both creator and peer info are displayed. Fix is to decrease the loop iteration by one so that creator info is not displayed. Change-Id: I1cc467d6fd4b3b29f86f01aa111235f04ddaef42 CRs-Fixed: 1061472 --- core/wma/src/wma_data.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/core/wma/src/wma_data.c b/core/wma/src/wma_data.c index f05bea5f5689..abdf3633bef8 100644 --- a/core/wma/src/wma_data.c +++ b/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,