|
@@ -218,7 +218,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 mac_table[QDF_MAX_CONCURRENCY_PERSONA];
|
|
|
- tSirMacAddr custom_mac_addr;
|
|
|
+ struct qdf_mac_addr custom_mac_addr;
|
|
|
|
|
|
QDF_STATUS qdf_status = QDF_STATUS_SUCCESS;
|
|
|
|
|
@@ -310,15 +310,16 @@ 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(&custom_mac_addr,
|
|
|
+ qdf_mem_copy(custom_mac_addr.bytes,
|
|
|
&hdd_ctx->provisioned_mac_addr[0].bytes[0],
|
|
|
- sizeof(tSirMacAddr));
|
|
|
+ sizeof(custom_mac_addr));
|
|
|
else
|
|
|
- qdf_mem_copy(&custom_mac_addr,
|
|
|
+ qdf_mem_copy(custom_mac_addr.bytes,
|
|
|
&hdd_ctx->derived_mac_addr[0].bytes[0],
|
|
|
- sizeof(tSirMacAddr));
|
|
|
+ sizeof(custom_mac_addr));
|
|
|
|
|
|
- sme_set_custom_mac_addr(custom_mac_addr);
|
|
|
+ hdd_update_mld_mac_addr(hdd_ctx, custom_mac_addr);
|
|
|
+ sme_set_custom_mac_addr(custom_mac_addr.bytes);
|
|
|
|
|
|
config_exit:
|
|
|
qdf_mem_free(temp);
|