From dd78410f07ea4a15f46bd61a388fcb4f964e97d1 Mon Sep 17 00:00:00 2001 From: jmng34 Date: Thu, 9 Jan 2020 15:06:35 +0530 Subject: [PATCH] : 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 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Submit-Approved: Jira Key --- core/hdd/src/wlan_hdd_cfg.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/hdd/src/wlan_hdd_cfg.c b/core/hdd/src/wlan_hdd_cfg.c index 2a819e2492de..e9d6a53c8869 100755 --- a/core/hdd/src/wlan_hdd_cfg.c +++ b/core/hdd/src/wlan_hdd_cfg.c @@ -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: