From: Johannes Berg <johannes@sipsolutions.net>
To: Enric Balletbo i Serra <enric.balletbo@collabora.com>,
"David S . Miller" <davem@davemloft.net>,
linux-wireless@vger.kernel.org
Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org,
Dmitry Shmidt <dimitrysh@google.com>,
helmut.schaa@googlemail.com
Subject: Re: [PATCH] cfg80211: Be able to set bss expire time at config stage.
Date: Mon, 22 May 2017 18:19:14 +0200 [thread overview]
Message-ID: <1495469954.26008.1.camel@sipsolutions.net> (raw)
In-Reply-To: <20170522160946.2057-1-enric.balletbo@collabora.com>
On Mon, 2017-05-22 at 18:09 +0200, Enric Balletbo i Serra wrote:
> The IEEE80211_SCAN_RESULT_EXPIRE value was modified several times in
> the
> past. Initially was set at 10 seconds (2a51931192), then increased at
> 15
> seconds (09f97e0fc4) and finally to 30 seconds (f9616e0f88) to cover
> the
> use case when a station is having heavy uplink traffic. On some
> devices,
> like Chromebooks, this value is decreased to 7 seconds to avoid stall
> results, and other devices prefer set to 15 seconds.
>
> This simple patch tries to make the selection of this value a bit
> more
> flexible by being able to set the expire time at config stage. Most
> users
> can leave the default value set as 30 seconds, others can modify the
> value
> at config stage if they want lower or bigger values.
I'm not really all that convinced that we really need this - userspace
should just be using the flush thing more often, and then it doesn't
really matter.
However, maybe that doesn't really matter all that much.
But,
> +config CFG80211_SCAN_RESULT_EXPIRE
> + int "Scan completion time" if CFG80211
That should have "if CFG80211 && EXPERT" or something like that - no
need to prompt everyone for it.
> + rdev->scan_result_expire =
> CONFIG_CFG80211_SCAN_RESULT_EXPIRE;
This is completely pointless - no need to go through runtime like that.
> -#define IEEE80211_SCAN_RESULT_EXPIRE (30 * HZ)
You can just use CONFIG_CFG80211_SCAN_RESULT_EXPIRE * HZ here.
> + __cfg80211_bss_expire(rdev, jiffies - rdev-
> >scan_result_expire);
You also completely messed this up because it now depends on HZ.
johannes
next prev parent reply other threads:[~2017-05-22 16:19 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-05-22 16:09 [PATCH] cfg80211: Be able to set bss expire time at config stage Enric Balletbo i Serra
2017-05-22 16:19 ` Johannes Berg [this message]
2017-05-22 16:34 ` Johannes Berg
2017-05-22 16:21 ` Dan Williams
2017-05-22 16:24 ` Johannes Berg
2017-05-22 16:59 ` Enric Balletbo i Serra
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=1495469954.26008.1.camel@sipsolutions.net \
--to=johannes@sipsolutions.net \
--cc=davem@davemloft.net \
--cc=dimitrysh@google.com \
--cc=enric.balletbo@collabora.com \
--cc=helmut.schaa@googlemail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-wireless@vger.kernel.org \
--cc=netdev@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).