diff options
| author | Komal Seelam <kseelam@codeaurora.org> | 2016-03-04 17:25:16 +0530 |
|---|---|---|
| committer | David Keitel <dkeitel@codeaurora.org> | 2016-03-25 16:03:43 -0700 |
| commit | 501e4dbda64f453dacf6ab8c0ff2b372ad019428 (patch) | |
| tree | 0cad44d1f6afd43cabe5b767f3397a55422cbcf2 /include | |
| parent | 861905b5ca938ae6d6f781348c98a928d604ad04 (diff) | |
cnss: Implement API to store WLAN MAC address in platform driver
WLAN Functional Drivers Queries cnss platform driver to get the
MAC Address. If the OEM doesn't provide the valid MAC address, the
WLAN Driver fallbacks to use other approaches to get MAC address.
This works under CONFIG_CNSS_MAC feature flag, which will be enabled
only on the OEM platforms. For internal platforms, CNSS driver doesn't
hold any valid mac addresses.
CRs-Fixed: 985585
Change-Id: I1e8a030a32a640cec84cadd6b36b37938d5fe6be
Signed-off-by: Komal Kumar <kseelam@codeaurora.org>
Diffstat (limited to 'include')
| -rw-r--r-- | include/net/cnss.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/net/cnss.h b/include/net/cnss.h index ff8469fc78e7..bf1f80d5655f 100644 --- a/include/net/cnss.h +++ b/include/net/cnss.h @@ -213,6 +213,9 @@ extern void *cnss_sdio_get_virt_ramdump_mem(unsigned long *size); extern void cnss_schedule_recovery_work(void); extern void cnss_sdio_schedule_recovery_work(void); extern void cnss_pci_schedule_recovery_work(void); +extern int cnss_pcie_set_wlan_mac_address(const u8 *in, uint32_t len); +extern u8 *cnss_get_wlan_mac_address(struct device *dev, uint32_t *num); +extern int cnss_sdio_set_wlan_mac_address(const u8 *in, uint32_t len); enum { CNSS_RESET_SOC = 0, |
