summaryrefslogtreecommitdiffstats
path: root/src/adapter.c
Commit message (Collapse)AuthorAgeFilesLines
* Fix authentication replies when disconnectedJohan Hedberg2009-02-031-1/+1
| | | | | This patch makes sure that we don't reply to the authentiction requests if we get disconnected before authentication has completed.
* Fix bug which prevents emitting DeviceDisappered.Luiz Augusto von Dentz2009-01-211-32/+30
|
* Use hci_send_req instead of hci_send_cmd for write_scan_enableJohan Hedberg2009-01-141-2/+9
|
* Explicitly disable scans before powering adapter downJohan Hedberg2009-01-141-0/+2
|
* Fix LIAC setting while toggling Pairable property when Discoverable=trueJohan Hedberg2009-01-141-0/+4
|
* Don't remove linkkeys upon adapter removalJohan Hedberg2009-01-131-2/+2
|
* Clear authentication info upon disconnectJohan Hedberg2009-01-131-0/+3
|
* RemoveDevice() should also update adapter->connectionsJohan Hedberg2009-01-131-0/+1
|
* Handle active connection using device object.Luiz Augusto von Dentz2009-01-111-108/+86
|
* Move bonding creation to device.c.Luiz Augusto von Dentz2009-01-111-663/+31
|
* Update copyright informationMarcel Holtmann2009-01-011-1/+1
|
* Make two more local functions staticMarcel Holtmann2008-12-231-2/+2
|
* Cleanup adapters on exit.Luiz Augusto von Dentz2008-12-221-1/+15
| | | | | | | When bluetoothd is terminated any remaining registered adapters should be unregistered (including proper D-Bus signal emition) and have their drivers removed. The adapters should also be brought down unless they were already up upon initialization.
* Implement RememberPowered config optionJohan Hedberg2008-12-221-2/+6
|
* Use tabs instead of whitespacesMarcel Holtmann2008-12-201-1/+1
|
* Send AdapterRemoved and DeviceRemoved signals lastMarcel Holtmann2008-12-201-2/+2
|
* The signal for Powered change should be the last oneMarcel Holtmann2008-12-201-6/+4
|
* Rename create_bonding_conn_complete more appropriatelyJohan Hedberg2008-12-181-5/+5
|
* Implement InitiallyPowered config optionJohan Hedberg2008-12-161-2/+6
|
* Allow FindDevice to find temporary devicesJohan Hedberg2008-12-091-5/+0
| | | | | | | | E.g. in the case of an incoming object push request we may not be paired with the remote device and therefore the temporary flag will be set. However, if there's a "receive file" UI active it will most likely want to show at least the remote device name and therefore it should be possible to use FindDevice.
* Fix agent_create failure check and behaviorJohan Hedberg2008-12-031-3/+4
|
* Fix agent creation checksJohan Hedberg2008-12-031-0/+9
| | | | | Allow the same process (D-Bus name) to own both the default (adapter specific) as well as a device specific agent.
* Remove outdated comment and fix order of signalsMarcel Holtmann2008-12-011-2/+1
|
* Get rid of OffMode and always behave like DevDownJohan Hedberg2008-12-011-30/+15
|
* Stop the security manager if we do a DEVDOWN in adapter_upJohan Hedberg2008-12-011-7/+9
|
* Get rid of the first_up variable and always probe drivers on startupJohan Hedberg2008-12-011-14/+11
| | | | | | | | This patch reorganizes the adapter_up function logic a little bit so that we probe all drivers even if we are going to do a DEVDOWN ioctl afterwards due to a previously stored off mode (in the OffMode=DevDown case). An extra benefit is that we don't need the second init tracking variable in the adapter struct anymore.
* ix adapter initialization logicJohan Hedberg2008-11-301-9/+11
| | | | | | | | The original variable that was used for the initial DEVDOWN ioctl when OffMode=DevDown and the stored mode is "off" can't really be used elsewhere since it gets reset after calling the ioctl even though e.g. drivers haven't been probed yet. This patch renames the old variable (to first_up) and adds a new one for tracking when the adapter initialization has fully been completed.
* Use more cleaner way of setting first_initMarcel Holtmann2008-11-301-4/+4
|
* Use the correct first_init variableJohan Hedberg2008-11-301-2/+2
| | | | Use the stored first_init since adapter->first_init will always be FALSE here.
* Only retrieve the active connections list on first initializationJohan Hedberg2008-11-301-14/+15
|
* Only load drivers on the very first initialization of the adapterJohan Hedberg2008-11-301-2/+4
|
* Fix handling of errno and return valueMarcel Holtmann2008-11-301-42/+40
|
* Fix uninitialized variableJohan Hedberg2008-11-301-0/+1
|
* Only keep a message reference for unreplied messagesJohan Hedberg2008-11-301-16/+24
| | | | | | To avoid confusion and doing a dbus_message_new_method_return more than once it's better to just store the dbus client bus name instead of the whole message after the reply to it has been sent.
* Limit setting pairable property to when the adapter is upJohan Hedberg2008-11-301-0/+3
|
* Fix sending the Pairable propertyJohan Hedberg2008-11-301-6/+18
|
* Fix Powered property change sending for different offmodesJohan Hedberg2008-11-301-4/+6
|
* Send WRITE_SCAN_ENABLE asynchronously from set_mode()Johan Hedberg2008-11-301-42/+2
|
* Move more signal sending and iac setting responsibility over to ↵Johan Hedberg2008-11-291-18/+23
| | | | adapter_mode_changed
* Further set_mode cleanupJohan Hedberg2008-11-291-6/+2
| | | | | | Use the dedicated adapter_remove_discov_timeout function and don't care about sessions when setting the discoverable timer since sessions can't own the discoverable mode anymore.
* Reset correct timeout id variableJohan Hedberg2008-11-291-1/+1
|
* Fix discov_timeout_handler to do WRITE_SCAN_ENABLE asynchronouslyJohan Hedberg2008-11-291-16/+11
|
* Use the write_scan_enable helper function from discov_timeout_handlerJohan Hedberg2008-11-291-52/+34
|
* Fix adapter_up behavior for offmode=devdown caseJohan Hedberg2008-11-291-20/+15
|
* Minor coding style fixJohan Hedberg2008-11-291-1/+1
|
* Make adapter_update_devices private to adapter.cJohan Hedberg2008-11-291-19/+19
|
* Make adapter_remove_discov_timeout private to adapter.cJohan Hedberg2008-11-291-13/+14
|
* Clean up scan mode related codeJohan Hedberg2008-11-291-30/+6
|
* Further cleanup of set_mode()Johan Hedberg2008-11-291-24/+36
| | | | | | The set_mode() function is excessively large so try to split out smaller logical parts of it into their own functions (write_scan_enable in this case).
* Remove unnecessary adapter_set_mode functionJohan Hedberg2008-11-291-11/+3
|