BT 5.0: Implement Is feature support API's
[platform/core/connectivity/bluetooth-frwk.git] / bt-service-adaptation / services / bt-request-handler.c
index fad5f48..c47990c 100644 (file)
@@ -2756,6 +2756,20 @@ int __bt_bluez_request(int function_name,
                                sizeof(gboolean));
                break;
        }
+       case BT_IS_LE_2M_PHY_SUPPORTED: {
+               gboolean is_2m_phy_supported = FALSE;
+
+               is_2m_phy_supported = _bt_is_le_2m_phy_supported();
+               g_array_append_vals(*out_param1, &is_2m_phy_supported, sizeof(gboolean));
+               break;
+       }
+       case BT_IS_LE_CODED_PHY_SUPPORTED: {
+               gboolean is_coded_phy_supported = FALSE;
+
+               is_coded_phy_supported = _bt_is_le_coded_phy_supported();
+               g_array_append_vals(*out_param1, &is_coded_phy_supported, sizeof(gboolean));
+               break;
+       }
        default:
                BT_INFO("UnSupported function [%d]", function_name);
                result = BLUETOOTH_ERROR_NOT_SUPPORT;
@@ -3706,6 +3720,8 @@ gboolean __bt_service_check_privilege(int function_name,
        case BT_GET_ADVERTISING_DATA:
        case BT_GET_SCAN_RESPONSE_DATA:
        case BT_IS_ADVERTISING:
+       case BT_IS_LE_2M_PHY_SUPPORTED:
+       case BT_IS_LE_CODED_PHY_SUPPORTED:
        case BT_REGISTER_SCAN_FILTER:
        case BT_UNREGISTER_SCAN_FILTER:
        case BT_UNREGISTER_ALL_SCAN_FILTERS: