From: Anuj Kumar Singh Date: Wed, 6 Sep 2023 10:08:53 +0000 (+0530) Subject: Fix Svace Issue X-Git-Tag: accepted/tizen/unified/20230911.091135~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=beb2f25578bb1bbfc67460b90026e8e23b4674e7;p=platform%2Fcore%2Fapi%2Fbluetooth.git Fix Svace Issue This patch fix the below svace issue: CID-546086 Change-Id: I7c6f14dcdd5a8471adcdb1d8cba3865f6ab45116 Signed-off-by: Anuj Kumar Singh --- diff --git a/src/bluetooth-adapter.c b/src/bluetooth-adapter.c index dbb5d4a..2311bc2 100644 --- 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;