Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit dbecc9ff authored by Sonny Sasaka's avatar Sonny Sasaka Committed by Automerger Merge Worker
Browse files

Merge changes I472e1b36,Iad9aa2c5 am: 0b2d961e

parents 3daf3ab0 0b2d961e
Loading
Loading
Loading
Loading
+2 −10
Original line number Diff line number Diff line
@@ -10,9 +10,7 @@ use crate::{console_red, console_yellow, print_error, print_info};
use bt_topshim::btif::{BtConnectionState, BtStatus, BtTransport};
use bt_topshim::profiles::gatt::LePhy;
use btstack::bluetooth::{BluetoothDevice, IBluetooth, IBluetoothQA};
use btstack::bluetooth_gatt::{
    IBluetoothGatt, ScanFilter, ScanFilterCondition, ScanSettings, ScanType,
};
use btstack::bluetooth_gatt::{IBluetoothGatt, ScanSettings, ScanType};
use btstack::socket_manager::{IBluetoothSocketManager, SocketResult};
use btstack::uuid::{Profile, UuidHelper, UuidWrapper};
use manager_service::iface_bluetooth_manager::IBluetoothManager;
@@ -977,13 +975,7 @@ impl CommandHandler {
                        id,
                        // TODO(b/217274432): Construct real settings and filters.
                        ScanSettings { interval: 0, window: 0, scan_type: ScanType::Active },
                        ScanFilter {
                            condition: ScanFilterCondition::Patterns(vec![]),
                            rssi_low_threshold: 0,
                            rssi_low_timeout: 0,
                            rssi_high_threshold: 0,
                            rssi_sampling_period: 0,
                        },
                        None,
                    );
                    self.context.lock().unwrap().active_scanner_ids.insert(id);
                } else {
+5 −5
Original line number Diff line number Diff line
@@ -231,10 +231,10 @@ impl DBusArg for ScanFilterCondition {

#[dbus_propmap(ScanFilter)]
struct ScanFilterDBus {
    rssi_high_threshold: i16,
    rssi_low_threshold: i16,
    rssi_low_timeout: u16,
    rssi_sampling_period: u16,
    rssi_high_threshold: u8,
    rssi_low_threshold: u8,
    rssi_low_timeout: u8,
    rssi_sampling_period: u8,
    condition: ScanFilterCondition,
}

@@ -996,7 +996,7 @@ impl IBluetoothGatt for BluetoothGattDBus {
        &mut self,
        _scanner_id: u8,
        _settings: ScanSettings,
        _filter: ScanFilter,
        _filter: Option<ScanFilter>,
    ) -> BtStatus {
        dbus_generated!()
    }
+5 −5
Original line number Diff line number Diff line
@@ -322,10 +322,10 @@ impl DBusArg for ScanFilterCondition {

#[dbus_propmap(ScanFilter)]
struct ScanFilterDBus {
    rssi_high_threshold: i16,
    rssi_low_threshold: i16,
    rssi_low_timeout: u16,
    rssi_sampling_period: u16,
    rssi_high_threshold: u8,
    rssi_low_threshold: u8,
    rssi_low_timeout: u8,
    rssi_sampling_period: u8,
    condition: ScanFilterCondition,
}

@@ -478,7 +478,7 @@ impl IBluetoothGatt for IBluetoothGattDBus {
        &mut self,
        scanner_id: u8,
        settings: ScanSettings,
        filter: ScanFilter,
        filter: Option<ScanFilter>,
    ) -> BtStatus {
        dbus_generated!()
    }
+122 −67

File changed.

Preview size limit exceeded, changes collapsed.