qcom: wlan: cnss2: Propagate WLAN MAC to cnss utils
This allows us to use platform driver MAC address provisioning in qcacld-3.0. Change-Id: I09984f44314316367f25eb514924aedf5f01a464
This commit is contained in:
@@ -9,6 +9,7 @@
|
||||
#include <linux/vmalloc.h>
|
||||
|
||||
#include "bus.h"
|
||||
#include "cnss_utils.h"
|
||||
#include "debug.h"
|
||||
#include "main.h"
|
||||
#include "qmi.h"
|
||||
@@ -4121,6 +4122,10 @@ int cnss_qmi_get_dms_mac(struct cnss_plat_data *plat_priv)
|
||||
plat_priv->dms.mac_valid = true;
|
||||
memcpy(plat_priv->dms.mac, resp.mac_address, QMI_WLFW_MAC_ADDR_SIZE_V01);
|
||||
cnss_pr_info("Received DMS MAC: [%pM]\n", plat_priv->dms.mac);
|
||||
ret = cnss_utils_set_wlan_mac_address(plat_priv->dms.mac, QMI_WLFW_MAC_ADDR_SIZE_V01);
|
||||
if (ret < 0) {
|
||||
cnss_pr_err("Failed to set cnss utils wlan mac address (non-fatal), err: %d\n", ret);
|
||||
}
|
||||
|
||||
return 0;
|
||||
out:
|
||||
|
||||
Reference in New Issue
Block a user