platform/core/connectivity/wifi-mesh-manager.git
6 years agoAdded support to get Gate Announcement Mesh Param 46/145446/1
saerome kim [Tue, 22 Aug 2017 09:45:05 +0000 (18:45 +0900)]
Added support to get Gate Announcement Mesh Param

Change-Id: Icedcf8058c4d1ea5613beb67e04a6f8c80e745ef
Signed-off-by: Saurav Babu <saurav.babu@samsung.com>
6 years agoAdded support to get Mesh Configuration using netlink 27/145427/1
saerome kim [Tue, 22 Aug 2017 08:40:31 +0000 (17:40 +0900)]
Added support to get Mesh Configuration using netlink

Change-Id: I4544070667cceb6dd5e21f5078dc82bfdb2912e3
Signed-off-by: Saurav Babu <saurav.babu@samsung.com>
Signed-off-by: saerome kim <saerome.kim@samsung.com>
6 years ago[SECSFV-23] Make systemd set wmeshd capabilities 17/143417/2
saerome.kim [Thu, 10 Aug 2017 00:41:37 +0000 (09:41 +0900)]
[SECSFV-23] Make systemd set wmeshd capabilities

Change-Id: Ib006de6493a6d6375dc9b4540aa3e926717d1876
Signed-off-by: saerome.kim <saerome.kim@samsung.com>
6 years ago[SECSFV-23] Change uid/gid to network_fw 99/143199/2
saerome.kim [Wed, 9 Aug 2017 04:41:57 +0000 (13:41 +0900)]
[SECSFV-23] Change uid/gid to network_fw

Change-Id: Id0d20049720559123efbf87e7530f892f9b587ab
Signed-off-by: saerome.kim <saerome.kim@samsung.com>
6 years agoChange spec file name
saerome kim [Fri, 7 Jul 2017 09:13:16 +0000 (18:13 +0900)]
Change spec file name

Signed-off-by: saerome kim <saerome.kim@samsung.com>
6 years agoChange daemon nane from meshd to wmeshd
saerome kim [Wed, 5 Jul 2017 11:40:23 +0000 (20:40 +0900)]
Change daemon nane from meshd to wmeshd

Signed-off-by: saerome kim <saerome.kim@samsung.com>
6 years agoRemoved dependency of related to the latest nl80211.h
saerome.kim [Tue, 4 Jul 2017 05:16:12 +0000 (14:16 +0900)]
Removed dependency of related to the latest  nl80211.h

Signed-off-by: saerome.kim <saerome.kim@samsung.com>
6 years agoChange the calling order mesh_gdbus_set_mesh_gate and mesh_request_set_mesh_gate...
saerome.kim [Mon, 3 Jul 2017 12:53:18 +0000 (21:53 +0900)]
Change the calling order mesh_gdbus_set_mesh_gate and mesh_request_set_mesh_gate/mesh_request_unset_mesh_gate

Signed-off-by: saerome.kim <saerome.kim@samsung.com>
6 years agoAdd handling 'data_rate' parameter
saerome.kim [Mon, 3 Jul 2017 12:13:18 +0000 (21:13 +0900)]
Add handling 'data_rate' parameter

Signed-off-by: saerome.kim <saerome.kim@samsung.com>
6 years agoFix Tizen coding rules
saerome.kim [Mon, 3 Jul 2017 07:07:07 +0000 (16:07 +0900)]
Fix Tizen coding rules

Signed-off-by: saerome.kim <saerome.kim@samsung.com>
6 years agoMake the first wireless interface up and start wpa_supplicant if the wireless interfa...
saerome.kim [Mon, 3 Jul 2017 06:06:42 +0000 (15:06 +0900)]
Make the first wireless interface up and start wpa_supplicant if the wireless interface down & wpa_supplicant is not started

Signed-off-by: saerome.kim <saerome.kim@samsung.com>
6 years agoRemove unused codes releated to below:
saerome.kim [Mon, 3 Jul 2017 05:37:40 +0000 (14:37 +0900)]
Remove unused codes releated to below:
- monitoring /sys/class/net/eth0 using udev event
- monitoring /sys/class/net/eth0 using netlink event

Signed-off-by: saerome.kim <saerome.kim@samsung.com>
6 years agoModified sometings related to 'mesh_set_gate'
saerome.kim [Mon, 3 Jul 2017 04:58:56 +0000 (13:58 +0900)]
Modified sometings related to 'mesh_set_gate'
- Changed 'mesh_set_gate / mesh_unset_gate API
- Added the 'SetMeshGate' GDbus command

Signed-off-by: saerome.kim <saerome.kim@samsung.com>
6 years agoImplement sending 'enable ethernet' to the ConnMan
saerome.kim [Mon, 3 Jul 2017 04:38:14 +0000 (13:38 +0900)]
Implement sending 'enable ethernet' to the ConnMan
Fix sending 'enable ethernet' to the ConnMan

Signed-off-by: saerome.kim <saerome.kim@samsung.com>
Signed-off-by: Saurav Babu <saurav.babu@samsung.com>
6 years agoAdded initial monitoring service for external interface
saerome.kim [Fri, 30 Jun 2017 04:07:57 +0000 (13:07 +0900)]
Added initial monitoring service for external interface

Signed-off-by: saerome.kim <saerome.kim@samsung.com>
6 years agoFix build error temporally
saerome.kim [Fri, 30 Jun 2017 04:00:16 +0000 (13:00 +0900)]
Fix build error temporally

Signed-off-by: saerome.kim <saerome.kim@samsung.com>
6 years agoMove mesh peer monitoring service from 'enable' to 'enable_mesh'
saerome.kim [Fri, 30 Jun 2017 03:58:56 +0000 (12:58 +0900)]
Move mesh peer monitoring service from 'enable' to 'enable_mesh'

Signed-off-by: saerome.kim <saerome.kim@samsung.com>
6 years agoFix Tizen coding rule check error
saerome.kim [Fri, 30 Jun 2017 03:56:46 +0000 (12:56 +0900)]
Fix Tizen coding rule check error
mesh-service-interface.c:174: ERROR: [BRC_M_SMT] else should follow close brace '}'

uigned-off-by: saerome.kim <saerome.kim@samsung.com>

6 years agoClear allocated list items
saerome.kim [Fri, 30 Jun 2017 03:54:52 +0000 (12:54 +0900)]
Clear allocated list items
- Free allocated structures on destroy.

Signed-off-by: saerome.kim <saerome.kim@samsung.com>
6 years agoCode arrangement
saerome.kim [Fri, 30 Jun 2017 03:51:16 +0000 (12:51 +0900)]
Code arrangement
- Arrange netlink library functions

Signed-off-by: saerome.kim <saerome.kim@samsung.com>
6 years agoDemonize hostapd
saerome.kim [Fri, 30 Jun 2017 03:33:26 +0000 (12:33 +0900)]
Demonize hostapd
- Run hostapd as separated daemon process with '-B' parameter
- Without it, hostapd doesn't work properly after restarted.
  (Terminated with SIGTERM and started again)

Signed-off-by: saerome.kim <saerome.kim@samsung.com>
6 years agoFix a bug that mesh_enable function always returns 'operation failed'
saerome kim [Wed, 14 Jun 2017 12:47:44 +0000 (21:47 +0900)]
Fix a bug that mesh_enable function always returns 'operation failed'
 - Make that registering netlink listner is on going as success

Signed-off-by: saerome kim <saerome.kim@samsung.com>
6 years agoHandle error return code
Jiwan Kim [Wed, 14 Jun 2017 10:12:28 +0000 (19:12 +0900)]
Handle error return code

- Change to return valid return code on repeated call.
  mesh_enable_mesh
  mesh_disable_mesh
- Change policy of return code
  mesh_cancel_scan
  mesh_disable_softap
- Add method
  mesh_is_joined

6 years agoFix for UTC error case
Jiwan Kim [Wed, 14 Jun 2017 06:37:47 +0000 (15:37 +0900)]
Fix for UTC error case

- Add privileges (not fully tested)
- Fix mesh_request_set_mesh_gate()
- Fix not to return error code on repeated enable()

6 years agoDisable privilege check routine temporaly
saerome kim [Tue, 13 Jun 2017 07:31:31 +0000 (16:31 +0900)]
Disable privilege check routine temporaly

 - remove meshd.conf file

Signed-off-by: saerome kim <saerome.kim@samsung.com>
6 years agoFix to follow coding style
Jiwan Kim [Tue, 13 Jun 2017 07:22:11 +0000 (16:22 +0900)]
Fix to follow coding style

6 years agoFix for svace issues
Jiwan Kim [Tue, 13 Jun 2017 07:00:39 +0000 (16:00 +0900)]
Fix for svace issues

6 years agoFix mismatched function call
Jiwan Kim [Mon, 12 Jun 2017 05:22:32 +0000 (14:22 +0900)]
Fix mismatched function call

6 years agoRename functions
Jiwan Kim [Mon, 12 Jun 2017 04:51:57 +0000 (13:51 +0900)]
Rename functions

- mesh_request_ipc_* -> mesh_request_*
- mesh_ipc_* -> mesh_gdbus_*

6 years agoRemove obsolete logics
Jiwan Kim [Mon, 12 Jun 2017 04:17:17 +0000 (13:17 +0900)]
Remove obsolete logics

- low-level logic are moved into connman and wpa_supplicant.

6 years agoAdd security type and passphrase
Jiwan Kim [Fri, 9 Jun 2017 08:29:53 +0000 (17:29 +0900)]
Add security type and passphrase

- Add 'security' param on 'get_joined_mesh_network' method
- Add 'security' param on 'connection_state' signal
- Add 'passphrase' param on 'connect_mesh_network' method

6 years agoAdd network connection state
Jiwan Kim [Thu, 8 Jun 2017 07:16:10 +0000 (16:16 +0900)]
Add network connection state

- Remove 'joined_network / left_network' signal
- Add 'connection_state' signal
- Subscribe mesh profile property from connman
- Add connection state to 'get_joined_mesh_network'
  and 'get_found_mesh_networks'

6 years agoUpdate inital peer-monitoring function
saerome kim [Thu, 8 Jun 2017 04:59:24 +0000 (13:59 +0900)]
Update inital peer-monitoring function

Signed-off-by: saerome kim <saerome.kim@samsung.com>
6 years agoChange 'Connect' as asynchronous method
Jiwan Kim [Wed, 7 Jun 2017 02:24:45 +0000 (11:24 +0900)]
Change 'Connect' as asynchronous method

- Call asynchronousely 'Connect' method
- Add 'mesh_connected' signal for response.
  It would be notified when state reaches 'Ready' from connman.

6 years agoAdd interface to get mesh connected peers
Jiwan Kim [Fri, 2 Jun 2017 07:19:53 +0000 (16:19 +0900)]
Add interface to get mesh connected peers

- get_connected_peers added.

6 years agoHandle error cases
Jiwan Kim [Thu, 1 Jun 2017 09:45:51 +0000 (18:45 +0900)]
Handle error cases

- Handle dbus error case from connman
- Add / remove necessary debug logs

6 years agoAdjust dbus interface for service error code.
Jiwan Kim [Thu, 1 Jun 2017 07:21:23 +0000 (16:21 +0900)]
Adjust dbus interface for service error code.

- Change to send (u) -> (i) for CAPI error type.

6 years agoFix parsing logic for dbus return value
Jiwan Kim [Thu, 1 Jun 2017 04:20:36 +0000 (13:20 +0900)]
Fix parsing logic for dbus return value

- return value is an array of separated dictionary : {sv}
  so g_variant_dict_lookup_value won't work this type.

6 years agoAdjust build options
Jiwan Kim [Tue, 30 May 2017 08:31:11 +0000 (17:31 +0900)]
Adjust build options

- Remove unused build parameters

6 years agoFix mesh network interfaces
Jiwan Kim [Tue, 30 May 2017 07:22:07 +0000 (16:22 +0900)]
Fix mesh network interfaces

- Fix a bug on mesh network creation
- Add interface 'disconnect'

6 years agoAdjust dbus interface between API and connman
Jiwan Kim [Mon, 29 May 2017 09:52:42 +0000 (18:52 +0900)]
Adjust dbus interface between API and connman

- Add to get current mesh network / to create mesh network
- Adjust the name of DBus interfaces

6 years agoFix synchronous scan method
Jiwan Kim [Fri, 26 May 2017 08:00:26 +0000 (17:00 +0900)]
Fix synchronous scan method

6 years agoInitial connman integration
Jiwan Kim [Fri, 26 May 2017 06:58:00 +0000 (15:58 +0900)]
Initial connman integration

6 years agoAdd initial gdbus code
Jiwan Kim [Wed, 24 May 2017 12:28:23 +0000 (21:28 +0900)]
Add initial gdbus code

6 years agoFix bridge error on RPI3 target
Jiwan Kim [Tue, 23 May 2017 00:34:56 +0000 (09:34 +0900)]
Fix bridge error on RPI3 target

- Invalid parameter error (-22) occured with ioctl
- If 'SIOCBRADDBR' are defined, use it instead of 'SIOCSIFBR'

6 years agoChange hostapd configuration file path
Jiwan Kim [Tue, 21 Mar 2017 01:39:10 +0000 (10:39 +0900)]
Change hostapd configuration file path

6 years agoStore saved mesh network into storage
Jiwan Kim [Mon, 20 Mar 2017 09:11:04 +0000 (18:11 +0900)]
Store saved mesh network into storage

6 years agoAdd debug log for interface setting
Jiwan Kim [Mon, 20 Mar 2017 04:57:27 +0000 (13:57 +0900)]
Add debug log for interface setting

6 years agoFix interface detection error after 2nd enable method.
Jiwan Kim [Mon, 20 Mar 2017 04:52:49 +0000 (13:52 +0900)]
Fix interface detection error after 2nd enable method.

6 years agoChange hostapd terminate logic
Jiwan Kim [Mon, 20 Mar 2017 00:26:10 +0000 (09:26 +0900)]
Change hostapd terminate logic

- Changed not to remove configuration file on termination.

6 years agoChange mesh id setting logic
Jiwan Kim [Tue, 14 Mar 2017 10:20:59 +0000 (19:20 +0900)]
Change mesh id setting logic

- Fix missing add_mpath event issue

6 years agoAdd DHCP terminate logic
Jiwan Kim [Tue, 14 Mar 2017 08:21:54 +0000 (17:21 +0900)]
Add DHCP terminate logic

6 years agoAdd missing station_info variable
Jiwan Kim [Tue, 14 Mar 2017 05:45:02 +0000 (14:45 +0900)]
Add missing station_info variable

6 years agoRemove connection API dependency / Fix scan issue
Jiwan Kim [Tue, 14 Mar 2017 04:36:35 +0000 (13:36 +0900)]
Remove connection API dependency / Fix scan issue

- Remove connection API(for ethernet cable state)
  and change to get cable status directly.
- Make interface up state before trying scan
  (If interface is down state, scan cannot performed)

6 years agoFix mismatch 'get_station_info' response
Jiwan Kim [Tue, 14 Mar 2017 01:48:24 +0000 (10:48 +0900)]
Fix mismatch 'get_station_info' response

6 years agoSeparate logic for enable/disable method
Jiwan Kim [Tue, 14 Mar 2017 01:16:23 +0000 (10:16 +0900)]
Separate logic for enable/disable method

- Daemon will be launched only enable method
  (net.mesh.manager)

6 years agoFix parameter order on set_softap method
Jiwan Kim [Mon, 13 Mar 2017 11:36:32 +0000 (20:36 +0900)]
Fix parameter order on set_softap method

6 years agoAdd mesh join/left event handler
Jiwan Kim [Mon, 13 Mar 2017 10:29:25 +0000 (19:29 +0900)]
Add mesh join/left event handler

6 years agoRequest DHCP on mesh enabled
Jiwan Kim [Mon, 13 Mar 2017 07:15:05 +0000 (16:15 +0900)]
Request DHCP on mesh enabled

6 years agoNotify mesh network joined/left event
Jiwan Kim [Mon, 13 Mar 2017 07:03:25 +0000 (16:03 +0900)]
Notify mesh network joined/left event

6 years agoAdd method to get station/mpath information
Jiwan Kim [Mon, 13 Mar 2017 05:58:20 +0000 (14:58 +0900)]
Add method to get station/mpath information

6 years agoChange parameter name at set_softap method
saerome kim [Mon, 13 Mar 2017 02:00:07 +0000 (11:00 +0900)]
Change parameter name at set_softap method

Signed-off-by: saerome kim <saerome.kim@samsung.com>
6 years agoUpdate logic to add softAP interface into bridge
Jiwan Kim [Fri, 10 Mar 2017 01:43:36 +0000 (10:43 +0900)]
Update logic to add softAP interface into bridge

6 years agoImplementation for SoftAP
Jiwan Kim [Thu, 9 Mar 2017 07:27:22 +0000 (16:27 +0900)]
Implementation for SoftAP

6 years agoSimplify the signal.
saerome.kim [Thu, 9 Mar 2017 07:10:08 +0000 (16:10 +0900)]
Simplify the signal.

Signed-off-by: saerome.kim <saerome.kim@samsung.com>
6 years agoAdd set_interfaces method
saerome.kim [Thu, 9 Mar 2017 00:18:21 +0000 (09:18 +0900)]
Add set_interfaces method

Signed-off-by: saerome.kim <saerome.kim@samsung.com>
6 years agoUpdate get_joined_mesh_network method
Jiwan Kim [Wed, 8 Mar 2017 09:26:15 +0000 (18:26 +0900)]
Update get_joined_mesh_network method

- Remove data_rate
- Change rssi to use signed integer
- Add bssid

6 years agoChange parameter type at 'set_gate' method
saerome kim [Wed, 8 Mar 2017 08:22:04 +0000 (17:22 +0900)]
Change parameter type at 'set_gate' method

Signed-off-by: saerome kim <saerome.kim@samsung.com>
6 years agoImplement methods
Jiwan Kim [Wed, 8 Mar 2017 05:36:24 +0000 (14:36 +0900)]
Implement methods

- enable_mesh
- disable_mesh
- set_gate
- unset_gate
- get_joined_mesh_network
- Scan can be done before mesh interface is created
  (with base interface(i.e. wlan0))

6 years agoSeparate logic for mesh enable / set gate
Jiwan Kim [Tue, 7 Mar 2017 09:10:44 +0000 (18:10 +0900)]
Separate logic for mesh enable / set gate

6 years agoUpdate 'get_saved_mesh_network' method
Jiwan Kim [Mon, 6 Mar 2017 08:37:18 +0000 (17:37 +0900)]
Update 'get_saved_mesh_network' method

6 years agoAdd functions to get scan result
Jiwan Kim [Mon, 6 Mar 2017 06:40:00 +0000 (15:40 +0900)]
Add functions to get scan result

- for 'get_found_mesh_networks' method

6 years agoApply changed Dbus methods
saerome kim [Fri, 3 Mar 2017 12:12:23 +0000 (21:12 +0900)]
Apply changed Dbus methods

Signed-off-by: saerome kim <saerome.kim@samsung.com>
6 years agoAdd basic function set for saved network
Jiwan Kim [Fri, 3 Mar 2017 08:27:27 +0000 (17:27 +0900)]
Add basic function set for saved network

6 years agoAdd function prototype for mesh saved network
Jiwan Kim [Fri, 3 Mar 2017 05:50:34 +0000 (14:50 +0900)]
Add function prototype for mesh saved network

6 years agoFix to get mesh scan list properly
Jiwan Kim [Fri, 3 Mar 2017 04:29:48 +0000 (13:29 +0900)]
Fix to get mesh scan list properly

- Add NL80211_ATTR_IE (114: Mesh element id)
- Remove invalid pkg dependency(capi-network-mesh)
- Update mesh script

6 years agoEmit 'scan_done' signal when scan finished
Jiwan Kim [Thu, 2 Mar 2017 04:49:49 +0000 (13:49 +0900)]
Emit 'scan_done' signal when scan finished

6 years agoRemove temporary test function
Jiwan Kim [Thu, 2 Mar 2017 04:22:13 +0000 (13:22 +0900)]
Remove temporary test function

6 years agoUpdate async scan result logic into scan methods
Jiwan Kim [Thu, 2 Mar 2017 04:10:23 +0000 (13:10 +0900)]
Update async scan result logic into scan methods

Signed-off-by: Jiwan Kim <ji-wan.kim@samsung.com>
6 years agoAdd test scan request & async result receiver
Jiwan Kim [Tue, 28 Feb 2017 08:29:20 +0000 (17:29 +0900)]
Add test scan request & async result receiver

- Test function added, should be refactored.
- Can be tested with
  'net.mesh /net/mesh net.mesh.disjoin' method

Signed-off-by: Jiwan Kim <ji-wan.kim@samsung.com>
6 years agoInitian code sync up from private gerrit
Jiwan Kim [Fri, 24 Feb 2017 01:54:00 +0000 (10:54 +0900)]
Initian code sync up from private gerrit

Signed-off-by: Jiwan Kim <ji-wan.kim@samsung.com>
6 years agoInitial commit
김새롬/Tizen Platform Lab(S/W센터)/S5(책임)/삼성전자 [Fri, 24 Feb 2017 01:46:48 +0000 (10:46 +0900)]
Initial commit

6 years agoInitial empty repository master
Tizen Infrastructure [Mon, 10 Jul 2017 09:41:45 +0000 (09:41 +0000)]
Initial empty repository