From f59a6d4a4e651bbd65f32eb16601f33a59927564 Mon Sep 17 00:00:00 2001 From: Manish Mandlik Date: Sat, 20 Nov 2021 07:29:41 -0800 Subject: [PATCH] core: Update default advmon Sampling_Period to 0xFF Update default Advertisemet Monitor Sampling_Period to 0xFF. It indicates that controller will report only one advertisement per monitoring period for a device. This will help reduce the power consumption drastically. Reviewed-by: Miao-chen Chou --- src/main.c | 2 +- src/main.conf | 8 ++++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/src/main.c b/src/main.c index dd954e1ab..3adcdc108 100644 --- a/src/main.c +++ b/src/main.c @@ -948,7 +948,7 @@ static void init_defaults(void) btd_opts.avdtp.session_mode = BT_IO_MODE_BASIC; btd_opts.avdtp.stream_mode = BT_IO_MODE_BASIC; - btd_opts.advmon.rssi_sampling_period = 0; + btd_opts.advmon.rssi_sampling_period = 0xFF; } static void log_handler(const gchar *log_domain, GLogLevelFlags log_level, diff --git a/src/main.conf b/src/main.conf index c82d7e648..0c41d7742 100644 --- a/src/main.conf +++ b/src/main.conf @@ -281,5 +281,9 @@ [AdvMon] # Default RSSI Sampling Period. This is used when a client registers an # advertisement monitor and leaves the RSSISamplingPeriod unset. -# Default: 0 -#RSSISamplingPeriod=0 +# Possible values: +# 0x00 Report all advertisements +# N = 0xXX Report advertisements every N x 100 msec (range: 0x01 to 0xFE) +# 0xFF Report only one advertisement per device during monitoring period +# Default: 0xFF +#RSSISamplingPeriod=0xFF -- 2.47.3