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)
commit0366f42640a4100198edcf03bf7625ee1c46f42b
tree46e7fdb6a2254656992c5a13fae676c3e87bdd39
parentb9269a078ae609f1315726f1ac4c7d3d8425384f
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