summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--core/hdd/src/wlan_hdd_wext.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/core/hdd/src/wlan_hdd_wext.c b/core/hdd/src/wlan_hdd_wext.c
index 591ff4032f75..56b7296c072c 100644
--- a/core/hdd/src/wlan_hdd_wext.c
+++ b/core/hdd/src/wlan_hdd_wext.c
@@ -852,11 +852,10 @@ static QDF_STATUS hdd_wlan_get_ibss_peer_info(hdd_adapter_t *pAdapter,
hdd_station_ctx_t *pStaCtx = WLAN_HDD_GET_STATION_CTX_PTR(pAdapter);
tSirPeerInfoRspParams *pPeerInfo = &pStaCtx->ibss_peer_info;
- status =
- sme_request_ibss_peer_info(hHal, pAdapter, hdd_get_ibss_peer_info_cb,
- false, staIdx);
-
INIT_COMPLETION(pAdapter->ibss_peer_info_comp);
+ status = sme_request_ibss_peer_info(hHal, pAdapter,
+ hdd_get_ibss_peer_info_cb,
+ false, staIdx);
if (QDF_STATUS_SUCCESS == status) {
unsigned long rc;
@@ -902,10 +901,10 @@ static QDF_STATUS hdd_wlan_get_ibss_peer_info_all(hdd_adapter_t *pAdapter)
tSirPeerInfoRspParams *pPeerInfo = &pStaCtx->ibss_peer_info;
int i;
- status =
- sme_request_ibss_peer_info(hHal, pAdapter, hdd_get_ibss_peer_info_cb,
- true, 0xFF);
INIT_COMPLETION(pAdapter->ibss_peer_info_comp);
+ status = sme_request_ibss_peer_info(hHal, pAdapter,
+ hdd_get_ibss_peer_info_cb,
+ true, 0xFF);
if (QDF_STATUS_SUCCESS == status) {
unsigned long rc;