diff options
author | Johan Hovold <johan+linaro@kernel.org> | 2022-04-18 16:30:07 +0200 |
---|---|---|
committer | Johan Hovold <johan+linaro@kernel.org> | 2023-02-02 10:00:23 +0100 |
commit | aecd11b2fcaca847ad8c3ddf80bdbf141eb847f4 (patch) | |
tree | 6188e4a946cd36a82ac2c2aeeda0e33e4edd8e22 | |
parent | 04a993a32d391066a969e624d7c3928a2a71fcc9 (diff) |
hack: ath11k: override qmi board id
Force the ath11k driver to load a board file for a different machine
that is already in linux-firmware.
For proper WiFi support we need a board file from the vendor for the
actual hardware in question.
WARNING: This should only be used for basic internal testing. Use at
your own risk.
Not-signed-off-by: Johan Hovold <johan+linaro@kernel.org>
-rw-r--r-- | drivers/net/wireless/ath/ath11k/qmi.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath/ath11k/qmi.c b/drivers/net/wireless/ath/ath11k/qmi.c index ab923e24b0a9c..b8b72c9bc60b2 100644 --- a/drivers/net/wireless/ath/ath11k/qmi.c +++ b/drivers/net/wireless/ath/ath11k/qmi.c @@ -2229,10 +2229,16 @@ static int ath11k_qmi_request_target_cap(struct ath11k_base *ab) ab->qmi.target.chip_family = resp.chip_info.chip_family; } +#if 0 if (resp.board_info_valid) ab->qmi.target.board_id = resp.board_info.board_id; else ab->qmi.target.board_id = 0xFF; +#else + ath11k_warn(ab, "WARNING: overriding board_id (%02x) -- only intended for basic internal testing\n", + resp.board_info.board_id); + ab->qmi.target.board_id = 0xFF; +#endif if (resp.soc_info_valid) ab->qmi.target.soc_id = resp.soc_info.soc_id; |