qcacld-3.0: Rename HDD identifier customMacAddr
The Linux Coding Style frowns upon mixed-case names so rename HDD identifier customMacAddr to be compliant. Change-Id: I374e45b5b2a0feb570e071ca54f13a97638628ae CRs-Fixed: 2417581
This commit is contained in:
parent
0d452472a7
commit
374c0852b1
@ -602,7 +602,7 @@ QDF_STATUS hdd_update_mac_config(struct hdd_context *hdd_ctx)
|
||||
char *name, *value;
|
||||
int max_mac_addr = QDF_MAX_CONCURRENCY_PERSONA;
|
||||
struct hdd_cfg_entry macTable[QDF_MAX_CONCURRENCY_PERSONA];
|
||||
tSirMacAddr customMacAddr;
|
||||
tSirMacAddr custom_mac_addr;
|
||||
|
||||
QDF_STATUS qdf_status = QDF_STATUS_SUCCESS;
|
||||
|
||||
@ -690,15 +690,15 @@ QDF_STATUS hdd_update_mac_config(struct hdd_context *hdd_ctx)
|
||||
hdd_populate_random_mac_addr(hdd_ctx, max_mac_addr - i);
|
||||
|
||||
if (hdd_ctx->num_provisioned_addr)
|
||||
qdf_mem_copy(&customMacAddr,
|
||||
qdf_mem_copy(&custom_mac_addr,
|
||||
&hdd_ctx->provisioned_mac_addr[0].bytes[0],
|
||||
sizeof(tSirMacAddr));
|
||||
else
|
||||
qdf_mem_copy(&customMacAddr,
|
||||
qdf_mem_copy(&custom_mac_addr,
|
||||
&hdd_ctx->derived_mac_addr[0].bytes[0],
|
||||
sizeof(tSirMacAddr));
|
||||
|
||||
sme_set_custom_mac_addr(customMacAddr);
|
||||
sme_set_custom_mac_addr(custom_mac_addr);
|
||||
|
||||
config_exit:
|
||||
qdf_mem_free(temp);
|
||||
|
@ -10294,18 +10294,18 @@ static int hdd_platform_wlan_mac(struct hdd_context *hdd_ctx)
|
||||
*/
|
||||
static int hdd_update_mac_addr_to_fw(struct hdd_context *hdd_ctx)
|
||||
{
|
||||
tSirMacAddr customMacAddr;
|
||||
tSirMacAddr custom_mac_addr;
|
||||
QDF_STATUS status;
|
||||
|
||||
if (hdd_ctx->num_provisioned_addr)
|
||||
qdf_mem_copy(&customMacAddr,
|
||||
qdf_mem_copy(&custom_mac_addr,
|
||||
&hdd_ctx->provisioned_mac_addr[0].bytes[0],
|
||||
sizeof(tSirMacAddr));
|
||||
else
|
||||
qdf_mem_copy(&customMacAddr,
|
||||
qdf_mem_copy(&custom_mac_addr,
|
||||
&hdd_ctx->derived_mac_addr[0].bytes[0],
|
||||
sizeof(tSirMacAddr));
|
||||
status = sme_set_custom_mac_addr(customMacAddr);
|
||||
status = sme_set_custom_mac_addr(custom_mac_addr);
|
||||
if (!QDF_IS_STATUS_SUCCESS(status))
|
||||
return -EAGAIN;
|
||||
return 0;
|
||||
|
Loading…
Reference in New Issue
Block a user