Peer creation in firmware fails, if last peer deletion
is still in progress.
Hence, add wait for the event after deleting every peer
from host driver to synchronize with firmware.
Currently 6G specific tlvs have duplicate entries which is causing
scan failures. Fix this by removing the duplicate entries of the same
tlv. This also fixes out-of-bound memory writes caused due to
adding tlvs when num_hint_bssid and num_hint_s_ssid are ZEROs.
This change is to put QCA6390 to wow state instead of suspend state
when system suspend happens. It also disables CE irq and DP irq, and
then put MHI to suspend state.
When system resumes, driver resumes MHI firstly, then enables CE irq
and dp IRQ, and sends wow wakeup command to firmware.
Signed-off-by: Carl Huang <email address hidden>
Signed-off-by: Kalle Valo <email address hidden>
(cherry picked from commit 0c214f7ebce5eadb589554611bb927517c7aa7ea https://git.kernel.org/pub/scm/linux/kernel/git/kvalo/ath.git)
Signed-off-by: You-Sheng Yang <email address hidden>
This change adds ce irq enable and disable hif layer functions, so
core module can enable ce irqs and disable ce irqs without cleaning
pipe and refilling pipe.
Signed-off-by: Carl Huang <email address hidden>
Signed-off-by: Kalle Valo <email address hidden>
(cherry picked from commit 9297794a5d5af5e82b9554677f959add281a5b76 https://git.kernel.org/pub/scm/linux/kernel/git/kvalo/ath.git)
Signed-off-by: You-Sheng Yang <email address hidden>
Signed-off-by: Carl Huang <email address hidden>
Signed-off-by: Kalle Valo <email address hidden>
(cherry picked from commit cfca935c92d8f2b31c95e7fd074645245f54492a https://git.kernel.org/pub/scm/linux/kernel/git/kvalo/ath.git)
Signed-off-by: You-Sheng Yang <email address hidden>
This change is required because firmware will check all the pipes
before entering WoW. If ATH11K_HTC_FLAG_NEED_CREDIT_UPDATE is set,
firmware treats this pipe needed to return credit even though it's
actually not required. If any pipe needs to return credit, the
suspend_complete message doesn't send to host but is dropped.
So host gets time out and WoW suspend failed.
Signed-off-by: Carl Huang <email address hidden>
Signed-off-by: Kalle Valo <email address hidden>
(cherry picked from commit 6e0fba395a054cd58d87b3749f1f4ff2f3fef92e https://git.kernel.org/pub/scm/linux/kernel/git/kvalo/ath.git)
Signed-off-by: You-Sheng Yang <email address hidden>
This change is to purge rx pktlog when entering suspend and reap
the mon_status buffer to keep it empty. When leaving suspend, host
restarts the reap timer.
Host also stops CE timer and shadow timer before suspend.
Signed-off-by: Carl Huang <email address hidden>
Signed-off-by: Kalle Valo <email address hidden>
(cherry picked from commit 6f481de563dd108bd3df616c80e60f308b7a48e3 https://git.kernel.org/pub/scm/linux/kernel/git/kvalo/ath.git)
Signed-off-by: You-Sheng Yang <email address hidden>