[PATCH v2 0/6] Implement Technology scan

patrik.flykt at linux.intel.com patrik.flykt at linux.intel.com
Wed Feb 1 06:43:52 PST 2012


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


      Hi,

This patch set implements Technology Scan D-Bus method calls. Version 2
moved the check for number of devices scanning from device.c to
technology as well as checked for devices being removed.

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 called
only one the first device starting to scan or the last one stopping.
Scan notification is done directly from device.c to technology.c (patch
05), 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.


Cheers,

	Patrik



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
    functionality
  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(-)

-- 
1.7.2.5


*** BLURB HERE ***

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
    functionality
  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     |   22 ++++++++---
 src/manager.c    |   35 -----------------
 src/technology.c |  111 ++++++++++++++++++++++++++++++++++++++++++++++++-----
 5 files changed, 120 insertions(+), 54 deletions(-)

-- 
1.7.2.5




More information about the connman mailing list