mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 11:41:38 -04:00
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:
parent
3e7a493b81
commit
2a84c5313d
2 changed files with 5 additions and 6 deletions
|
|
@ -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 */
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue