Skip to content

Conversation

@LingaoM
Copy link
Contributor

@LingaoM LingaoM commented Dec 7, 2020

POLL_TIMEOUT_MAX should use CONFIG_BT_MESH_LPN_POLL_TIMEOUT
instead of CONFIG_BT_MESH_LPN_INIT_POLL_TIMEOUT. The described
algorithm to grow the poll timeout implemented in function
poll_timeout does not work with this implementation.

It's a regression in 3b4d58a
Bluetooth: Mesh: optimize performance for lpn node

Fixes: #30338

Signed-off-by: Lingao Meng menglingao@xiaomi.com

Copy link
Contributor

@trond-snekvik trond-snekvik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you please describe the problem this commit is solving in the commit message?

@LingaoM LingaoM requested a review from trond-snekvik December 7, 2020 09:53
@jhedberg
Copy link
Member

jhedberg commented Dec 7, 2020

Is this a regression or has it always been broken? If it's a regression it would be good to reference the commit that broke it in the commit message.

@joerchan
Copy link
Contributor

joerchan commented Dec 8, 2020

According to the linked bug report this is a regression since: 3b4d58a

`POLL_TIMEOUT_MAX` should use `CONFIG_BT_MESH_LPN_POLL_TIMEOUT`
instead of `CONFIG_BT_MESH_LPN_INIT_POLL_TIMEOUT`. The described
algorithm to grow the poll timeout implemented in function
poll_timeout does not work with this implementation.

It's a regression in 3b4d58a
Bluetooth: Mesh: optimize performance for lpn node

Fixes: #30338

Signed-off-by: Lingao Meng <menglingao@xiaomi.com>
@jhedberg jhedberg merged commit aea9adf into zephyrproject-rtos:master Dec 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

BT Mesh LPN max. poll timeout calculated incorrectly

4 participants