mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-09 21:59:12 -04:00
: generate 2 mac address based on serial number
For the concurrency mode sta+sap , we need 2 mac addresses DUT is generating only 1 mac address based on serial number added the code to generate the remaining mac addresses Change-Id: I6d2880f746656d332ace67417edb29ad8b97b44a Reviewed-on: https://gerrit.mot.com/1481319 Reviewed-by: Prashanth Chakravarthy <a19110@motorola.com> SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Submit-Approved: Jira Key
This commit is contained in:
parent
8fe4176085
commit
dd78410f07
1 changed files with 3 additions and 1 deletions
|
|
@ -62,6 +62,7 @@
|
|||
#define MACSTRLEN 12
|
||||
#define MACSTRCOLON 58
|
||||
#define MACADDRESSUSED 2
|
||||
#define MACSERIALADDR 1
|
||||
|
||||
struct sdesc {
|
||||
struct shash_desc shash;
|
||||
|
|
@ -120,9 +121,10 @@ QDF_STATUS hdd_update_mac_serial(struct hdd_context *hdd_ctx)
|
|||
qdf_status = QDF_STATUS_E_FAILURE;
|
||||
goto config_exit;
|
||||
}
|
||||
hdd_ctx->num_provisioned_addr = MACADDRESSUSED;
|
||||
hdd_ctx->num_provisioned_addr = MACSERIALADDR;
|
||||
qdf_mem_copy(&hdd_ctx->provisioned_mac_addr[0].bytes[0],
|
||||
(uint8_t *)computedMac, QDF_MAC_ADDR_SIZE);
|
||||
hdd_populate_random_mac_addr(hdd_ctx, QDF_MAX_CONCURRENCY_PERSONA - MACSERIALADDR);
|
||||
//hdd_ctx->num_derived_addr++;
|
||||
|
||||
config_exit:
|
||||
|
|
|
|||
Loading…
Reference in a new issue