This is an automated email from the ASF dual-hosted git repository.

sjanc pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-nimble.git

commit 8bb4c360d1f63f05681afa5c396844c70c5780ab
Author: Szymon Czapracki <[email protected]>
AuthorDate: Wed Apr 8 13:09:25 2026 +0200

    nimble/bttester: Fix NRPA logic in bttester
    
    NRPA should only be allowed for non-connectable advertising.
    The previous condition was inverted and rejected the valid case.
    
    Reject NRPA only when advertising is connectable.
---
 apps/bttester/src/btp_gap.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/apps/bttester/src/btp_gap.c b/apps/bttester/src/btp_gap.c
index 1fdaed762..44e189a48 100644
--- a/apps/bttester/src/btp_gap.c
+++ b/apps/bttester/src/btp_gap.c
@@ -547,7 +547,7 @@ start_advertising(const void *cmd, uint16_t cmd_len,
         break;
     case 0x02:
         /* NRPA is used only for non-connectable advertising */
-        if (!(current_settings & BIT(BTP_GAP_SETTINGS_CONNECTABLE))) {
+        if ((current_settings & BIT(BTP_GAP_SETTINGS_CONNECTABLE))) {
             return BTP_STATUS_FAILED;
         }
         break;

Reply via email to