Skip to content

Bluetooth: Mesh: Increase advertising thread stack size #14680

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 26, 2019

Conversation

erwango
Copy link
Member

@erwango erwango commented Mar 19, 2019

With BT_HOST_CRYPTO, advertising stack size could be overflowed,
increase size to 1024 when BT_HOST_CRYPTO is enabled.

Signed-off-by: Erwan Gouriou [email protected]

@@ -45,7 +45,11 @@
#define ADV_INT_DEFAULT_MS 100
#define ADV_INT_FAST_MS 20

#ifdef CONFIG_BT_HOST_CRYPTO
Copy link
Member

Choose a reason for hiding this comment

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

minor thing: we've tried to be consistent with #if defined(CONFIG_...) in the Bluetooth code, could you please do that? (benefit is that you can combine multiple defined(...) conditions for a single #if but not with #ifdef)

@jhedberg jhedberg added this to the v1.14.0 milestone Mar 19, 2019
With BT_HOST_CRYPTO, advertising stack size could be overflowed,
increase size to 1024 when BT_HOST_CRYPTO is enabled.

Signed-off-by: Erwan Gouriou <[email protected]>
@erwango erwango force-pushed the mesh_fix_adv_stack branch from 7279c6a to e83b3a3 Compare March 19, 2019 15:23
@codecov-io
Copy link

Codecov Report

Merging #14680 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master   #14680   +/-   ##
=======================================
  Coverage   51.97%   51.97%           
=======================================
  Files         309      309           
  Lines       45584    45584           
  Branches    10555    10555           
=======================================
  Hits        23694    23694           
  Misses      17082    17082           
  Partials     4808     4808

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 2320973...e83b3a3. Read the comment docs.

@jhedberg jhedberg added the bug The issue is a bug, or the PR is fixing a bug label Mar 19, 2019
@jhedberg
Copy link
Member

@sjanc @Vudentz @carlescufi could we get a second review on this? A month ago or so it was discovered that the stack requirement for advertising had grown, see commit 1cfa122, however turns out we still need the conditionally higher size for BT_HOST_CRYPTO.

Copy link
Member

@carlescufi carlescufi left a comment

Choose a reason for hiding this comment

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

No objections

@nashif nashif merged commit 7d81a09 into zephyrproject-rtos:master Mar 26, 2019
@erwango erwango deleted the mesh_fix_adv_stack branch September 3, 2019 12:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: Bluetooth bug The issue is a bug, or the PR is fixing a bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants