Search Linux Wireless

Re: [RFC 1/2] nl80211: specify RSSI threshold when scanning

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, 2012-06-06 at 19:43 -0700, Thomas Pedersen wrote:
> Support configuring an RSSI threshold in dBm (s32) when scanning,
> below which a BSS won't be reported by the cfg80211 driver.
> 
> Signed-off-by: Thomas Pedersen <c_tpeder@xxxxxxxxxxxxxxxx>
> ---
>  include/linux/nl80211.h |    6 ++++++
>  include/net/cfg80211.h  |    7 +++++++
>  net/wireless/nl80211.c  |   17 +++++++++++++++++
>  3 files changed, 30 insertions(+), 0 deletions(-)
> 
> diff --git a/include/linux/nl80211.h b/include/linux/nl80211.h
> index a6959f7..dc051a8 100644
> --- a/include/linux/nl80211.h
> +++ b/include/linux/nl80211.h
> @@ -1222,6 +1222,10 @@ enum nl80211_commands {
>   * @NL80211_ATTR_BG_SCAN_PERIOD: Background scan period in seconds
>   *      or 0 to disable background scan.
>   *
> + * @NL80211_ATTR_SCAN_RSSI: rssi threshold (in s32 dBm) below which a BSS is
> + *	not reported in scan results. Will be disabled if 0 or not specified.
> + *	Supported in %NL80211_CMD_START_SCHED_SCAN and %NL80211_TRIGGER_SCAN.
> + *
>   * @NL80211_ATTR_MAX: highest attribute number currently defined
>   * @__NL80211_ATTR_AFTER_LAST: internal use
>   */

BTW, I actually had discussed this feature with Victor internally some
time ago.  And, IIRC, I also talked about it briefly with Johannes.

My idea was that we could maybe make this more generic? There are lots
of different values that could be used as thresholds or filter options.
Couldn't we make this API generic as well? The first thing that comes to
my mind is the existing NL80211_ATTR_SCHED_SCAN_MATCH.  It is
essentially the same, we only want to report certain matches and filter
everything else out...

Does it make sense?

--
Luca.

--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Wireless Personal Area Network]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite Hiking]     [MIPS Linux]     [ARM Linux]     [Linux RAID]

  Powered by Linux