-
Notifications
You must be signed in to change notification settings - Fork 6.9k
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
Bluetooth: Mesh: Fixes after proxy advertising unable to send messages #79686
Merged
henrikbrixandersen
merged 1 commit into
zephyrproject-rtos:main
from
LingaoM:fix_mesh_adv_ext
Oct 16, 2024
Merged
Bluetooth: Mesh: Fixes after proxy advertising unable to send messages #79686
henrikbrixandersen
merged 1 commit into
zephyrproject-rtos:main
from
LingaoM:fix_mesh_adv_ext
Oct 16, 2024
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
zephyrbot
requested review from
akredalen,
alxelax,
Andrewpini,
HaavardRei,
jhedberg,
omkar3141 and
PavelVPV
October 11, 2024 03:51
LingaoM
force-pushed
the
fix_mesh_adv_ext
branch
from
October 11, 2024 04:33
27bc643
to
96cae34
Compare
LingaoM
added
the
Trivial
Changes that can be reviewed by anyone, i.e. doc changes, minor build system tweaks, etc.
label
Oct 11, 2024
LingaoM
force-pushed
the
fix_mesh_adv_ext
branch
from
October 11, 2024 06:15
96cae34
to
f6f4799
Compare
PavelVPV
removed
the
Trivial
Changes that can be reviewed by anyone, i.e. doc changes, minor build system tweaks, etc.
label
Oct 11, 2024
PavelVPV
requested changes
Oct 11, 2024
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please move the relay related change to a different PR, it is confusing as PR description says different thing. Also a bit difficult to review as gatt adv is an issue and relay change is an improvement
LingaoM
force-pushed
the
fix_mesh_adv_ext
branch
from
October 11, 2024 07:35
f6f4799
to
817fd4a
Compare
LingaoM
force-pushed
the
fix_mesh_adv_ext
branch
from
October 12, 2024 02:22
817fd4a
to
67ff0fc
Compare
PavelVPV
reviewed
Oct 14, 2024
LingaoM
force-pushed
the
fix_mesh_adv_ext
branch
from
October 15, 2024 01:32
67ff0fc
to
f6b29cb
Compare
When Proxy advertising or PB-GATT Advertising Enabled and use a same advertising sets. As adv\_start will call multi HCI Command will cause syswork_q yield. At same time, if another thread(BT RX) all schedule\_send will cause unable send mesh message, because ADV\_FLAG\_ACTIVE was be set, but ADV\_FLAG\_PROXY not set currentlly. Add ADV\_FLAG\_SCHEDULE\_PENDING indicate mesh buf has been pendings but not scheduled, so when proxy advertising enable, let's take again, as we can't break or terminated adv\_start, so we must waiting proxy advertising enabled. But after zephyrproject-rtos#68558 The `k_work_is_pending` always true in `send_pending_adv`, which cause unable to send more mesh message until more mesh message comming Signed-off-by: Lingao Meng <[email protected]>
LingaoM
force-pushed
the
fix_mesh_adv_ext
branch
from
October 15, 2024 03:43
f6b29cb
to
612229e
Compare
PavelVPV
approved these changes
Oct 15, 2024
alxelax
approved these changes
Oct 16, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
When Proxy advertising or PB-GATT Advertising Enabled and use a same advertising sets.
As adv_start will call multi HCI Command will cause syswork_q yield. At same time, if another thread(BT RX) all schedule_send will cause unable send mesh message, because ADV_FLAG_ACTIVE was be set, but ADV_FLAG_PROXY not set currentlly.
Add ADV_FLAG_SCHEDULE_PENDING indicate mesh buf has been pendings but not scheduled, so when proxy advertising enable, let's take again, as we can't break or terminated adv_start, so we must waiting proxy advertising enabled.
But after #68558
The
k_work_is_pending
always true insend_pending_adv
, which cause unable to send more mesh message until more mesh message comming