qcacld-3.0: Rename totalSmeCmd

The Linux Coding Style frowns upon mixed-case names, so rename
totalSmeCmd in struct sme_context to be compliant.

Change-Id: If25c57423db261a314f1ad2d438ffeeeadce3d89
CRs-Fixed: 2400313
This commit is contained in:
Jeff Johnson 2019-02-17 12:22:04 -08:00 • committed by nshrivas
commit 2a84c5313d
2 changed files with 5 additions and 6 deletions

View file

@ -254,7 +254,7 @@ typedef QDF_STATUS (*md_host_evt_cb)(void *hdd_ctx, struct sir_md_evt *event);
struct sme_context {
eSmeState state;
qdf_mutex_t sme_global_lock;
uint32_t totalSmeCmd;
uint32_t sme_cmd_count;
/* following pointer contains array of pointers for tSmeCmd* */
void **pSmeCmdBufAddr;
tDblLinkList smeCmdFreeList; /* preallocated roam cmd list */

View file

@ -274,7 +274,7 @@ static void free_sme_cmds(struct mac_context *mac_ctx)
if (NULL == mac_ctx->sme.pSmeCmdBufAddr)
return;
for (idx = 0; idx < mac_ctx->sme.totalSmeCmd; idx++)
for (idx = 0; idx < mac_ctx->sme.sme_cmd_count; idx++)
qdf_mem_free(mac_ctx->sme.pSmeCmdBufAddr[idx]);
qdf_mem_free(mac_ctx->sme.pSmeCmdBufAddr);
@ -288,15 +288,14 @@ static QDF_STATUS init_sme_cmd_list(struct mac_context *mac)
uint32_t cmd_idx;
uint32_t sme_cmd_ptr_ary_sz;
mac->sme.totalSmeCmd = SME_TOTAL_COMMAND;
mac->sme.sme_cmd_count = SME_TOTAL_COMMAND;
status = csr_ll_open(&mac->sme.smeCmdFreeList);
if (!QDF_IS_STATUS_SUCCESS(status))
goto end;
/* following pointer contains array of pointers for tSmeCmd* */
sme_cmd_ptr_ary_sz = sizeof(void *) * mac->sme.totalSmeCmd;
sme_cmd_ptr_ary_sz = sizeof(void *) * mac->sme.sme_cmd_count;
mac->sme.pSmeCmdBufAddr = qdf_mem_malloc(sme_cmd_ptr_ary_sz);
if (!mac->sme.pSmeCmdBufAddr) {
status = QDF_STATUS_E_NOMEM;
@ -304,7 +303,7 @@ static QDF_STATUS init_sme_cmd_list(struct mac_context *mac)
}
status = QDF_STATUS_SUCCESS;
for (cmd_idx = 0; cmd_idx < mac->sme.totalSmeCmd; cmd_idx++) {
for (cmd_idx = 0; cmd_idx < mac->sme.sme_cmd_count; cmd_idx++) {
/*
* Since total size of all commands together can be huge chunk
* of memory, allocate SME cmd individually. These SME CMDs are