[PATCH] wifi: ath10k: Default to board.bin for legacy board data file

Kalle Valo kvalo at kernel.org
Mon Dec 4 04:16:24 PST 2023

Dmitry Baryshkov <dmitry.baryshkov at linaro.org> writes:

> On Sat, 26 Aug 2023 at 08:44, Kalle Valo <kvalo at kernel.org> wrote:
>> Dmitry Baryshkov <dmitry.baryshkov at linaro.org> writes:
>> > Default to 'board.bin' for the legacy board data file, in case the
>> > hw_params array doesn't list hw-specific board data file name (e.g. for
>> > WCN3990).
>> >
>> > Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov at linaro.org>
>> Could you provide more background _why_ this is needed. What are you
>> trying to fix?
> Sure. For wcn3990 we do not have the
> `ath10k_hw_params_list[].fw.board' set. So if the board data is not
> present in `board-2.bin', the driver will skip looking into
> `board.bin' and will error out.
> I had two options: either to set the `.fw.board' in
> `ath10k_hw_params_list', or to provide this default. Granted that the
> check for `fw.board' also prevents the `board-%s-%s.bin' lookup, I
> opted for the second option.

Ah, now I understand.

> Maybe I should just set the .fw.board to "board.bin" and
> .fw.board_size to 26328 (?)

Yeah, I think that would be much better to set those fields for WCN3990.
Please also include to the commit message the description you wrote

I can't remember anymore why even have this struct
ath10k_hw_params_fw::board field in the first, most likely due to some
legacy reasons before we had board-2.bin. I suspect all the fields even
contain the same "board.bin" string so in theory the field is not really



More information about the ath10k mailing list