From: Patrik Flykt <[email protected]>

      Hi,

Version 2 of this patch set is a rebase on current HEAD.


Currently, 'ConnectService' manager method call has been the only way of
connecting hidden WiFi networks. This patch set changes the status quo
so that hidden networks are listed together with any other services
(patch 01). There is no point in modifying the presented hidden networks
(patch 02), as they are not unique until configured with an SSID.

Thus, when net.connman.Service.Connect is called, an SSID or Name is
requested via the Agent API (patches 03,08). When an SSID or a Name found in
the reply from the agent (patches 09-11), a scan is done for the hidden
SSID (patch 15). Hidden SSID scan support is provided (patches 12,13) as well
as the implementation for WiFi (patch 17). If the SSID is found, the service
detected will be connected instead (patch 16).

authentication_cb_t is now more explicit on when values resp. cancel is
received from the agent (patches 04-06). A helper function for determining if
a service is hidden was added (patch 07) and passphrase setting was factored
out (patch 14).

I have noticed that when the hidden scan is done, wpa_supplicant sometimes
doesn't find the network in question and thus fails to connect to it.


Cheers,

        Patrik


Patrik Flykt (17):
  service: List also hidden services
  service: No modifications allowed for hidden services
  service: Return -EPERM for hidden services and prompt for input
  agent: Be explicit when RequestInput method return provides values
  service: Use boolean variable to determine valid values
  wispr: Add authentication_cb_t boolean to callback
  service: Helper function to check if a service is hidden
  agent: If a service is hidden, request either 'Name' or 'SSID'
  agent: Handle 'Name' and/or 'SSID' fields on method call return
  agent: Add network name and name length to authentication_cb_t
  wispr: Add SSID and length variables to callback
  device: Introduce hidden SSID scan function
  device: Add function for requesting a hidden scan
  service: Factor out passphrase setting functionality
  service: Do hidden network scan for the given SSID
  network: Add functionality to connect a hidden network
  wifi: Add support for hidden network scan

 include/device.h  |    3 ++
 include/network.h |    3 ++
 plugins/wifi.c    |   87 ++++++++++++++++++++++++++++++++++++++++++++++
 src/agent.c       |   67 ++++++++++++++++++++++++++++++++++-
 src/connman.h     |    8 ++++
 src/device.c      |   17 +++++++++
 src/network.c     |   20 +++++++++++
 src/service.c     |   99 ++++++++++++++++++++++++++++++++++++----------------
 src/wispr.c       |    2 +
 9 files changed, 273 insertions(+), 33 deletions(-)

-- 
1.7.2.5

_______________________________________________
connman mailing list
[email protected]
http://lists.connman.net/listinfo/connman

Reply via email to