Commit Graph

8 Commits

Author SHA1 Message Date
Szymon Janc
8d7bf14da2 neard: Use ENONET error when adapter is not enabled
This results in returning error 'Disabled' instead of 'No such Device'.
Will allow neard to properly set power state of Bluetooth carrier.
2012-11-20 12:22:17 +02:00
Frédéric Danis
0476408b07 neard: Set device name in cache
If device existed previously, it has been removed before calling of
btd_event_remote_name(), so this just update storage cache and name
property change of device object is not emitted.
2012-11-13 13:31:19 +02:00
Frédéric Danis
a10a9f54ab adapter: Read mode in storage at init
Mgmt interface allows to change connectable and discoverable adapter
status even if the adapter is off. So both status are changed during
adapter init.
Remove on_mode from btd_adapter_get_mode(), as it is no more used.
Update src/mgmt.c and plugins/neard.c
2012-10-25 12:35:20 +03:00
Szymon Janc
0336136efd mgmt: Constify use of bdaddr_t pointer parameters
Mark all input only bdaddr_t pointer parameters as const.
2012-10-05 11:28:26 +03:00
Szymon Janc
899e6561d2 adapter: Convert adapter_get_address into simple getter
Most uses of adapter_get_address were in form of:

bdaddr_t addr;
adapter_get_address(adapter, &addr);
foo(&addr);

Changing it to getter makes code simpler and avoid number of not
needed memcpy.
2012-10-05 11:20:18 +03:00
Szymon Janc
4f80f8dca2 neard: Implement RequestOOB function
This function is used by neard to request data to be transmitted over
OOB channel. It also allows neard to provide data to be used in OOB
pairing without initializing pairing it self.
2012-10-03 22:47:08 +03:00
Szymon Janc
9e09abe54f neard: Implement PushOOB function
This implements PushOOB function which allows neard to pass data used
for discovery and pairing. Only EIR data type is supported.
2012-10-03 22:46:56 +03:00
Szymon Janc
fd1e9c5852 Add initial neard plugin implementation
Initial implementation. Only register and unregister support.
2012-10-03 22:44:51 +03:00