wifi: wcn36xx: Move firmware feature bit storage to dedicated firmware.c file
authorBryan O'Donoghue <bryan.odonoghue@linaro.org>
Wed, 27 Jul 2022 16:16:53 +0000 (17:16 +0100)
committerKalle Valo <quic_kvalo@quicinc.com>
Fri, 29 Jul 2022 13:24:38 +0000 (16:24 +0300)
commitd4e82fe6bf8651b0c1cde904f2a33c4178ebdadf
tree819346019ea3e60f79a953570b15331e65d4585d
parent510547b0bee9ea30eb5a9a7a750dd4d13f8176d6
wifi: wcn36xx: Move firmware feature bit storage to dedicated firmware.c file

The naming of the get/set/clear firmware feature capability bits doesn't
really follow the established namespace pattern of
wcn36xx_logicalblock_do_something();

The feature bits are accessed by smd.c and main.c. It would be nice to
display the found feature bits in debugfs. To do so though we should tidy
up the namespace a bit.

Move the firmware feature exchange API to its own file - firmware.c giving
us the opportunity to functionally decompose other firmware related
accessors as appropriate in future.

Reviewed-by: Loic Poulain <loic.poulain@linaro.org>
Signed-off-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org>
Signed-off-by: Kalle Valo <quic_kvalo@quicinc.com>
Link: https://lore.kernel.org/r/20220727161655.2286867-3-bryan.odonoghue@linaro.org
drivers/net/wireless/ath/wcn36xx/Makefile
drivers/net/wireless/ath/wcn36xx/firmware.c [new file with mode: 0644]
drivers/net/wireless/ath/wcn36xx/firmware.h [new file with mode: 0644]
drivers/net/wireless/ath/wcn36xx/hal.h
drivers/net/wireless/ath/wcn36xx/main.c
drivers/net/wireless/ath/wcn36xx/smd.c
drivers/net/wireless/ath/wcn36xx/smd.h