mirror_ubuntu-kernels/drivers/net/wireless/ath/ath10k
Robert Marko f2a7064a78 ath10k: support bus and device specific API 1 BDF selection
Some ath10k IPQ40xx devices like the MikroTik hAP ac2 and ac3 require the
BDF-s to be extracted from the device storage instead of shipping packaged
API 2 BDF-s.

This is required as MikroTik has started shipping boards that require BDF-s
to be updated, as otherwise their WLAN performance really suffers.
This is however impossible as the devices that require this are release
under the same revision and its not possible to differentiate them from
devices using the older BDF-s.

In OpenWrt we are extracting the calibration data during runtime and we are
able to extract the BDF-s in the same manner, however we cannot package the
BDF-s to API 2 format on the fly and can only use API 1 to provide BDF-s on
the fly.
This is an issue as the ath10k driver explicitly looks only for the
board.bin file and not for something like board-bus-device.bin like it does
for pre-cal data.
Due to this we have no way of providing correct BDF-s on the fly, so lets
extend the ath10k driver to first look for BDF-s in the
board-bus-device.bin format, for example: board-ahb-a800000.wifi.bin
If that fails, look for the default board file name as defined previously.

Signed-off-by: Robert Marko <robimarko@gmail.com>
Signed-off-by: Kalle Valo <quic_kvalo@quicinc.com>
Link: https://lore.kernel.org/r/20211009221711.2315352-1-robimarko@gmail.com
2022-05-06 09:19:45 +03:00
..
ahb.c ath10k: Use of_device_get_match_data() helper 2022-03-21 12:48:24 +02:00
ahb.h
bmi.c
bmi.h treewide: Replace 0-element memcpy() destinations with flexible arrays 2021-10-18 12:28:53 -07:00
ce.c
ce.h
core.c ath10k: support bus and device specific API 1 BDF selection 2022-05-06 09:19:45 +03:00
core.h ath10k: remove a copy of the NAPI_POLL_WEIGHT define 2022-05-02 17:00:11 +03:00
coredump.c ath10k: replace strlcpy with strscpy 2021-12-22 08:02:08 +02:00
coredump.h ath10k: fix module load regression with iram-recovery feature 2021-10-25 16:05:08 +03:00
debug.c ath10k/ath11k: fix spelling mistake "requed" -> "requeued" 2021-05-24 08:34:46 +03:00
debug.h
debugfs_sta.c
hif.h
htc.c ath10k: Fix a use after free in ath10k_htc_send_bundle 2021-04-22 16:53:35 +03:00
htc.h
htt_rx.c ath10k: fix pointer arithmetic error in trace call 2022-02-24 11:05:10 +02:00
htt_tx.c ath10k: abstract htt_rx_desc structure 2022-01-17 14:45:15 +02:00
htt.c ath10k: abstract htt_rx_desc structure 2022-01-17 14:45:15 +02:00
htt.h ath10k: abstract htt_rx_desc structure 2022-01-17 14:45:15 +02:00
hw.c ath10k: abstract htt_rx_desc structure 2022-01-17 14:45:15 +02:00
hw.h ath10k: Trigger sta disconnect on hardware restart 2022-03-21 12:46:16 +02:00
Kconfig qcom_scm: hide Kconfig symbol 2021-10-07 16:51:57 +02:00
mac.c ath10k: mac: fix too long lines 2022-05-06 09:16:56 +03:00
mac.h
Makefile
p2p.c
p2p.h
pci.c ath10k: remove a copy of the NAPI_POLL_WEIGHT define 2022-05-02 17:00:11 +03:00
pci.h ath10k: remove the repeated declaration 2021-06-15 17:03:51 +03:00
qmi_wlfw_v01.c
qmi_wlfw_v01.h
qmi.c ath10k: Don't always treat modem stop events as crashes 2021-10-05 17:26:38 +03:00
qmi.h
rx_desc.h ath10k: abstract htt_rx_desc structure 2022-01-17 14:45:15 +02:00
sdio.c wireless-next patches for v5.19 2022-05-03 17:27:51 -07:00
sdio.h
snoc.c ath10k: remove a copy of the NAPI_POLL_WEIGHT define 2022-05-02 17:00:11 +03:00
snoc.h ath10k: Don't always treat modem stop events as crashes 2021-10-05 17:26:38 +03:00
spectral.c
spectral.h
swap.c
swap.h ath10k: Replace zero-length array with flexible-array member 2022-02-21 12:23:28 +02:00
targaddrs.h
testmode_i.h
testmode.c
testmode.h
thermal.c
thermal.h
trace.c
trace.h
txrx.c mac80211: fix struct ieee80211_tx_info size 2022-02-04 16:26:53 +01:00
txrx.h
usb.c ath10k: remove a copy of the NAPI_POLL_WEIGHT define 2022-05-02 17:00:11 +03:00
usb.h
wmi-ops.h
wmi-tlv.c ath10k: Fix ath10k_wmi_tlv_op_pull_peer_stats_info() unlock without lock 2021-04-22 16:59:56 +03:00
wmi-tlv.h
wmi.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2022-03-17 13:56:58 -07:00
wmi.h ath10k: wmi: remove array of flexible structures 2021-12-13 11:44:51 +02:00
wow.c ath10k: fix memory overwrite of the WoWLAN wakeup packet pattern 2022-01-11 16:30:14 +02:00
wow.h