linux_dsm_epyc7002/drivers/net/wireless/ti/wl1251
Pali Rohár 4f507d588d wl1251: Parse and use MAC address from supplied NVS data
This patch implements parsing MAC address from NVS data which are sent to
wl1251 chip. Calibration NVS data could contain valid MAC address and it
will be used instead of randomly generated one.

This patch also moves code for requesting NVS data from userspace to driver
initialization code to make sure that NVS data will be there at time when
permanent MAC address is needed.

Calibration NVS data for wl1251 are device specific. Every device with
wl1251 chip should have been calibrated in factory and needs to provide own
calibration data.

Default example file wl1251-nvs.bin, found in linux-firmware repository,
contains MAC address 00:00:20:07:03:09. So this MAC address is marked as
invalid as it is not real device specific address, just example one.

Format of calibration NVS data can be found at:
http://notaz.gp2x.de/misc/pnd/wl1251/nvs_map.txt

Signed-off-by: Pali Rohár <pali.rohar@gmail.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
2018-02-27 15:50:43 +02:00
..
acx.c License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
acx.h wl1251: implement multicast address filtering (fwd) 2014-01-09 10:56:06 -05:00
boot.c wl1251: retry power save entry 2014-01-09 10:53:38 -05:00
boot.h
cmd.c License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
cmd.h wl1251: split RX and TX data path initialisation 2014-01-09 10:53:39 -05:00
debugfs.c
debugfs.h
event.c mac80211: Pass new RSSI level in CQM RSSI notification 2017-02-08 10:43:04 +01:00
event.h wl1251: retry power save entry 2014-01-09 10:53:38 -05:00
init.c wlcore, wl1251: fix spelling: "Couldnt" -> "Couldn't" and remove error on -ENOMEM 2017-12-07 15:24:32 +02:00
init.h
io.c
io.h
Kconfig ti: unify Kconfig with other vendors 2015-11-18 14:28:31 +02:00
main.c wl1251: Parse and use MAC address from supplied NVS data 2018-02-27 15:50:43 +02:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
ps.c wl1251: use to_delayed_work() 2016-04-07 19:37:37 +03:00
ps.h
reg.h
rx.c mac80211: clean up rate encoding bits in RX status 2017-04-28 10:41:38 +02:00
rx.h
sdio.c wl1251: move power GPIO handling into the driver 2014-02-28 14:08:26 -05:00
spi.c spi: Drop owner assignment from spi_drivers 2015-10-28 10:30:17 +09:00
spi.h
tx.c networking: make skb_push & __skb_push return void pointers 2017-06-16 11:48:40 -04:00
tx.h
wl12xx_80211.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
wl1251.h wl1251: spi: add vio regulator support 2014-02-28 14:08:27 -05:00