From: Kalle Valo <kvalo@qca.qualcomm.com>
To: Michal Kazior <michal.kazior@tieto.com>
Cc: Ben Greear <greearb@candelatech.com>,
linux-wireless@vger.kernel.org, ath10k@lists.infradead.org,
sw@simonwunderlich.de
Subject: Re: [PATCH 1/2] ath10k: introduce a stricter scan state machine
Date: Tue, 29 Jul 2014 12:20:02 +0300 [thread overview]
Message-ID: <87egx4iksd.fsf@kamboji.qca.qualcomm.com> (raw)
In-Reply-To: <1405941081-17359-2-git-send-email-michal.kazior@tieto.com> (Michal Kazior's message of "Mon, 21 Jul 2014 13:11:20 +0200")
Michal Kazior <michal.kazior@tieto.com> writes:
> This aims at fixing some rare scan bugs related to
> firmware reporting unexpected scan event
> sequences.
>
> One such bug was if spectral scan phyerr reporting
> prevented firmware from properly propagating scan
> events to host. This leadsl to scan timeout. After
> that next scan would trigger scan completed event
> first (before scan started event) leading to
> ar->scan.in_progress and timeout timer states to
> be overwritten incorrectly and making the very
> next scan to hang forever.
>
> Reported-by: Janusz Dziedzic <janusz.dziedzic@tieto.com>
> Signed-off-by: Michal Kazior <michal.kazior@tieto.com>
> +enum ath10k_scan_state {
> + ATH10K_SCAN_IDLE,
> + ATH10K_SCAN_STARTING,
> + ATH10K_SCAN_RUNNING,
> + ATH10K_SCAN_RUNNING_AND_ABORTING,
> +};
Can't we just call the last state just as ATH10K_SCAN_ABORTING? I think
I understand why you added the word "running" there but IMHO that's not
needed.
> @@ -2323,8 +2348,6 @@ void ath10k_halt(struct ath10k *ar)
> ath10k_monitor_stop(ar);
> }
>
> - del_timer_sync(&ar->scan.timeout);
> - ath10k_reset_scan((unsigned long)ar);
> ath10k_peer_cleanup_all(ar);
> ath10k_core_stop(ar);
> ath10k_hif_power_down(ar);
Why you don't call ath10k_scan_reset() here? I would have assumed that
you do that.
--
Kalle Valo
_______________________________________________
ath10k mailing list
ath10k@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/ath10k
next prev parent reply other threads:[~2014-07-29 9:21 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-07-21 11:11 [PATCH 0/2] ath10k: scan fixes 2014-07-21 Michal Kazior
2014-07-21 11:11 ` [PATCH 1/2] ath10k: introduce a stricter scan state machine Michal Kazior
2014-07-29 9:20 ` Kalle Valo [this message]
2014-07-29 9:46 ` Michal Kazior
2014-07-29 9:51 ` Kalle Valo
2014-07-21 11:11 ` [PATCH 2/2] ath10k: simplify scan debug prints Michal Kazior
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87egx4iksd.fsf@kamboji.qca.qualcomm.com \
--to=kvalo@qca.qualcomm.com \
--cc=ath10k@lists.infradead.org \
--cc=greearb@candelatech.com \
--cc=linux-wireless@vger.kernel.org \
--cc=michal.kazior@tieto.com \
--cc=sw@simonwunderlich.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox