: 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:
jmng34 2020-01-09 15:06:35 +05:30 • committed by panyq6
commit dd78410f07

View file

@ -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: