projects
/
platform
/
core
/
api
/
bluetooth.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c261007
)
Fix Svace Issue
95/298395/1
author
Anuj Kumar Singh
<anujk.singh@samsung.com>
Wed, 6 Sep 2023 10:08:53 +0000
(15:38 +0530)
committer
Anuj Kumar Singh
<anujk.singh@samsung.com>
Wed, 6 Sep 2023 10:08:53 +0000
(15:38 +0530)
This patch fix the below svace issue:
CID-546086
Change-Id: I7c6f14dcdd5a8471adcdb1d8cba3865f6ab45116
Signed-off-by: Anuj Kumar Singh <anujk.singh@samsung.com>
src/bluetooth-adapter.c
patch
|
blob
|
history
diff --git
a/src/bluetooth-adapter.c
b/src/bluetooth-adapter.c
index
dbb5d4a
..
2311bc2
100644
(file)
--- a/
src/bluetooth-adapter.c
+++ b/
src/bluetooth-adapter.c
@@
-1985,7
+1985,7
@@
int bt_adapter_le_set_advertising_primary_phy(bt_advertiser_h advertiser,
return BT_ERROR_PERMISSION_DENIED;
}
- if (primary_phy != BT_LE_1M_PHY
||
primary_phy != BT_LE_CODED_PHY)
+ if (primary_phy != BT_LE_1M_PHY
&&
primary_phy != BT_LE_CODED_PHY)
return BT_ERROR_INVALID_PARAMETER;
__adv->adv_params.primary_phy = primary_phy;