summaryrefslogtreecommitdiffstats
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* Fix DefaultAdapter not indicanting adapter properly after repluging.Luiz Augusto von Dentz2008-12-011-6/+10
|
* Get rid of OffMode and always behave like DevDownJohan Hedberg2008-12-014-51/+15
|
* Stop the security manager if we do a DEVDOWN in adapter_upJohan Hedberg2008-12-013-9/+14
|
* Start security manager early to catch all HCI eventsJohan Hedberg2008-12-011-1/+1
|
* 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.
* Set default adapter on registrationMarcel Holtmann2008-11-301-1/+8
|
* Remove some useless bracesMarcel Holtmann2008-11-301-1/+1
|
* 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 some more misusage of "return -err;"Marcel Holtmann2008-11-301-4/+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-292-20/+19
|
* Make adapter_remove_discov_timeout private to adapter.cJohan Hedberg2008-11-293-16/+14
|
* Clean up scan mode related codeJohan Hedberg2008-11-293-35/+7
|
* 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-292-12/+3
|
* Fix/cleanup set_mode() and its usageJohan Hedberg2008-11-291-65/+91
|
* Remove unnecessary parenthesisJohan Hedberg2008-11-291-1/+1
|
* Remove usage of the string "limited"Johan Hedberg2008-11-291-2/+1
|
* Remove bogus parameterJohan Hedberg2008-11-291-1/+1
|
* Remove unused variableJohan Hedberg2008-11-291-3/+0
|
* RequestMode end result should depend on the Discoverable propertyJohan Hedberg2008-11-291-4/+7
|
* Mode restoring for offmode=devdown should be per-adapterJohan Hedberg2008-11-291-6/+10
|
* adapter_up() cleanupJohan Hedberg2008-11-291-41/+37
|
* More session related cleanupJohan Hedberg2008-11-291-15/+14
|
* Rename old mode_request() to request_session()Johan Hedberg2008-11-291-19/+5
|
* g_dbus_send_message already takes care of calling dbus_message_set_no_replyJohan Hedberg2008-11-291-4/+0
|
* Remove methods and properties marked as deprecated from Adapter interface.Luiz Augusto von Dentz2008-11-281-75/+0
|
* Introduce PairableTimeout Property and fix use of g_timeout_add.Luiz Augusto von Dentz2008-11-277-74/+208
| | | | | | | PairableTimeout work similarly to DiscoverableTimeout where the user application can set the amount of time to stay in Pairable. It also fixes the use of g_timeout_add to g_timeout_add_seconds for both PairableTimeout and DiscoverableTimeout.
* Fix bdaddr parameter to adapter_pairing_initiatorJohan Hedberg2008-11-211-1/+1
|
* Introduce Pairable property.Luiz Augusto von Dentz2008-11-205-2/+108
| | | | | | | | | | | As the name suggest it tells when an adapter enter or leaves bondable mode, it works as follow: Pairable=true & Discoverable=true: limited IAC Pairable=true & Discoverable=false: pairable but inquiry scan disabled Pairable=false & Discoverable=true: inquiry scan enabled (with Generic IAC) but new pairings cannot be created (same as if there was no agent) Pairable=false & Discoverable=false: inquiry scan disabled & non-pairable (as if there was no agent)
* Remove unused functionsJohan Hedberg2008-11-192-35/+0
|
* Move set_limited_discoverable() from dbus-hci.c to adapter.cJohan Hedberg2008-11-193-39/+38
| | | | | The function was only used from within adapter.c so it makes sense to have it static inside adapter.c
* Fix D-Bus signals emmission for CreateDeviceJohan Hedberg2008-11-191-3/+1
|