|
@@ -67,6 +67,7 @@
|
|
|
#include "qdf_str.h"
|
|
|
#include "qdf_types.h"
|
|
|
#include "qdf_trace.h"
|
|
|
+#include "qdf_net_if.h"
|
|
|
#include "wlan_hdd_cfg.h"
|
|
|
#include "wlan_policy_mgr_api.h"
|
|
|
#include "wlan_hdd_tsf.h"
|
|
@@ -792,7 +793,8 @@ static int __hdd_hostapd_set_mac_address(struct net_device *dev, void *addr)
|
|
|
hdd_update_dynamic_mac(hdd_ctx, &adapter->mac_addr, &mac_addr);
|
|
|
ucfg_dp_update_inf_mac(hdd_ctx->psoc, &adapter->mac_addr, &mac_addr);
|
|
|
memcpy(&adapter->mac_addr, psta_mac_addr->sa_data, ETH_ALEN);
|
|
|
- memcpy(dev->dev_addr, psta_mac_addr->sa_data, ETH_ALEN);
|
|
|
+ qdf_net_update_net_device_dev_addr(dev, psta_mac_addr->sa_data,
|
|
|
+ ETH_ALEN);
|
|
|
hdd_exit();
|
|
|
return 0;
|
|
|
}
|
|
@@ -4246,7 +4248,7 @@ struct hdd_adapter *hdd_wlan_create_ap_dev(struct hdd_context *hdd_ctx,
|
|
|
dev->mtu = HDD_DEFAULT_MTU;
|
|
|
dev->tx_queue_len = HDD_NETDEV_TX_QUEUE_LEN;
|
|
|
|
|
|
- qdf_mem_copy(dev->dev_addr, mac_addr, sizeof(tSirMacAddr));
|
|
|
+ qdf_net_update_net_device_dev_addr(dev, mac_addr, sizeof(tSirMacAddr));
|
|
|
qdf_mem_copy(adapter->mac_addr.bytes, mac_addr, sizeof(tSirMacAddr));
|
|
|
|
|
|
hdd_update_dynamic_tsf_sync(adapter);
|