mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-11 23:24:22 -04:00
qcacld-3.0: Update custom MAC address before creating interface
Custom MAC address has to be updated before creating WLAN interface. Otherwise, custom MAC address won't take affect as WLAN interface will use the old MAC address auto-generated or from hw_addr/config INI file. Change-Id: Icd3feda96ffe45896fec2407f4ddb4351992ed81 CRs-Fixed: 1077588
This commit is contained in:
parent
0f01091107
commit
c98370ec35
1 changed files with 1 additions and 3 deletions
|
|
@ -7413,8 +7413,6 @@ static int hdd_pre_enable_configure(hdd_context_t *hdd_ctx)
|
|||
goto out;
|
||||
}
|
||||
|
||||
hdd_initialize_mac_address(hdd_ctx);
|
||||
|
||||
/*
|
||||
* Set the MAC Address Currently this is used by HAL to add self sta.
|
||||
* Remove this once self sta is added as part of session open.
|
||||
|
|
@ -7999,10 +7997,10 @@ int hdd_wlan_startup(struct device *dev)
|
|||
if (hdd_ipa_init(hdd_ctx) == QDF_STATUS_E_FAILURE)
|
||||
goto err_wiphy_unregister;
|
||||
|
||||
hdd_initialize_mac_address(hdd_ctx);
|
||||
|
||||
rtnl_held = hdd_hold_rtnl_lock();
|
||||
|
||||
|
||||
adapter = hdd_open_interfaces(hdd_ctx, rtnl_held);
|
||||
|
||||
if (IS_ERR(adapter)) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue