Skip to content

Conversation

@martintv
Copy link
Contributor

@martintv martintv commented Oct 21, 2021

This comment i mostly for myself in case I need to do this again to fix something:
Commands used when cherry-picking:
git cherry-pick -s -x 4f80fe8
git cherry-pick -s -x 2a2523c
git cherry-pick -s -x c85640e
git cherry-pick -s -x cca76f1
git cherry-pick -s -x a9db9a3

Also, link to PR bringing this into NCS nrfconnect/sdk-nrf#5898

@martintv martintv closed this Oct 21, 2021
@martintv martintv reopened this Oct 21, 2021
@martintv martintv force-pushed the cherry_picking_adv_timeout_from_upstream branch 10 times, most recently from d369754 to 4568136 Compare October 22, 2021 08:19
@martintv martintv changed the title WIP cherry-picking adv-timeout from upstream [nrf fromtree] cherry-picking adv-timeout from upstream Oct 22, 2021
@thomasstenersen thomasstenersen added this to the ncs-1.7.1 milestone Oct 25, 2021
Copy link
Contributor

@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.

  1. This is not a cherry-pick. A git cherry-pick preserves the commit intact
  2. The second commit is not fromtree is it? Where does it come from?

@martintv martintv force-pushed the cherry_picking_adv_timeout_from_upstream branch 2 times, most recently from d495a32 to b9c6d47 Compare October 25, 2021 09:26
Copy link
Contributor

@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.

Please do not split commit titles into multiple lines.

@martintv martintv force-pushed the cherry_picking_adv_timeout_from_upstream branch from b9c6d47 to 77dfab1 Compare October 25, 2021 11:17
KKopyscinski and others added 5 commits October 26, 2021 11:34
In limited advertising advertising should end after certain timeout.
Previously, limited advertising was just general advertising with
BT_LE_AD_LIMITED flag set. Now, if this flag is set the work is
scheduled, that will disable advertising after timeout.

This affects tests GAP/DISC/LIMM/BV-03-C and GAP/DISC/LIMM/BV-04-C

Signed-off-by: Krzysztof Kopyściński <[email protected]>
(cherry picked from commit 4f80fe8)
Signed-off-by: Martin Tverdal <[email protected]>
…vertiser

Fix bug in adv timeout for limited advertiser when extended advertising
features has been enabled. The advertiser was only stopped when
configured as an extended advertiser. It should be stopped when
configured as a legacy advertiser also.

Signed-off-by: Joakim Andersson <[email protected]>
(cherry picked from commit 2a2523c)
Signed-off-by: Martin Tverdal <[email protected]>
Fixes wrong ASSERT usage cause abnormal failed.

Signed-off-by: Lingao Meng <[email protected]>
(cherry picked from commit c85640e)
Signed-off-by: Martin Tverdal <[email protected]>
Call bt_le_adv_stop() if adv == bt_dev.adv (Meaning it is the legacy
advertiser and was started with bt_le_adv_start()), otherwise use
bt_le_ext_adv_stop(), because it was started with bt_le_ext_adv_start().

Failing to stop advertising shouldn't result in assert.

Signed-off-by: Michał Narajowski <[email protected]>
(cherry picked from commit cca76f1)
Signed-off-by: Martin Tverdal <[email protected]>
…tising stopped

Advertising might stop when:
- it was stopped by application
- device connected to a peer
- extended advertising reached stop condition
  defined in BT_LE_EXT_ADV_START_PARAM - this is handled in ll

Signed-off-by: Michał Narajowski <[email protected]>
(cherry picked from commit a9db9a3)
Signed-off-by: Martin Tverdal <[email protected]>
@martintv martintv force-pushed the cherry_picking_adv_timeout_from_upstream branch from 77dfab1 to 79903fc Compare October 26, 2021 09:35
@carlescufi carlescufi merged commit 18e072b into nrfconnect:v2.6.99-ncs1-branch Oct 26, 2021
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.

6 participants