platform/core/connectivity/wifi-mesh-manager.git
2 years agoChange the package name for haltests 37/261137/1 accepted/tizen_6.5_unified accepted/tizen_7.0_unified accepted/tizen_7.0_unified_hotfix accepted/tizen_8.0_unified accepted/tizen_unified tizen_6.5 tizen_7.0 tizen_7.0_hotfix tizen_8.0 accepted/tizen/6.5/unified/20211028.101249 accepted/tizen/7.0/unified/20221110.062330 accepted/tizen/7.0/unified/hotfix/20221116.105237 accepted/tizen/8.0/unified/20231005.093258 accepted/tizen/unified/20210713.090209 submit/tizen/20210713.031110 submit/tizen_6.5/20211028.162201 tizen_6.5.m2_release tizen_7.0_m2_release tizen_8.0_m2_release
Jaehyun Kim [Mon, 12 Jul 2021 09:24:18 +0000 (18:24 +0900)]
Change the package name for haltests

Packages with 'haltests' in their names are automatically downloaded
and executed by the automation tool.
But the haltests package for wifi-mesh is not for automated testing
so the package name must be changed.

Change-Id: I41db9d12197f090a8c04008ebc56c996d5cc0d97
Signed-off-by: Jaehyun Kim <jeik01.kim@samsung.com>
3 years agoReplace HAL interface with hal-api-wifi(via net-config) 53/252953/1 accepted/tizen/unified/20210210.130401 submit/tizen/20210209.010000
Jaehyun Kim [Wed, 3 Feb 2021 08:31:16 +0000 (17:31 +0900)]
Replace HAL interface with hal-api-wifi(via net-config)

Change-Id: I0dda3fe57ffbcf1a248537b87620eddd4d02d351
Signed-off-by: Jaehyun Kim <jeik01.kim@samsung.com>
4 years agoFix memory leak 45/228545/1 accepted/tizen_6.0_unified accepted/tizen_6.0_unified_hotfix tizen_6.0 tizen_6.0_hotfix accepted/tizen/6.0/unified/20201030.120647 accepted/tizen/6.0/unified/hotfix/20201103.051425 accepted/tizen/unified/20200603.150233 submit/tizen/20200406.044722 submit/tizen/20200406.074317 submit/tizen/20200529.030749 submit/tizen_6.0/20201029.205103 submit/tizen_6.0_hotfix/20201102.192503 submit/tizen_6.0_hotfix/20201103.114803 tizen_6.0.m2_release
INSUN PYO [Mon, 23 Mar 2020 23:43:24 +0000 (08:43 +0900)]
Fix memory leak

Change-Id: If5376d5e6d67060adfc50f0f67b784e5f0b2a820

4 years agoFix declaration-after-statement error for gcc9 25/221125/3 accepted/tizen/unified/20200102.220743 submit/tizen/20200102.133410
Jihoon Jung [Fri, 27 Dec 2019 17:28:22 +0000 (02:28 +0900)]
Fix declaration-after-statement error for gcc9

Change-Id: Id6ba9fdb2e8eb3dfa0df0ed992dbad66e4e91cb3
Signed-off-by: Jihoon Jung <jh8801.jung@samsung.com>
4 years agoRemove duplicate dependency with implicit dependencies at "Type=dbus" 91/212091/1 accepted/tizen_5.5_unified accepted/tizen_5.5_unified_mobile_hotfix accepted/tizen_5.5_unified_wearable_hotfix tizen_5.5 tizen_5.5_mobile_hotfix tizen_5.5_tv tizen_5.5_wearable_hotfix accepted/tizen/5.5/unified/20191031.024743 accepted/tizen/5.5/unified/mobile/hotfix/20201027.084607 accepted/tizen/5.5/unified/wearable/hotfix/20201027.115125 accepted/tizen/unified/20190816.112401 submit/tizen/20190814.070156 submit/tizen_5.5/20191031.000003 submit/tizen_5.5_mobile_hotfix/20201026.185103 submit/tizen_5.5_wearable_hotfix/20201026.184303 tizen_5.5.m2_release
INSUN PYO [Wed, 14 Aug 2019 07:00:57 +0000 (16:00 +0900)]
Remove duplicate dependency with implicit dependencies at "Type=dbus"

Refs: https://www.freedesktop.org/software/systemd/man/systemd.service.html
 - Services with Type=dbus set automatically acquire dependencies of type Requires= and After= on dbus.socket.

Change-Id: I0e7d0dc7c4fbbaf984c7a7136a4c83383477464c

4 years agoDelete meaningless configuration 16/209516/1 accepted/tizen/unified/20190724.130116 submit/tizen/20190724.054125 submit/tizen/20190724.080451
INSUN PYO [Mon, 8 Jul 2019 11:02:12 +0000 (20:02 +0900)]
Delete meaningless configuration

Change-Id: Ib88fc2ce6c9e9f5e79750ef2a05e45123b83c4b5

4 years agoOpenssl version up (1.1.1) 81/207881/1 accepted/tizen/unified/20190613.220320 submit/tizen/20190613.140154
saerome kim [Thu, 13 Jun 2019 11:24:28 +0000 (20:24 +0900)]
Openssl version up (1.1.1)

+BuildRequires: pkgconfig(libcrypto1.1) in spec file
+libcrypto1.1.1 in CMakeList.txt

Change-Id: I57158c14fa55a563ca9d0d342231c8398cbf2158
Signed-off-by: saerome kim <saerome.kim@samsung.com>
5 years agofix build error on building gcov mode 76/199376/1 accepted/tizen/unified/20190212.084036 submit/tizen/20190211.075327
Youngjae Shin [Mon, 11 Feb 2019 04:59:00 +0000 (13:59 +0900)]
fix build error on building gcov mode

Change-Id: Ifab674d16a3e24336e4dd4a130daf2c5c96df70e

5 years agoFixed build error due to dlog update. 45/196045/2 accepted/tizen/unified/20181221.125525 submit/tizen/20181221.051348
saerome kim [Fri, 21 Dec 2018 04:01:50 +0000 (13:01 +0900)]
Fixed build error due to dlog update.

Change-Id: I75b2495ab9747f1e642f0b51eb78ca924c8a9906
Signed-off-by: saerome kim <saerome.kim@samsung.com>
5 years agoFixed build error 37/195637/2 accepted/tizen/unified/20181217.142417 submit/tizen/20181217.051135 submit/tizen/20181217.065327
saerome.kim [Mon, 17 Dec 2018 03:39:00 +0000 (12:39 +0900)]
Fixed build error

- guint64 data type should be handled for each build machine type in
order to avoid build error.

Change-Id: Iede2da0a5c09c72db2e42dbba2638e97b9b1ef01
Signed-off-by: saerome.kim <saerome.kim@samsung.com>
5 years agoadd cap_net_bind_service capability 32/194432/1 accepted/tizen/unified/20181205.063340 submit/tizen/20181204.101028
saerome kim [Tue, 4 Dec 2018 09:54:53 +0000 (18:54 +0900)]
add cap_net_bind_service capability

- 'Permitted' capability can make a process can call
system-call without the process's inherited capabilties.
So, security team would like to remove 'Permitted' capabilty.

This change is to remove 'Permitted' capability from hostapd.
To make this, Caller (i.e., wmeshd) should have tue same capabilities as
hostapd. Therefore we set wmeshd's capabilties to match hostapd.

Change-Id: Ifa13538064b9adcb26761f4b164496f8d0027db6
Signed-off-by: saerome kim <saerome.kim@samsung.com>
5 years agoFixed security issues from SSMS 50/191450/5
saerome.kim [Wed, 17 Oct 2018 07:51:08 +0000 (16:51 +0900)]
Fixed security issues from SSMS

- 181016-0003: wmeshd, print 'passphrase' out.
- 181016-0004: Error during parsing SSID has '=' character.

Change-Id: I67509ae968aed6716f5ae3d286b1fcc0d7634ff3
Signed-off-by: saerome.kim <saerome.kim@samsung.com>
5 years agoFixed build error 33/190433/1 accepted/tizen/5.0/unified/20181102.015639 accepted/tizen/unified/20181002.093403 submit/tizen/20181002.043024 submit/tizen_5.0/20181101.000003
saerome.kim [Tue, 2 Oct 2018 04:25:30 +0000 (13:25 +0900)]
Fixed build error

Change-Id: Ie5a657a5e685fcc9ba8b3474882c6b72ad1f82c2
Signed-off-by: saerome.kim <saerome.kim@samsung.com>
5 years agoModified to store passphrase in key-manager. 30/190430/3 submit/tizen/20181002.040822
saerome.kim [Tue, 2 Oct 2018 02:06:36 +0000 (11:06 +0900)]
Modified to store passphrase in key-manager.

Change-Id: I6b4bed6acba66deafcfc5bf4083eb2dd80d50553
Signed-off-by: saerome.kim <saerome.kim@samsung.com>
5 years agodbus-policy : Simplified complex dbus config. rules. 41/190341/1 accepted/tizen/unified/20181001.150846 submit/tizen/20181001.075826
saerome.kim [Mon, 1 Oct 2018 06:21:40 +0000 (15:21 +0900)]
dbus-policy : Simplified complex dbus config. rules.

Change-Id: I365e42d6da8234024c188fbe79961f4933b6015f
Signed-off-by: saerome.kim <saerome.kim@samsung.com>
5 years agoRemove hostapd configuration file after starting SoftAp 86/189786/2 accepted/tizen/unified/20180921.042406 submit/tizen/20180920.120346
Nishant Chaprana [Thu, 20 Sep 2018 11:52:23 +0000 (17:22 +0530)]
Remove hostapd configuration file after starting SoftAp

Change-Id: I046024e09c99f25684717159496edeb0772ae2a9
Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
5 years agoCorrect file permissions of mesh_hostapd.conf 85/189785/1
Nishant Chaprana [Thu, 20 Sep 2018 11:38:34 +0000 (17:08 +0530)]
Correct file permissions of mesh_hostapd.conf

Change-Id: I4282ac275f149ab4640baf272220008fb98730f2
Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
5 years agoEnable privilege check 15/189515/1 accepted/tizen/unified/20180919.061636 submit/tizen/20180918.100437 submit/tizen/20180919.002804
saerome.kim [Tue, 18 Sep 2018 08:30:36 +0000 (17:30 +0900)]
Enable privilege check

Change-Id: Ibd48ad4f17420e7283ee469c0bc26f2c1f7575d7
Signed-off-by: saerome.kim <saerome.kim@samsung.com>
5 years agoCheck the feature in order to execute HAL accordance with the feature. 18/187118/2 accepted/tizen/unified/20180821.091019 submit/tizen/20180820.085416 submit/tizen/20180820.100957
saerome.kim [Mon, 20 Aug 2018 06:30:30 +0000 (15:30 +0900)]
Check the feature in order to execute HAL accordance with the feature.

Change-Id: I0b0fd70df08bcec0d8c574860a285b2be26f3870
Signed-off-by: saerome.kim <saerome.kim@samsung.com>
5 years agoChanged HAL test binary name to accordance with HAL test RPM package name. 00/187100/1
saerome.kim [Mon, 20 Aug 2018 02:43:27 +0000 (11:43 +0900)]
Changed HAL test binary name to accordance with HAL test RPM package name.

Change-Id: I785079fe8e99dc3e9e1928c43ef16406270e9e5a
Signed-off-by: saerome.kim <saerome.kim@samsung.com>
5 years agoMerge "Added Haltest for wifi-mesh-manager" into tizen accepted/tizen/unified/20180816.134720 submit/tizen/20180816.092117
saerome kim [Thu, 16 Aug 2018 05:01:25 +0000 (05:01 +0000)]
Merge "Added Haltest for wifi-mesh-manager" into tizen

5 years agoAdded Haltest for wifi-mesh-manager 55/186755/2
Abhishek Sansanwal [Tue, 14 Aug 2018 06:06:54 +0000 (11:36 +0530)]
Added Haltest for wifi-mesh-manager

Signed-off-by: Abhishek Sansanwal <abhishek.s94@samsung.com>
Change-Id: I2f4482531ea487e1145f361c35a42e7004c6abdf

5 years agoAdd a parameter to call dbus method create_mesh_network 89/186689/1
Abhishek Sansanwal [Mon, 13 Aug 2018 11:15:20 +0000 (16:45 +0530)]
Add a parameter to call dbus method create_mesh_network

Description: Additional parameter was added to the
dbus method "create_mesh_network" in the commit
48d7d1c3. This resulted in the dbus call failing.
Add this additional parameter while calling the
dbus method.

Signed-off-by: Abhishek Sansanwal <abhishek.s94@samsung.com>
Change-Id: Ie9feb592fd986d963e802c85e9e1f3d2bfd6dc46

6 years agoEnabled RRM neighbour reports (IEEE 802.11k) for softap 98/176198/1
Nishant Chaprana [Tue, 17 Apr 2018 08:50:31 +0000 (14:20 +0530)]
Enabled RRM neighbour reports (IEEE 802.11k) for softap

Change-Id: I9d4afaba613f341bdbaa81c0f161aaea493ea5f9
Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
6 years agoSet PMF using Wi-Fi Mesh CAPI input 62/175662/1 accepted/tizen/unified/20180413.073533 submit/tizen/20180412.075141
Nishant Chaprana [Fri, 6 Apr 2018 07:27:58 +0000 (12:57 +0530)]
Set PMF using Wi-Fi Mesh CAPI input

Change-Id: I4d72bb6aac256e85600840c772bcbf1c654c822c
Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
6 years agoAdd privilege to dbus conf file 89/174889/1
saerome.kim [Thu, 5 Apr 2018 01:33:39 +0000 (10:33 +0900)]
Add privilege to dbus conf file

Change-Id: I49860a47e7016893aace225d20f089adb33a4b80
Signed-off-by: saerome.kim <saerome.kim@samsung.com>
6 years agofix svace issue 84/173084/2 accepted/tizen/unified/20180320.065829 submit/tizen/20180320.010141
saerome.kim [Mon, 19 Mar 2018 11:29:04 +0000 (20:29 +0900)]
fix svace issue

- WID 3137790, 313819, 314741, 315855

Change-Id: I93e058c6beaf5479edf3f33dfa86e38f042d480d
Signed-off-by: saerome.kim <saerome.kim@samsung.com>
6 years agoremove gtest & gcov macros in spec file
saerome.kim [Mon, 26 Feb 2018 07:25:30 +0000 (16:25 +0900)]
remove gtest & gcov macros in spec file

Change-Id: I767da81275282f8b1a697f39efdd2de78dc05ab9
Signed-off-by: saerome.kim <saerome.kim@samsung.com>
6 years agoAdded initial code for gtest 47/170247/9
Abhishek Sansanwal [Thu, 15 Feb 2018 09:15:39 +0000 (14:45 +0530)]
Added initial code for gtest

- Without Wi-Fi Mesh feature
 Overall coverage rate:
 lines......: 80.5% (1213 of 1506 lines)
 functions..: 84.0% (121 of 144 functions)

- Without Wi-Fi Mesh feature but without Wi-Fi chip
 Overall coverage rate:
 lines......: 85.6% (1327 of 1551 lines)
 functions..: 91.1% (133 of 146 functions)

- With Wi-Fi Mesh feature and without peer nodes
 Overall coverage rate:
 lines......: 94.9% (1472 of 1551 lines)
 functions..: 95.9% (140 of 146 functions)

- With Wi-Fi Mesh feature and with 1 more peer nodes
 Overall coverage rate:
 lines......: 97.1% (1506 of 1551 lines)
 functions..: 98.6% (144 of 146 functions)

Change-Id: I17efc29c1933a015b418b7cb47b5afd3ad3ba431
Signed-off-by: Abhishek Sansanwal <abhishek.s94@samsung.com>
Signed-off-by: saerome.kim <saerome.kim@samsung.com>
Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
Signed-off-by: Kshitiz <kshitiz.b@samsung.com>
6 years agoBackout commit 46ff72c744b643df25898d10400f778f24897a74 86/169686/1
saerome.kim [Thu, 8 Feb 2018 08:14:16 +0000 (17:14 +0900)]
Backout commit 46ff72c744b643df25898d10400f778f24897a74

Change-Id: I113ce488b6f9d156b1ed8160501760ce36594e13
Signed-off-by: saerome.kim <saerome.kim@samsung.com>
6 years agoTEST: change sysfs permission as 'network_fw'
saerome.kim [Thu, 8 Feb 2018 07:55:43 +0000 (16:55 +0900)]
TEST: change sysfs permission as 'network_fw'

Change-Id: I901391ecaebadf0651bd8db19483bdbaf0018c6d
Signed-off-by: saerome.kim <saerome.kim@samsung.com>
6 years agoFix resource leak (Prevent) 93/164593/1 accepted/tizen/unified/20171220.064744 submit/tizen/20171220.014757
saerome.kim [Wed, 20 Dec 2017 01:37:43 +0000 (10:37 +0900)]
Fix resource leak (Prevent)
- CID 72981, 72962

Change-Id: I723b18645ed39357071890315ba93afbc51ee886
Signed-off-by: saerome.kim <saerome.kim@samsung.com>
6 years agoFix resource leak (prevent) 84/164584/1
saerome.kim [Wed, 20 Dec 2017 00:56:12 +0000 (09:56 +0900)]
Fix resource leak (prevent)
- CID 72905

Change-Id: Ie1ec8a882efa75f2cbffb8eab7927f7e4d239997
Signed-off-by: saerome.kim <saerome.kim@samsung.com>
6 years agoFix resurce leak problem (Prevent) 80/164580/2
saerome.kim [Wed, 20 Dec 2017 00:36:31 +0000 (09:36 +0900)]
Fix resurce leak problem (Prevent)
- CID 72897

Change-Id: I8b67801d3b04e03179cc6c26eda892a656dc4aa4
Signed-off-by: saerome.kim <saerome.kim@samsung.com>
6 years agoFix Null point dereferences (Prevent) 95/164495/2
saerome.kim [Tue, 19 Dec 2017 09:07:45 +0000 (18:07 +0900)]
Fix Null point dereferences (Prevent)
- CID 72904

Change-Id: Ib9a5140de2f0280577c5e444a529dda1b3db3ab6
Signed-off-by: saerome.kim <saerome.kim@samsung.com>
6 years agoFix reource leak problem (Prevent) 78/164478/1
saerome.kim [Tue, 19 Dec 2017 07:58:21 +0000 (16:58 +0900)]
Fix reource leak problem (Prevent)
- CID 73163

Change-Id: Ia985e6ff59373c9b14fc168af2e37c0b5057d9b5
Signed-off-by: saerome.kim <saerome.kim@samsung.com>
6 years agoFix illegal memory access with strncpy in wmesh_bridge_set_stp() 24/164424/2
Taesoo Jun [Tue, 19 Dec 2017 05:22:44 +0000 (14:22 +0900)]
Fix illegal memory access with strncpy in wmesh_bridge_set_stp()

Change-Id: Ibff94e2325a8b48341a079d9b3e20cf2d63dbfe9

6 years agoFix memory leak in wmesh_gdbus_create_network() 16/164416/2
Taesoo Jun [Tue, 19 Dec 2017 05:06:11 +0000 (14:06 +0900)]
Fix memory leak in wmesh_gdbus_create_network()

Change-Id: I3a6cafa6876df9af345830669dce00b5884b529c
Signed-off-by: Taesoo Jun <steve.jun@samsung.com>
6 years agoRemove %caps in spec file 29/163929/1 accepted/tizen/unified/20171214.154148 submit/tizen/20171214.064209
saerome.kim [Thu, 14 Dec 2017 06:31:36 +0000 (15:31 +0900)]
Remove %caps in spec file

Due to security policy, it is not allowed to declare %caps in spec.
file.

Change-Id: I8a3fcbbdabeffb5bb6026b06f961af2379a6d8da
Signed-off-by: saerome.kim <saerome.kim@samsung.com>
6 years agowmesh-manager: Define missing station info enums 08/162808/1 accepted/tizen/unified/20171207.124736 submit/tizen/20171207.065706
Saurav Babu [Tue, 5 Dec 2017 10:39:52 +0000 (16:09 +0530)]
wmesh-manager: Define missing station info enums

Change-Id: I6fa51b5d7ada92cfc25df7bb2e0224bfdf025e7f
Signed-off-by: Saurav Babu <saurav.babu@samsung.com>
6 years agowmesh-manager: Send authenticated info in get_station_info 07/162807/1
Saurav Babu [Tue, 5 Dec 2017 10:38:06 +0000 (16:08 +0530)]
wmesh-manager: Send authenticated info in get_station_info

Change-Id: I96d64d1a42dca95d4f6e8597698004f5fbfedde3
Signed-off-by: Saurav Babu <saurav.babu@samsung.com>
6 years agowmesh-manager: Add support to get softAP station info 92/162592/1
Saurav Babu [Mon, 4 Dec 2017 09:50:20 +0000 (15:20 +0530)]
wmesh-manager: Add support to get softAP station info

Change-Id: I5f80e22db61a55a9bacd83a472d478ce5b536001
Signed-off-by: Saurav Babu <saurav.babu@samsung.com>
6 years agowmesh-manager: Provide station type in sta_joined/sta_left signal 64/162164/1
Saurav Babu [Wed, 29 Nov 2017 09:48:37 +0000 (15:18 +0530)]
wmesh-manager: Provide station type in sta_joined/sta_left signal

New Station joined can either be a Mesh Point or a station connected on
SoftAP interface. This patch provides station type also along with
sta_joined/sta_left signal so that application can identify what type of
station joined/left.

Change-Id: Ib8a2a97e534c9719ec86d190db87eb8f11537333
Signed-off-by: Saurav Babu <saurav.babu@samsung.com>
6 years agoMake wmeshd can access sysfs without checking permission 53/160753/5 accepted/tizen/unified/20171127.152005 submit/tizen/20171126.233447
Saurav Babu [Fri, 17 Nov 2017 15:31:43 +0000 (21:01 +0530)]
Make wmeshd can access sysfs without checking permission

wmeshd creates socket and connects to hostapd, it fails when it is not
root daemon. This patch makes wmeshd can bypass permission check.

Change-Id: I3737b076bc746504102415cb4fd47f35311bc07e
Signed-off-by: Saurav Babu <saurav.babu@samsung.com>
6 years agoFix an error in assigning NL80211_STA_INFO_PLID data to station_info->plid 11/161411/2 accepted/tizen/unified/20171124.064639 submit/tizen/20171123.112104
saerome.kim [Thu, 23 Nov 2017 08:27:34 +0000 (17:27 +0900)]
Fix an error in assigning NL80211_STA_INFO_PLID data to station_info->plid

Change-Id: I492f9d9aaa632456a109417b50755dc1f48a8c5d
Signed-off-by: saerome.kim <saerome.kim@samsung.com>
6 years agoReturn if it fails to get softap configurations 26/160326/1 accepted/tizen/unified/20171116.060641 submit/tizen/20171115.105732
Saurav Babu [Wed, 15 Nov 2017 10:23:50 +0000 (15:53 +0530)]
Return if it fails to get softap configurations

When we fail to get softap configurations then ssid is still
uninitialized and printing it leads to crash

Change-Id: If37d271dcc518fd6d8bc3e0a1e55cd271e2f9c17
Signed-off-by: Saurav Babu <saurav.babu@samsung.com>
6 years agoRemove 'warning: user network_fw does not exist - using root' warning 93/160193/1 accepted/tizen/unified/20171115.174029 submit/tizen/20171115.024519
saerome kim [Wed, 15 Nov 2017 01:11:42 +0000 (10:11 +0900)]
Remove 'warning: user network_fw does not exist - using root' warning

Change-Id: I775b8a511e103fe093aeb395c182f68f05b6d786
Signed-off-by: saerome kim <saerome.kim@samsung.com>
6 years agoUse proxy default timeout for g_dbus_proxy_call_sync 93/159793/1 accepted/tizen/unified/20171114.062830 submit/tizen/20171113.100044
Saurav Babu [Mon, 13 Nov 2017 05:15:22 +0000 (10:45 +0530)]
Use proxy default timeout for g_dbus_proxy_call_sync

Change-Id: I225b7781744096ea3380ac03ad783baf3fed7081
Signed-off-by: Saurav Babu <saurav.babu@samsung.com>
6 years agoUse MAC address in small letters 86/159786/1
Saurav Babu [Mon, 13 Nov 2017 04:58:14 +0000 (10:28 +0530)]
Use MAC address in small letters

connmand uses MAC address in small letters so wmesh manager should also
use it in small letters for synchronization

Change-Id: Ie8caa4470f34c691430a5e7df7084a5e34514e2d
Signed-off-by: Saurav Babu <saurav.babu@samsung.com>
6 years agoFixed resource leak in __read_hostapd_config() 62/158462/1 accepted/tizen/unified/20171102.061546 submit/tizen/20171101.073548
Nishant Chaprana [Wed, 1 Nov 2017 06:59:09 +0000 (12:29 +0530)]
Fixed resource leak in __read_hostapd_config()

Change-Id: Ifee5845e3dbed698087b8339ac419f1301d45a11
Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
6 years agoReplace LOGE with WMESH_LOGE Macro 75/154275/1
Maneesh Jain [Tue, 10 Oct 2017 03:25:49 +0000 (08:55 +0530)]
Replace LOGE with WMESH_LOGE Macro

Change-Id: Ie984e48b28091eaa47f5b1cb51e811407e617019
Signed-off-by: Maneesh Jain <maneesh.jain@samsung.com>
6 years agoFixed issue where station_joined and station_left event was not notified 47/148047/1 accepted/tizen/unified/20170925.071400 submit/tizen/20170922.085427
Saurav Babu [Wed, 6 Sep 2017 11:04:53 +0000 (16:34 +0530)]
Fixed issue where station_joined and station_left event was not notified

Change-Id: I855b2fa8254a728f5227f6b69b7aefbff865eb2f
Signed-off-by: Saurav Babu <saurav.babu@samsung.com>
6 years agoRemove mesh station when it becomes inactive 09/148009/1
Saurav Babu [Wed, 6 Sep 2017 09:01:07 +0000 (14:31 +0530)]
Remove mesh station when it becomes inactive

This patch removes current logic to send NL80211_CMD_DEL_STATION to
kernel from wifi-mesh-manager. Now wifi-mesh-manager will call connman's
method MeshRemovePeer to remove inactive peer

Change-Id: I2b2a6ffc1f19e45a4e255b9c7604b9f68a550d07
Signed-off-by: Saurav Babu <saurav.babu@samsung.com>
6 years agoEnable ethernet interface after mesh interface is removed 21/146621/1 submit/tizen/20170901.011339
Saurav Babu [Tue, 29 Aug 2017 13:34:06 +0000 (19:04 +0530)]
Enable ethernet interface after mesh interface is removed

Ethernet is disabled by connmand when mesh interface is removed and
ethernet interface was bridged to it. This patch tries to enable
ethernet interface again when mesh interface is removed.

Change-Id: I83cb59f7775f88c79430758b937e0c356476a418
Signed-off-by: Saurav Babu <saurav.babu@samsung.com>
6 years agoFixed crash when station is removed due to inactive time 38/146538/2 accepted/tizen/unified/20170829.140535 submit/tizen/20170829.101337 submit/tizen_4.0/20170830.011812
Saurav Babu [Tue, 29 Aug 2017 08:50:39 +0000 (14:20 +0530)]
Fixed crash when station is removed due to inactive time

When station is removed due to inactive time then it is removed from
list named "iter" so its corresponding data in "sta_list" becomes
dangling pointer which results in crash when "service->station_list" is
freed on calling g_list_free_full()

Change-Id: Id4d02bf576a2d67e746e3a42cd11ae2665397fc1
Signed-off-by: Saurav Babu <saurav.babu@samsung.com>
6 years agoFix issue that not tunring on softap 21/146521/1
saerome.kim [Tue, 29 Aug 2017 07:47:04 +0000 (16:47 +0900)]
Fix issue that not tunring on softap
- Recently hostapd path has been changed from /usr/sbin/hostapd to /usr/bin/hostapd
  So, we also change hostapd path
- Make wmeshd use /opt/usr/data/network instead of /opt/var/lib/wmesh

Change-Id: Iab7229410d7aa7cae13ce4711651f6d4ba478a67
Signed-off-by: saerome.kim <saerome.kim@samsung.com>
6 years agoAdded new dbus to check is softap enabled 58/145458/1 accepted/tizen/unified/20170829.053204 submit/tizen/20170828.230131
saerome kim [Tue, 22 Aug 2017 10:14:01 +0000 (19:14 +0900)]
Added new dbus to check is softap enabled

Change-Id: Ia00b1aab5d4d46012372f2cbe53eb67fedfa8a59
Signed-off-by: Saurav Babu <saurav.babu@samsung.com>
6 years agoAdd new dbus method to get SoftAP Config options 55/145455/1
saerome kim [Tue, 22 Aug 2017 10:07:34 +0000 (19:07 +0900)]
Add new dbus method to get SoftAP Config options

This patch reads softAP config options from hostapd config file when
dbus method to get softAP option is invoked

Change-Id: Iaca0ae4be6ae197ed3d450518b0b3f894ef5c868
Signed-off-by: Saurav Babu <saurav.babu@samsung.com>
6 years agodded support to get IPv4 details from connmand 54/145454/1
saerome kim [Tue, 22 Aug 2017 10:01:19 +0000 (19:01 +0900)]
dded support to get IPv4 details from connmand

Change-Id: I5468e0a00981ecb88ad180d11082a486fa3addad
Signed-off-by: Saurav Babu <saurav.babu@samsung.com>
6 years agoAdded support to check if mesh is enabled 48/145448/1
saerome kim [Tue, 22 Aug 2017 09:51:00 +0000 (18:51 +0900)]
Added support to check if mesh is enabled

Change-Id: I78e3c15c655de9eb793f778be76b560231720176
Signed-off-by: Saurav Babu <saurav.babu@samsung.com>
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'