Age | Commit message (Collapse) | Author | Files | Lines |
|
Change-Id: I3a133fa6aebd28dea42f7dfd9ecb42d04c45f291
Signed-off-by: Seonah Moon <seonah1.moon@samsung.com>
|
|
Change-Id: I6878ce2844c6ca821b0bff827edd248b559c6c6f
Signed-off-by: cheoleun <chleun.moon@samsung.com>
|
|
Send ScanChanged signal when device scanning status change.
Change-Id: I9878cbb29d6c40363e6e629d6e6e7c855952ed0c
Signed-off-by: Niraj Kumar Goit <niraj.g@samsung.com>
|
|
Change-Id: Ib84cb1c218b6c468ffe413b63af2fe7a33c2a63e
Signed-off-by: Niraj Kumar Goit <niraj.g@samsung.com>
|
|
Change-Id: I034c3317a346140006e1d23d1389894c867012cc
Signed-off-by: Niraj Kumar Goit <niraj.g@samsung.com>
|
|
Change-Id: I1c6f5d7a162ef7da9942ae41cdbbf64017b37aab
Signed-off-by: Saurav Babu <saurav.babu@samsung.com>
|
|
Signed-off-by: hyunuktak <hyunuk.tak@samsung.com>
Change-Id: I84a42375b5c59739e4caca1f726699ea7647ef17
|
|
Change-Id: I279ad9d0e623872f4dcf37a6c3c9cd012842e448
Signed-off-by: Taesub Kim <taesub.kim@samsung.com>
|
|
Use case:
Given 2 users: UserA and UserB
If UserA is connected to a wifi service, then UserB is not allowed
to set wifi technology properties.
Change-Id: Ia783b22bc28e9e487ddfa3a4c249c9d1ea76bde8
|
|
Change-Id: I73fccf5f322ee2597f8f58d5e3d7f60ddeb0a641
|
|
Change-Id: I86f4a22567f5df2fbd5d0c0c03c6cc5b6fc24a2d
|
|
Change-Id: I048c1a8a348b6f862ca104ad2fbe971f580fe180
|
|
|
|
If all the technologies were powered off, then offline mode could
not be disabled.
Fixes BMC#26018
|
|
|
|
If tethering is active when device is removed, then shutdown
tethering cleanly so that tether interface and bridge are
properly removed.
|
|
If the user has enabled persistent tethering mode in main.conf, then
try to activate tethering when technology is re-enabled, or we are
returning from offline mode, or after the device has rebooted.
|
|
|
|
|
|
As tethering is enabled on the technology level, both the bluetooth and
the bluetooth_legacy plugin need to register technology drivers for
CONNMAN_SERVICE_TYPE_BLUETOOTH. Modify the technology code to create
a list of registered technology drivers instead of a single technology
driver pointer.
|
|
In order to keep ConnMan devices in sync with Bluz 5 adapters, the
individual devices need to be enabled/disabled also when
unblocking/blocking them with rfkill. Thus enable devices after
unblocking and disable devices before blocking with rfkill.
|
|
|
|
Compare the technology driver pointer to the driver being unregistered
as the function is supposed to remove only the given driver.
Also check if the driver has a remove function before calling it.
|
|
|
|
|
|
When adding an rfkill device which is unblocked, soft block it immediately
if offline mode is enabled or the technology (enable_persistent) is
disabled.
Fixes BMC#25858
|
|
Fixes BMC#25846
|
|
This fixes an issue with the TechnologyAdded signal when the first
un-hardblock event occurs:
- when a technology was created, D-Bus registration was done and hardblock
was set to TRUE even if there was no evidence that the technology was
rfkill driven
- when the technology was updated to be rfkill driven, hardblock was already
set to TRUE and thus the technology was not unregistered
- when an rfkill event un-hardblocks the technology, the TechnologyAdded
signal was not sent since the technology was already registered to D-Bus
|
|
If hardblock is on and a new device is inserted and detected as not
hardblocked, then it will be possible to enable/disable it (soft rfkill)
independently to the main hw rfkill switch.
|
|
This fixes the case of cascading rfkill switches: if enabled, hard rfkilling
such technology might generate contradictory events.
1 - first all switches are hardblocked
2 - then one of these switch (usually: device's switch) gets fully unblocked
3 - then this same switch gets removed
Step 2 is in contradiction with step 1, so we need to care about such switch
getting removed by recomputing the hardblocked state.
|
|
|
|
If rfkill driven, use rfkill soft block/unblock. If not, request the
device to be enabled or disabled.
|
|
|
|
|
|
No need to proceed with softblocked if technology is already hardblocked.
Apply offlinemode and persistant state according to softblocked state.
(saner logic and helped to cleanup code from style point of view too)
|
|
|
|
Useful for coming patches: enabling/disabling technologies will be done
differently whether technology is rfkill driven or not:
- if rfkill driven -> enabled will rely on rfkill states
- if not -> enabled will rely on driver/devices states
|
|
Refactor how a device list is enabled/disabled: this will be useful
for coming patches. Simplify also the code, and remove useless gotos.
|
|
If hard rfkilled, a technology will not be exposed through DBus via
GetTechnologies. If hard rfkill status changes, TechnologyAdded and
TechnologyRemoved signals will be sent accordingly.
|
|
|
|
|
|
|
|
When hardblocking a technology, it should disable the devices which belongs
to that technology. When un-hardblocking it should do the same but taking
care about user setting (it will enable the devices if only enable_persistent
is on).
|
|
On some hardware, there exist two rfkill entities for the same type
with a cascading issue: if one is soft blocked, the other one is
hardblocked. But if the hardblock switch is set, all are hardblocked.
This patch figures out that a technology is hardblocked only if all
related rkill events get the same hardblock value.
|
|
|
|
|
|
|
|
Fixes BMC#25721
|
|
|
|
Convert usage of g_slist_append() to g_slist_prepend() where
appropriate. gdbus, dnsproxy, resolver, rtnl, session and session
unit test have ordering requirements and thus not touched.
|