diff options
| author | Ashish Kumar Dhanotiya <adhanoti@codeaurora.org> | 2020-07-10 19:21:09 +0530 |
|---|---|---|
| committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2020-07-14 02:59:01 -0700 |
| commit | b656075ca4356d7f99f1d910e54cf0aa334fffc7 (patch) | |
| tree | d97a98d0f8fc31fa22050753b9aad7308d2f3ebb | |
| parent | 3a22c6891a04eca8e32d36e95a8351b9afc7a072 (diff) | |
qcacld-3.0: Update mac address correctly for SAP case
Currently for sap case when mac address changes dynamically,
api hostapd set mac address does not update the mac address
in the adapter. After this in the interface up, driver takes
the mac address from the adapter and because of which, MAC
address never gets updated to FW.
To address this issue, add a fix to update the mac addrees
to the adapter as well.
Change-Id: I8459de59d8e98b81c01e779fe8e8a0dce5db9c4e
CRs-Fixed: 2731570
| -rw-r--r-- | core/hdd/src/wlan_hdd_hostapd.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/core/hdd/src/wlan_hdd_hostapd.c b/core/hdd/src/wlan_hdd_hostapd.c index c9f26cf59fe5..ff2e4c11667a 100644 --- a/core/hdd/src/wlan_hdd_hostapd.c +++ b/core/hdd/src/wlan_hdd_hostapd.c @@ -596,6 +596,7 @@ static int __hdd_hostapd_set_mac_address(struct net_device *dev, void *addr) hdd_info("Changing MAC to " MAC_ADDRESS_STR " of interface %s ", MAC_ADDR_ARRAY(mac_addr.bytes), dev->name); + memcpy(&adapter->macAddressCurrent, psta_mac_addr->sa_data, ETH_ALEN); memcpy(dev->dev_addr, psta_mac_addr->sa_data, ETH_ALEN); EXIT(); return 0; |
