[PATCH 0/6] Implement Technology Scan

patrik.flykt at linux.intel.com patrik.flykt at linux.intel.com
Tue Jan 31 01:26:48 PST 2012

From: Patrik Flykt <patrik.flykt at linux.intel.com>


This patch set implements Technology Scan D-Bus method calls.

The implementation itself is pretty straight-forward. Technologies
are given a new Scan D-Bus method call that adds the method call
messages to a list and replies to them when the scan is finished
(patch 04). The notification of a scan starting or stopping is added
to the device code, and the notification is called only one the first
device starting to scan or the last one stopping (patch 05). The
notification is done directly from device.c to technology.c, this
can be extended to use notifier.c if needed. For now notifier.c
would be just a "trampoline" for the code as no other parts of
ConnMan are currently interested in these events.

Some fixes supporting this functionality were made; wifi now always
sets device scanning to FALSE (patch 01), those devices that don't
support scanning return error (patch 02) and success is returned if
at least one device started scanning (patch 03).

Manager RequestScan is finally removed in patch 06.

With this patch Tecnology API changes are all done, unless I've missed
something. Service and Agent API changes are still pending, though.



Patrik Flykt (6):
  wifi: Always set scanning to FALSE in scan callback
  device: Return -EOPNOTSUPP if the device does not support scanning
  device: Return success if scan succeeded for at least one device
  technology: Implement Technology Scan and scan start/stop
  device: Notify technology when a scan has started or stopped
  manager: Remove RequestScan D-Bus method call

 plugins/wifi.c   |    4 +-
 src/connman.h    |    2 +
 src/device.c     |   43 ++++++++++++++++++++---
 src/manager.c    |   35 -------------------
 src/technology.c |  101 ++++++++++++++++++++++++++++++++++++++++++++++++------
 5 files changed, 131 insertions(+), 54 deletions(-)


More information about the connman mailing list