Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Get rid of OffMode and always behave like DevDown | Johan Hedberg | 2008-12-01 | 4 | -51/+15 |
| | |||||
* | Stop the security manager if we do a DEVDOWN in adapter_up | Johan Hedberg | 2008-12-01 | 3 | -9/+14 |
| | |||||
* | Start security manager early to catch all HCI events | Johan Hedberg | 2008-12-01 | 1 | -1/+1 |
| | |||||
* | Get rid of the first_up variable and always probe drivers on startup | Johan Hedberg | 2008-12-01 | 1 | -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 logic | Johan Hedberg | 2008-11-30 | 1 | -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_init | Marcel Holtmann | 2008-11-30 | 1 | -4/+4 |
| | |||||
* | Use the correct first_init variable | Johan Hedberg | 2008-11-30 | 1 | -2/+2 |
| | | | | Use the stored first_init since adapter->first_init will always be FALSE here. | ||||
* | Set default adapter on registration | Marcel Holtmann | 2008-11-30 | 1 | -1/+8 |
| | |||||
* | Remove some useless braces | Marcel Holtmann | 2008-11-30 | 1 | -1/+1 |
| | |||||
* | Only retrieve the active connections list on first initialization | Johan Hedberg | 2008-11-30 | 1 | -14/+15 |
| | |||||
* | Only load drivers on the very first initialization of the adapter | Johan Hedberg | 2008-11-30 | 1 | -2/+4 |
| | |||||
* | Fix some more misusage of "return -err;" | Marcel Holtmann | 2008-11-30 | 1 | -4/+4 |
| | |||||
* | Fix handling of errno and return value | Marcel Holtmann | 2008-11-30 | 1 | -42/+40 |
| | |||||
* | Fix uninitialized variable | Johan Hedberg | 2008-11-30 | 1 | -0/+1 |
| | |||||
* | Only keep a message reference for unreplied messages | Johan Hedberg | 2008-11-30 | 1 | -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 up | Johan Hedberg | 2008-11-30 | 1 | -0/+3 |
| | |||||
* | Fix sending the Pairable property | Johan Hedberg | 2008-11-30 | 1 | -6/+18 |
| | |||||
* | Fix Powered property change sending for different offmodes | Johan Hedberg | 2008-11-30 | 1 | -4/+6 |
| | |||||
* | Send WRITE_SCAN_ENABLE asynchronously from set_mode() | Johan Hedberg | 2008-11-30 | 1 | -42/+2 |
| | |||||
* | Move more signal sending and iac setting responsibility over to ↵ | Johan Hedberg | 2008-11-29 | 1 | -18/+23 |
| | | | | adapter_mode_changed | ||||
* | Further set_mode cleanup | Johan Hedberg | 2008-11-29 | 1 | -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 variable | Johan Hedberg | 2008-11-29 | 1 | -1/+1 |
| | |||||
* | Fix discov_timeout_handler to do WRITE_SCAN_ENABLE asynchronously | Johan Hedberg | 2008-11-29 | 1 | -16/+11 |
| | |||||
* | Use the write_scan_enable helper function from discov_timeout_handler | Johan Hedberg | 2008-11-29 | 1 | -52/+34 |
| | |||||
* | Fix adapter_up behavior for offmode=devdown case | Johan Hedberg | 2008-11-29 | 1 | -20/+15 |
| | |||||
* | Minor coding style fix | Johan Hedberg | 2008-11-29 | 1 | -1/+1 |
| | |||||
* | Make adapter_update_devices private to adapter.c | Johan Hedberg | 2008-11-29 | 2 | -20/+19 |
| | |||||
* | Make adapter_remove_discov_timeout private to adapter.c | Johan Hedberg | 2008-11-29 | 3 | -16/+14 |
| | |||||
* | Clean up scan mode related code | Johan Hedberg | 2008-11-29 | 3 | -35/+7 |
| | |||||
* | Further cleanup of set_mode() | Johan Hedberg | 2008-11-29 | 1 | -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 function | Johan Hedberg | 2008-11-29 | 2 | -12/+3 |
| | |||||
* | Fix/cleanup set_mode() and its usage | Johan Hedberg | 2008-11-29 | 1 | -65/+91 |
| | |||||
* | Remove unnecessary parenthesis | Johan Hedberg | 2008-11-29 | 1 | -1/+1 |
| | |||||
* | Remove usage of the string "limited" | Johan Hedberg | 2008-11-29 | 1 | -2/+1 |
| | |||||
* | Remove bogus parameter | Johan Hedberg | 2008-11-29 | 1 | -1/+1 |
| | |||||
* | Remove unused variable | Johan Hedberg | 2008-11-29 | 1 | -3/+0 |
| | |||||
* | RequestMode end result should depend on the Discoverable property | Johan Hedberg | 2008-11-29 | 1 | -4/+7 |
| | |||||
* | Mode restoring for offmode=devdown should be per-adapter | Johan Hedberg | 2008-11-29 | 1 | -6/+10 |
| | |||||
* | adapter_up() cleanup | Johan Hedberg | 2008-11-29 | 1 | -41/+37 |
| | |||||
* | More session related cleanup | Johan Hedberg | 2008-11-29 | 1 | -15/+14 |
| | |||||
* | Rename old mode_request() to request_session() | Johan Hedberg | 2008-11-29 | 1 | -19/+5 |
| | |||||
* | g_dbus_send_message already takes care of calling dbus_message_set_no_reply | Johan Hedberg | 2008-11-29 | 1 | -4/+0 |
| | |||||
* | Remove methods and properties marked as deprecated from Adapter interface. | Luiz Augusto von Dentz | 2008-11-28 | 1 | -75/+0 |
| | |||||
* | Introduce PairableTimeout Property and fix use of g_timeout_add. | Luiz Augusto von Dentz | 2008-11-27 | 7 | -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_initiator | Johan Hedberg | 2008-11-21 | 1 | -1/+1 |
| | |||||
* | Introduce Pairable property. | Luiz Augusto von Dentz | 2008-11-20 | 5 | -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 functions | Johan Hedberg | 2008-11-19 | 2 | -35/+0 |
| | |||||
* | Move set_limited_discoverable() from dbus-hci.c to adapter.c | Johan Hedberg | 2008-11-19 | 3 | -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 CreateDevice | Johan Hedberg | 2008-11-19 | 1 | -3/+1 |
| | |||||
* | Once a driver has been removed break out and proceed to the next one | Johan Hedberg | 2008-11-18 | 1 | -3/+3 |
| |