]> git.baikalelectronics.ru Git - kernel.git/commit
ath11k: Move mac80211 hw allocation before wmi_init command
authorVasanthakumar Thiagarajan <vthiagar@codeaurora.org>
Thu, 28 Nov 2019 08:21:57 +0000 (08:21 +0000)
committerKalle Valo <kvalo@codeaurora.org>
Fri, 29 Nov 2019 07:50:38 +0000 (09:50 +0200)
commit6beb6758c5664616d65aaa51766cac961d5d9a98
tree46e7fdb6a2254656992c5a13fae676c3e87bdd39
parente9a81e7bbe435889c10ada07639d2ac96546f164
ath11k: Move mac80211 hw allocation before wmi_init command

This is to prepare REO ring setup before sending wmi_init command.
Firmware expects all the required REO rings to be setup while processing
wmi_init command. But as per the current initialization sequence, REO ring
configurations are done only after wmi_init command is sent.
Also refactoring ath11k_mac_create() into ath11k_mac_alloc() and
ath11k_mac_register() to it mac80211 hw structure available before sending
wmi_init command.

Signed-off-by: Vasanthakumar Thiagarajan <vthiagar@codeaurora.org>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/ath/ath11k/core.c
drivers/net/wireless/ath/ath11k/mac.c
drivers/net/wireless/ath/ath11k/mac.h