From: Kalle Valo <kvalo@qca.qualcomm.com>
To: Jonas Gorski <jogo@openwrt.org>
Cc: <ath10k@lists.infradead.org>,
"linux-wireless@vger.kernel.org" <linux-wireless@vger.kernel.org>
Subject: Re: [PATCH] ath10k: enable firmware STA quick kickout
Date: Fri, 17 Jan 2014 11:23:22 +0200 [thread overview]
Message-ID: <871u07rmgl.fsf@kamboji.qca.qualcomm.com> (raw)
In-Reply-To: <CAOiHx=n77=CiFYfB3Y=jxOjVtmr06zvFhUe5R96Kq0HUgSLv5Q@mail.gmail.com> (Jonas Gorski's message of "Fri, 17 Jan 2014 10:01:06 +0100")
Jonas Gorski <jogo@openwrt.org> writes:
> On Thu, Jan 16, 2014 at 1:33 PM, Kalle Valo <kvalo@qca.qualcomm.com> wrote:
>> Firmware has a feature to track if the associated STA is not acking the frames.
>> When that happens, the firmware sends WMI_PEER_STA_KICKOUT_EVENTID event to the
>> host. Enable that to faster detect when a STA has left BSS without sending a
>> deauth frame.
>>
>> Also set huge keepalive timeouts to avoid using the keepalive functionality in
>> the firmware.
>>
>> Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
[...]
>> + param = ar->wmi.pdev_param->sta_kickout_th;
>> + ret = ath10k_wmi_pdev_set_param(ar, param,
>> + ATH10K_KICKOUT_THRESHOLD);
>> + if (ret) {
>> + ath10k_warn("Failed to enable sta kickout: %d\n", ret);
>> + return ret;
>> + }
>> +
>> + param = ar->wmi.vdev_param->ap_keepalive_min_idle_inactive_time_secs;
>> + ret = ath10k_wmi_vdev_set_param(ar, arvif->vdev_id, param,
>> + ATH10K_KEEPALIVE_MIN_IDLE);
>> + if (ret) {
>> + ath10k_warn("Failed to enable sta kickout: %d\n", ret);
>> + return ret;
>> + }
>> +
>> + param = ar->wmi.vdev_param->ap_keepalive_max_idle_inactive_time_secs;
>> + ret = ath10k_wmi_vdev_set_param(ar, arvif->vdev_id, param,
>> + ATH10K_KEEPALIVE_MAX_IDLE);
>> + if (ret) {
>> + ath10k_warn("Failed to enable sta kickout: %d\n", ret);
>> + return ret;
>> + }
>> +
>> + param = ar->wmi.vdev_param->ap_keepalive_max_unresponsive_time_secs;
>> + ret = ath10k_wmi_vdev_set_param(ar, arvif->vdev_id, param,
>> + ATH10K_KEEPALIVE_MAX_UNRESPONSIVE);
>> + if (ret) {
>> + ath10k_warn("Failed to enable sta kickout: %d\n", ret);
>> + return ret;
>> + }
>
> Did you intend to have differing warnings here? Currently it will be
> hard to tell which of these calls have failed based on the warning
> (assuming ath10k_warn does not print the source code line it was
> invoked from).
You are right, all warning/error messages in ath10k should be unique so
that the location can be easily found. I was actually supposed to fix
this before I send it for review, but apparently I forgot. I'll send v2.
Thanks!
--
Kalle Valo
prev parent reply other threads:[~2014-01-17 9:23 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-01-16 12:33 [PATCH] ath10k: enable firmware STA quick kickout Kalle Valo
2014-01-16 12:44 ` Yeoh Chun-Yeow
2014-01-16 12:50 ` Kalle Valo
2014-01-16 13:39 ` Yeoh Chun-Yeow
2014-01-17 9:01 ` Jonas Gorski
2014-01-17 9:23 ` Kalle Valo [this message]
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=871u07rmgl.fsf@kamboji.qca.qualcomm.com \
--to=kvalo@qca.qualcomm.com \
--cc=ath10k@lists.infradead.org \
--cc=jogo@openwrt.org \
--cc=linux-wireless@vger.kernel.org \
/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;
as well as URLs for NNTP newsgroup(s).