mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
qcacld-3.0: Rename smeCmdFreeList
The Linux Coding Style frowns upon mixed-case names so rename smeCmdFreeList in struct sme_context to be compliant. Change-Id: I8f006bf10f7476b16fca8b251b076ec007134e98 CRs-Fixed: 2400315
This commit is contained in:
parent
c2cf8e66cd
commit
ea9f3d705a
2 changed files with 10 additions and 9 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Reference in a new issue