diff --git a/core/sme/inc/sme_internal.h b/core/sme/inc/sme_internal.h index 2e6513fbea59..3a29216ab564 100644 --- a/core/sme/inc/sme_internal.h +++ b/core/sme/inc/sme_internal.h @@ -257,7 +257,7 @@ struct sme_context { uint32_t sme_cmd_count; /* following pointer contains array of pointers for tSmeCmd* */ void **sme_cmd_buf_addr; - tDblLinkList smeCmdFreeList; /* preallocated roam cmd list */ + tDblLinkList sme_cmd_freelist; /* preallocated roam cmd list */ enum QDF_OPMODE currDeviceMode; tSmePeerInfoHddCbkInfo peerInfoParams; #ifdef FEATURE_WLAN_DIAG_SUPPORT_CSR diff --git a/core/sme/src/common/sme_api.c b/core/sme/src/common/sme_api.c index 6d710c1fd10e..b9897cffc535 100644 --- a/core/sme/src/common/sme_api.c +++ b/core/sme/src/common/sme_api.c @@ -290,7 +290,7 @@ static QDF_STATUS init_sme_cmd_list(struct mac_context *mac) mac->sme.sme_cmd_count = SME_TOTAL_COMMAND; - status = csr_ll_open(&mac->sme.smeCmdFreeList); + status = csr_ll_open(&mac->sme.sme_cmd_freelist); if (!QDF_IS_STATUS_SUCCESS(status)) goto end; @@ -320,7 +320,7 @@ static QDF_STATUS init_sme_cmd_list(struct mac_context *mac) goto end; } mac->sme.sme_cmd_buf_addr[cmd_idx] = cmd; - csr_ll_insert_tail(&mac->sme.smeCmdFreeList, + csr_ll_insert_tail(&mac->sme.sme_cmd_freelist, &cmd->Link, LL_ACCESS_LOCK); } @@ -334,7 +334,7 @@ end: void sme_release_command(struct mac_context *mac_ctx, tSmeCmd *sme_cmd) { sme_cmd->command = eSmeNoCommand; - csr_ll_insert_tail(&mac_ctx->sme.smeCmdFreeList, &sme_cmd->Link, + csr_ll_insert_tail(&mac_ctx->sme.sme_cmd_freelist, &sme_cmd->Link, LL_ACCESS_LOCK); } @@ -342,7 +342,7 @@ static QDF_STATUS free_sme_cmd_list(struct mac_context *mac) { QDF_STATUS status = QDF_STATUS_SUCCESS; - csr_ll_close(&mac->sme.smeCmdFreeList); + csr_ll_close(&mac->sme.sme_cmd_freelist); status = sme_acquire_global_lock(&mac->sme); if (status != QDF_STATUS_SUCCESS) @@ -388,11 +388,12 @@ tSmeCmd *sme_get_command_buffer(struct mac_context *mac) tListElem *pEntry; static int sme_command_queue_full; - pEntry = csr_ll_remove_head(&mac->sme.smeCmdFreeList, LL_ACCESS_LOCK); + pEntry = csr_ll_remove_head(&mac->sme.sme_cmd_freelist, LL_ACCESS_LOCK); - /* If we can get another MS Msg buffer, then we are ok. Just link */ - /* the entry onto the linked list. (We are using the linked list */ - /* to keep track of tfhe message buffers). */ + /* If we can get another MS Msg buffer, then we are ok. Just + * link the entry onto the linked list. (We are using the + * linked list to keep track of the message buffers). + */ if (pEntry) { pRetCmd = GET_BASE_ADDR(pEntry, tSmeCmd, Link); /* reset when free list is available */