mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-11 23:24:22 -04:00
: Resolve compilation issues
changes in the interface of APIs related to generating mac address Change-Id: I440e07452c2ffb7b3cb15528e7777d6db0012909
This commit is contained in:
parent
8473475c52
commit
a4bc69de91
1 changed files with 9 additions and 7 deletions
|
|
@ -120,9 +120,10 @@ QDF_STATUS hdd_update_mac_serial(struct hdd_context *hdd_ctx)
|
|||
qdf_status = QDF_STATUS_E_FAILURE;
|
||||
goto config_exit;
|
||||
}
|
||||
qdf_mem_copy(&pHddCtx->derived_mac_addr[0].bytes,
|
||||
hdd_ctx->num_provisioned_addr = MACADDRESSUSED;
|
||||
qdf_mem_copy(&hdd_ctx->provisioned_mac_addr[0].bytes[0],
|
||||
(uint8_t *)computedMac, QDF_MAC_ADDR_SIZE);
|
||||
pHddCtx->num_derived_addr++;
|
||||
//hdd_ctx->num_derived_addr++;
|
||||
|
||||
config_exit:
|
||||
qdf_mem_free(computedMac);
|
||||
|
|
@ -194,8 +195,7 @@ QDF_STATUS hdd_generate_random_mac_from_serialno(char *serialNo, int serialnoLen
|
|||
|
||||
return cryptoStatus;
|
||||
}
|
||||
#endif
|
||||
|
||||
#else
|
||||
|
||||
/**
|
||||
* get_next_line() - find and locate the new line pointer
|
||||
|
|
@ -274,6 +274,8 @@ static char *i_trim(char *str)
|
|||
return str;
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
/** struct hdd_cfg_entry - ini configuration entry
|
||||
* @name: name of the entry
|
||||
* @value: value of the entry
|
||||
|
|
@ -595,10 +597,10 @@ QDF_STATUS hdd_update_mac_config(struct hdd_context *hdd_ctx)
|
|||
macTable[0].value = &buffer_temp[0];
|
||||
macTable[1].value = &buffer_mac2[0];
|
||||
update_mac_from_string(hdd_ctx, &macTable[0], MACADDRESSUSED);
|
||||
pHddCtx->num_provisioned_addr = MACADDRESSUSED;
|
||||
hdd_populate_random_mac_addr(pHddCtx, QDF_MAX_CONCURRENCY_PERSONA - MACADDRESSUSED);
|
||||
hdd_ctx->num_provisioned_addr = MACADDRESSUSED;
|
||||
hdd_populate_random_mac_addr(hdd_ctx, QDF_MAX_CONCURRENCY_PERSONA - MACADDRESSUSED);
|
||||
qdf_mem_copy(&customMacAddr,
|
||||
&pHddCtx->provisioned_mac_addr[0].bytes[0],
|
||||
&hdd_ctx->provisioned_mac_addr[0].bytes[0],
|
||||
sizeof(tSirMacAddr));
|
||||
sme_set_custom_mac_addr(customMacAddr);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue