Nishant Chaprana [Wed, 16 Sep 2020 17:41:10 +0000 (23:11 +0530)]
Maintain list for active wifi interfaces
Change-Id: I6a0f60f54f2fcfa1ef641fecea32334a522ebe06
Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
hyunuk.tak [Thu, 10 Sep 2020 07:54:04 +0000 (16:54 +0900)]
Crear default connection info
Change-Id: I8c98a7487ff4bf53c40b0ce80d5fa44cef1f8cad
hyunuk.tak [Fri, 4 Sep 2020 06:57:33 +0000 (15:57 +0900)]
Update rssi from strength signal of connman
Change-Id: I6001209db19f69a5af4000e947d879d20a8b684f
Signed-off-by: hyunuk.tak <hyunuk.tak@samsung.com>
cheoleun moon [Fri, 4 Sep 2020 05:37:51 +0000 (05:37 +0000)]
Merge "Change the privilege requirement of AddRoute/RemoveRoute dbus method" into tizen
seonah moon [Fri, 4 Sep 2020 01:31:17 +0000 (01:31 +0000)]
Revert "Add debug logs"
This reverts commit
8cc6dac36d27484d1047cb9f6ee5b3d7f44e8a17.
Change-Id: I37c3a293d15824727e1b55c24e1840044cfbd1fb
Cheoleun Moon [Thu, 3 Sep 2020 02:36:52 +0000 (11:36 +0900)]
Change the privilege requirement of AddRoute/RemoveRoute dbus method
Change-Id: I44322081108614fc1994ae662d5ae9ee92244620
Seonah Moon [Thu, 3 Sep 2020 01:29:57 +0000 (10:29 +0900)]
Add debug logs
Change-Id: Icb4b5375042d577bac10cf59c2923e6febf2afa0
Jaehyun Kim [Wed, 2 Sep 2020 11:05:44 +0000 (20:05 +0900)]
Remove unreachable code
Change-Id: I32cad4f9a6df7d29d30524e7f8221c618e2437d2
Signed-off-by: Jaehyun Kim <jeik01.kim@samsung.com>
Jaehyun Kim [Fri, 28 Aug 2020 12:54:06 +0000 (12:54 +0000)]
Merge "Add missing interface name parameter in Firmware Start method call" into tizen
Jaehyun Kim [Fri, 28 Aug 2020 11:15:50 +0000 (20:15 +0900)]
Fix resource leak and double free
Change-Id: I1dd7fe019e60c9bf552e7cce52b3b4deaa04f116
Signed-off-by: Jaehyun Kim <jeik01.kim@samsung.com>
Nishant Chaprana [Fri, 28 Aug 2020 10:43:15 +0000 (16:13 +0530)]
Add missing interface name parameter in Firmware Start method call
Change-Id: Ic605fb9c0d5411e695318216618795a535099bf7
Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
hyunuk.tak [Thu, 27 Aug 2020 07:38:57 +0000 (16:38 +0900)]
Add multi interfaces function
Change-Id: I1c7a200a1c627803f10c30f85066e921f10835d3
Signed-off-by: hyunuk.tak <hyunuk.tak@samsung.com>
hyunuk.tak [Tue, 25 Aug 2020 06:05:09 +0000 (15:05 +0900)]
Fix resource leak
Change-Id: Ib78bc6744b347997c0d0b92143c8ac05fc0e2dbb
Signed-off-by: hyunuk.tak <hyunuk.tak@samsung.com>
Jaehyun Kim [Mon, 27 Jul 2020 07:53:24 +0000 (16:53 +0900)]
Block background scan while Doze Mode is set
Change-Id: Ia21041a6b5ee46a532f6d302bfa2cc0921a46e53
Signed-off-by: Jaehyun Kim <jeik01.kim@samsung.com>
Rahul Jain [Sat, 11 Jul 2020 05:16:13 +0000 (10:46 +0530)]
Minor Fix: ip-conflict: set sd to NULL after g_free()
Change-Id: If24218a86e7cad6b317dcc4fd51ee759b4af885f
Rahul Jain [Sat, 11 Jul 2020 05:01:00 +0000 (10:31 +0530)]
Remove incorrect code
Change-Id: I6c4dfe31cf768c8eddab1388140f409115a0537b
cheoleun moon [Fri, 26 Jun 2020 04:34:13 +0000 (04:34 +0000)]
Merge "Free route_dest when breaking out of g_variant_iter_loop" into tizen
Cheoleun Moon [Fri, 26 Jun 2020 01:33:24 +0000 (10:33 +0900)]
Free route_dest when breaking out of g_variant_iter_loop
Change-Id: Ic71d1d9877e998bad9e865473ef6d38bca68b211
Signed-off-by: Cheoleun Moon <chleun.moon@samsung.com>
Jaehyun Kim [Wed, 24 Jun 2020 06:38:18 +0000 (15:38 +0900)]
Change the service file path for 64bit build
Change-Id: I22bafa8f5442c5ac59ee1644af1534c67e048562
Signed-off-by: Jaehyun Kim <jeik01.kim@samsung.com>
cheoleun moon [Mon, 8 Jun 2020 07:31:20 +0000 (07:31 +0000)]
Merge "Sorting netlink scan result by signal strength" into tizen
Cheoleun Moon [Tue, 2 Jun 2020 02:19:46 +0000 (11:19 +0900)]
Print IFFLAGS before interface up/down
Change-Id: I008a96e2603d3aff4c4546b1434a37b0967f53de
Signed-off-by: Cheoleun Moon <chleun.moon@samsung.com>
Cheoleun Moon [Tue, 19 May 2020 12:03:51 +0000 (21:03 +0900)]
Print errno when socket and ioctl fail
Change-Id: I29f6264dd8db405405494f360c9543a33d342bb9
Signed-off-by: Cheoleun Moon <chleun.moon@samsung.com>
Cheoleun Moon [Thu, 28 May 2020 08:23:27 +0000 (17:23 +0900)]
Free netlink socket
Change-Id: I1995731fb132fa75161a84a0eb8c14fc1b68de24
Signed-off-by: Cheoleun Moon <chleun.moon@samsung.com>
Seonah Moon [Thu, 28 May 2020 08:13:17 +0000 (17:13 +0900)]
Sorting netlink scan result by signal strength
Change-Id: I616fe6902a9ab906d2ef9b9fd052d8b19de84a09
Jeon YoungHo [Thu, 7 May 2020 13:27:19 +0000 (22:27 +0900)]
Multiple vulnerabilities in handle-vpn-block-networks handler of vpnsvc D-Bus service
Change-Id: Iff6033ce86a124f70d9062a6f00928e305763c02
Signed-off-by: Jeon YoungHo <ykernel.jeon@samsung.com>
Yu [Sun, 17 May 2020 23:02:29 +0000 (08:02 +0900)]
Remove debug log for field value
Change-Id: I8ea561f0465998c09311cd1f79fd1e3a3d592414
Signed-off-by: Yu jiung <jiung.yu@samsung.com>
hyunuk.tak [Wed, 6 May 2020 09:58:10 +0000 (18:58 +0900)]
Add mode to get technology state
Change-Id: I63cc9312452e7aafa679f521f504de682fa196de
Signed-off-by: hyunuk.tak <hyunuk.tak@samsung.com>
Nishant Chaprana [Mon, 4 May 2020 14:59:44 +0000 (20:29 +0530)]
Fix NULL pointer dereference while closing file pointer
Change-Id: I4ae4912a3ee85798ff2a4aebd5dcfe8508bc22ee
Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
Niraj Kumar Goit [Sat, 2 May 2020 18:38:41 +0000 (00:08 +0530)]
[net-config] Added support to set eapol property in connman.
Change-Id: I4ce867d457b60545137d8273a19defd2a22c3a37
Signed-off-by: Niraj Kumar Goit <niraj.g@samsung.com>
Niraj Kumar Goit [Thu, 16 Apr 2020 07:22:29 +0000 (12:52 +0530)]
[net-config] Added support for EAPoL connection.
Change-Id: Ic18901757f7ea1d205804e43641c5d36e7d83704
Signed-off-by: Niraj Kumar Goit <niraj.g@samsung.com>
Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
cheoleun moon [Mon, 27 Apr 2020 08:20:41 +0000 (08:20 +0000)]
Merge changes I12d92fec,I8db32f58 into tizen
* changes:
Use separate functions to improve readability
Try again to scan if nl_recvmsgs returns NLE_AGAIN and there is no error
hyunuk tak [Fri, 24 Apr 2020 08:36:06 +0000 (08:36 +0000)]
Merge "Fix memory leak" into tizen
Cheoleun Moon [Thu, 23 Apr 2020 04:11:54 +0000 (13:11 +0900)]
Use separate functions to improve readability
Change-Id: I12d92fecf920dbdec452b83ce8cf63c590aa12aa
Signed-off-by: Cheoleun Moon <chleun.moon@samsung.com>
Cheoleun Moon [Wed, 22 Apr 2020 11:48:41 +0000 (20:48 +0900)]
Try again to scan if nl_recvmsgs returns NLE_AGAIN and there is no error
Change-Id: I8db32f5847b578c5d93fbcb609361da0c0e6a299
Signed-off-by: Cheoleun Moon <chleun.moon@samsung.com>
Cheoleun Moon [Wed, 22 Apr 2020 07:31:41 +0000 (16:31 +0900)]
Add dbus conf for NetlinkScan
Change-Id: I5f7f924a28ab5f25149561865453f268fe36970a
Signed-off-by: Cheoleun Moon <chleun.moon@samsung.com>
INSUN PYO [Wed, 22 Apr 2020 06:02:40 +0000 (15:02 +0900)]
Fix memory leak
Change-Id: I4c1e6ba4ea1a315ab12afbed189bce559c11b1f1
Cheoleun Moon [Wed, 22 Apr 2020 05:05:35 +0000 (14:05 +0900)]
Check NULL before use
Change-Id: Id2ee59375d74c3f1a6314726fa954957f44eafa1
Signed-off-by: Cheoleun Moon <chleun.moon@samsung.com>
Seonah Moon [Wed, 22 Apr 2020 01:42:56 +0000 (10:42 +0900)]
wifi-netlink-scan: handle EAGAIN
Change-Id: Ia4549e274ae5a3f93c01927d5b5e3bde992c2a2e
Jaehyun Kim [Mon, 17 Feb 2020 12:06:15 +0000 (21:06 +0900)]
Fix branch past initialization issue
Change-Id: I250d6815e939b0e7d33b6a98efc1b3157135fa10
Signed-off-by: Jaehyun Kim <jeik01.kim@samsung.com>
Nishant Chaprana [Thu, 6 Feb 2020 08:29:29 +0000 (13:59 +0530)]
Replace deprecated APIs of Glib v2.62.3 with suggested GLib APIs
Below Glib API calls are replaced:-
1. GTimeVal => GDateTime
2. g_get_current_time => g_get_real_time
3. g_time_val_to_iso8601 => g_date_time_format_iso8601
Change-Id: I0d7354d1c3cb06901135843e91745d15f3eb2b33
Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
Semun Lee [Thu, 26 Dec 2019 05:05:42 +0000 (14:05 +0900)]
Fix build warnings for gcc 9
- remove #include <sys/sysctl.h>
- fix wrong log format
Change-Id: I5a5ecc22b4b579810755e3a9891a05444a6c5f41
Signed-off-by: Semun Lee <semun.lee@samsung.com>
hyunuk.tak [Mon, 18 Nov 2019 06:55:41 +0000 (15:55 +0900)]
Modified to get current time to match stc
Change-Id: I43e3ba0161854dfb881ffbb587dc8f20d891fd45
Signed-off-by: hyunuk.tak <hyunuk.tak@samsung.com>
Jaehyun Kim [Wed, 13 Nov 2019 05:45:23 +0000 (14:45 +0900)]
Signal strength criteria for 5GHz changed
Change-Id: Id34844422a54797e617f619a0c804e19778adadc
Signed-off-by: Jaehyun Kim <jeik01.kim@samsung.com>
Jaehyun Kim [Wed, 6 Nov 2019 10:51:27 +0000 (10:51 +0000)]
Merge "[net-config] Manage the MAX saved wireless profiles." into tizen
hyunuk.tak [Thu, 17 Oct 2019 07:05:42 +0000 (16:05 +0900)]
Add some dbus rule to default group into conf file
Change-Id: I88e56d640fbe60d8ddc1ab42c4b74bcc0cdeed1b
Signed-off-by: hyunuk.tak <hyunuk.tak@samsung.com>
prashanth kumar [Tue, 15 Oct 2019 09:12:18 +0000 (14:42 +0530)]
[net-config] Manage the MAX saved wireless profiles.
If the number of saved profiles exceed 200, remove the
oldest profile in the list.
Change-Id: Ic0a2fc850f13f44f3191efe9bb8e2aa7f13cd911
Signed-off-by: prashanth kumar <prasadam.p@samsung.com>
Jaehyun Kim [Mon, 14 Oct 2019 09:50:03 +0000 (09:50 +0000)]
Merge "Add battery monitor framework" into tizen
hyunuk.tak [Wed, 14 Aug 2019 08:36:46 +0000 (17:36 +0900)]
Add battery monitor framework
Change-Id: Iaccffa57e6ce5d0fb8ce8112452c6893fcd232f8
Signed-off-by: hyunuk.tak <hyunuk.tak@samsung.com>
Jaehyun Kim [Mon, 14 Oct 2019 07:24:21 +0000 (07:24 +0000)]
Merge "Refactoring sd->timer_id for ip-conflict-detect code" into tizen
Jaehyun Kim [Mon, 14 Oct 2019 07:22:37 +0000 (07:22 +0000)]
Merge "Using updated clatd's Dbus interface and Path values" into tizen
Jihoon Jung [Mon, 14 Oct 2019 14:49:14 +0000 (23:49 +0900)]
Fix Coverity issues
- Resource leak : 1087883, 1087991, 1087992
Change-Id: Ic3191b2c5aac190d48537cc6b03ccbb5a33f2158
Signed-off-by: Jihoon Jung <jh8801.jung@samsung.com>
INSUN PYO [Mon, 7 Oct 2019 06:11:16 +0000 (15:11 +0900)]
Refactoring sd->timer_id for ip-conflict-detect code
0 0xb6ab5634 in raise () from /lib/libpthread.so.0
1 0xb6c23774 in g_logv (log_domain=0xb6c23774 <g_logv+772> "\300\377\377\352", log_level=log_level@entry=G_LOG_LEVEL_CRITICAL, format=format@entry=0x5 <error: Cannot access memory at address 0x5>, args=..., args@entry=...) at gmessages.c:1357
2 0xb6c23824 in g_log (log_domain=<optimized out>, log_level=log_level@entry=G_LOG_LEVEL_CRITICAL, format=0xb6c73a7c "%s: assertion '%s' failed") at gmessages.c:1398
3 0xb6c23dc0 in g_return_if_fail_warning (log_domain=<optimized out>, pretty_function=<optimized out>, expression=<optimized out>) at gmessages.c:2688
4 0xb6c1b374 in g_source_remove (tag=0) at gmain.c:2351
5 0xb6f46058 in send_arp (data=0xb79817d0) at /usr/src/debug/net-config-1.1.146/src/ip-conflict-detect.c:363
6 0xb6f46468 in start_ip_conflict_mon () at /usr/src/debug/net-config-1.1.146/src/ip-conflict-detect.c:408
7 0xb6f3c34c in _service_signal_cb (conn=<optimized out>, name=<optimized out>, path=<optimized out>, interface=<optimized out>, sig=0xb5231540 "", param=0xb5236298, user_data=0x0) at /usr/src/debug/net-config-1.1.146/src/signal-handler.c:447
8 0xb6dec980 in emit_signal_instance_in_idle_cb (data=0xb52074c8) at gdbusconnection.c:4660
9 0xb6c1c654 in g_main_dispatch (context=0xb7960d70) at gmain.c:3234
10 g_main_context_dispatch (context=context@entry=0xb7960d70) at gmain.c:3887
11 0xb6c1c9e4 in g_main_context_iterate (context=0xb7960d70, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at gmain.c:3960
12 0xb6c1cd44 in g_main_loop_run (loop=0xb795e3c0) at gmain.c:4156
13 0xb6f21a20 in main (argc=<optimized out>, argv=<optimized out>) at /usr/src/debug/net-config-1.1.146/src/main.c:152
Change-Id: I59d0eb7dc0b1e4ce5eed8795c2d25a8ca8c31ad0
Yu [Tue, 24 Sep 2019 06:46:17 +0000 (15:46 +0900)]
Add logic for Device Provisioning Protocol(DPP)
Description : Currently, there's problem that
DPP operation is working with only P2P Wi-Fi interface.
Change-Id: I7e7285a453ecbf1f5b352c97962f752e2482ef2f
Signed-off-by: Yu jiung <jiung.yu@samsung.com>
Nishant Chaprana [Tue, 24 Sep 2019 09:04:15 +0000 (14:34 +0530)]
Using updated clatd's Dbus interface and Path values
Change-Id: I6c5228f6e09d261c9cf624f97a4d484267a29edd
Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
Niraj Kumar Goit [Wed, 21 Aug 2019 11:04:24 +0000 (16:34 +0530)]
Added NameOwnerChanged signal handling for clatd service.
If cellular profile is connected and clatd is terminated unexpectedly,
restart clat service.
Change-Id: Ic9a90db97fe6a8d6cefc52145496e55eb3394c17
Signed-off-by: Niraj Kumar Goit <niraj.g@samsung.com>
Niraj Kumar Goit [Mon, 19 Aug 2019 09:34:19 +0000 (15:04 +0530)]
Get cellular IPv6 profile and then enable clatd.
Change-Id: I9daac7bd93b6c796657faebd5a87abba99b8a29f
Signed-off-by: Niraj Kumar Goit <niraj.g@samsung.com>
Jaehyun Kim [Fri, 16 Aug 2019 13:13:16 +0000 (22:13 +0900)]
Added support to enable clatd service
Change-Id: I943f9e5be057a1dc9959f7a36e00397777b6bd45
Signed-off-by: Jaehyun Kim <jeik01.kim@samsung.com>
Jaehyun Kim [Fri, 16 Aug 2019 12:51:49 +0000 (12:51 +0000)]
Merge "Added parsing of netlink scan results for WEP encryption." into tizen
Jaehyun Kim [Mon, 5 Aug 2019 11:28:22 +0000 (11:28 +0000)]
Merge "Delete meaningless configuration" into tizen
Jaehyun Kim [Thu, 11 Jul 2019 08:50:22 +0000 (08:50 +0000)]
Merge "Remove unused features" into tizen
INSUN PYO [Mon, 8 Jul 2019 10:25:56 +0000 (19:25 +0900)]
Delete meaningless configuration
Change-Id: I0a8a0107f697e88d3ccd35f620dbd58fd4bacc60
Cheoleun Moon [Thu, 4 Jul 2019 07:53:09 +0000 (16:53 +0900)]
Remove dependency on gmock in main rpm
Change-Id: I7a7aaa7470819e743781492d5b98c7369e4a7a01
Signed-off-by: Cheoleun Moon <chleun.moon@samsung.com>
INSUN PYO [Tue, 2 Jul 2019 07:44:35 +0000 (16:44 +0900)]
Remove unused features
Change-Id: If803e311550571f26a8e55c521b720b887557947
hyunuktak [Mon, 24 Jun 2019 01:36:50 +0000 (10:36 +0900)]
Add to get passphrase string from config
Change-Id: Idb2a16d46551edf765d8fc8a100def5ef5eb0268
Signed-off-by: hyunuktak <hyunuk.tak@samsung.com>
Jaehyun Kim [Tue, 18 Jun 2019 11:13:27 +0000 (20:13 +0900)]
Initialized variable "iv_buf" and "aad_buf" to handle key-manager failure case
Change-Id: Ia7d1e123accaeb367fff7cb2aba577ecc46a8ebd
Signed-off-by: Jaehyun Kim <jeik01.kim@samsung.com>
Hyotaek Shim [Wed, 12 Jun 2019 04:45:45 +0000 (13:45 +0900)]
Combine dbus policy rules regarding the same priv (tizen.org/privilege/vpnservice)
Change-Id: If1259fe9c248d937d0158f2cb4982d644fde7f38
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
Jaehyun Kim [Fri, 24 May 2019 04:47:13 +0000 (13:47 +0900)]
Remove invalid command from net-config_tv.service file
Change-Id: I691d263f7fff7678adf8ff98816d911b61ab26b7
Signed-off-by: Jaehyun Kim <jeik01.kim@samsung.com>
Jaehyun Kim [Mon, 20 May 2019 08:09:11 +0000 (08:09 +0000)]
Merge "Use libnl-3.0 in place of libnl-2.0" into tizen
Nishant Chaprana [Wed, 1 May 2019 05:17:51 +0000 (10:47 +0530)]
Use libnl-3.0 in place of libnl-2.0
Change-Id: Ied635188934919066c973328248ad494a997a1b3
Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
Cheoleun Moon [Fri, 26 Apr 2019 00:22:26 +0000 (09:22 +0900)]
Add more padding for arp packets
The minimum size of ethernet frame is 512 bits (64 octets).
It is required for correct CSMA/CD protocol operation.
(ref: 4.2.3.3 and 4.4.2, IEEE Std 802.3-2018)
dev_validate_header() in linux/net/packet/af_packet.c checks the frame size
and sendto() returns EINVAL if it returns false.
Change-Id: If42738cb796e4827ae396bc1b4f596c2c498bf65
Signed-off-by: Cheoleun Moon <chleun.moon@samsung.com>
Cheoleun Moon [Wed, 24 Apr 2019 04:50:56 +0000 (13:50 +0900)]
Do not close socket twice
g_io_channel_shutdown closes the fd of the channel.
Change-Id: Iebb2f2eb3421094fc573ba859a65c2b18e86fbcc
Signed-off-by: Cheoleun Moon <chleun.moon@samsung.com>
Cheoleun Moon [Wed, 17 Apr 2019 01:02:39 +0000 (10:02 +0900)]
Fix code style
Change-Id: I541c2e466d81748420262960e71a1a33436f2821
Signed-off-by: Cheoleun Moon <chleun.moon@samsung.com>
Seonah Moon [Tue, 16 Apr 2019 06:12:53 +0000 (15:12 +0900)]
Unref gio channel before closing socket
Change-Id: Ia8166741abbe3c8a674e6e8a7bd2027a5db37057
Seonah Moon [Mon, 11 Mar 2019 10:46:43 +0000 (19:46 +0900)]
Remove mptcp files from security-network-config.conf
net-config has capabilities to access mptcp system files.
Change-Id: Ia418df7025d29c5d6c0fd5cf4e9ec11afc9add00
Jaehyun Kim [Mon, 28 Jan 2019 12:39:33 +0000 (12:39 +0000)]
Merge "Handle ethernet profile to set a default connection when init time" into tizen
hyunuktak [Thu, 17 Jan 2019 01:38:23 +0000 (10:38 +0900)]
Fix some svace issues for memory leak and checking return value
Change-Id: I515dbd75441176e234a97188762ccaf8af4d3016
Signed-off-by: hyunuktak <hyunuk.tak@samsung.com>
Seonah Moon [Wed, 9 Jan 2019 07:05:50 +0000 (16:05 +0900)]
Disable TIZEN_DEBUG_ENABLE
Change-Id: Iaf86277edaaaecd86d4b4bf34cbdb5202951b47d
Jaehyun Kim [Mon, 7 Jan 2019 13:40:00 +0000 (22:40 +0900)]
Handle ethernet profile to set a default connection when init time
Change-Id: I4d96d37fba47c038d592c66272451b6e1a77ec4d
Signed-off-by: Jaehyun Kim <jeik01.kim@samsung.com>
Niraj Kumar Goit [Fri, 4 Jan 2019 06:53:57 +0000 (12:23 +0530)]
Added parsing of netlink scan results for WEP encryption.
Change-Id: I23adcb76555af77891728d70e7a513763928a75c
Signed-off-by: Niraj Kumar Goit <niraj.g@samsung.com>
hyunuktak [Mon, 17 Dec 2018 04:57:52 +0000 (13:57 +0900)]
Fixed format error
Change-Id: I92d6c7bac6d2c49fc138f0d19174b2ec7603ffe7
Signed-off-by: hyunuktak <hyunuk.tak@samsung.com>
cheoleun moon [Tue, 11 Dec 2018 04:17:10 +0000 (04:17 +0000)]
Merge "Fixed memory related issues reported by valgrind." into tizen
cheoleun moon [Tue, 11 Dec 2018 04:17:07 +0000 (04:17 +0000)]
Merge "g_free 'field' and 'value' if you break out of a while loop." into tizen
Seonah Moon [Mon, 10 Dec 2018 10:18:40 +0000 (19:18 +0900)]
Fix dlog format error
Change-Id: Ifa907a3cc5940157c05934bd0b92dfa58b51ee45
Niraj Kumar Goit [Fri, 7 Dec 2018 10:02:56 +0000 (15:32 +0530)]
Fixed memory related issues reported by valgrind.
==1191== Invalid read of size 4
==1191== at 0x4AF034C: g_variant_unref (in /usr/lib/libglib-2.0.so.0.5200.2)
==1191== by 0x49677AF: ??? (in /usr/lib/libgio-2.0.so.0.5200.2)
==1191== by 0x4A232F3: g_object_unref (in /usr/lib/libgobject-2.0.so.0.5200.2)
==1191== by 0x4973A33: ??? (in /usr/lib/libgio-2.0.so.0.5200.2)
==1191== by 0x497555B: ??? (in /usr/lib/libgio-2.0.so.0.5200.2)
==1191== by 0x4928777: ??? (in /usr/lib/libgio-2.0.so.0.5200.2)
==1191== by 0x49287AB: ??? (in /usr/lib/libgio-2.0.so.0.5200.2)
==1191== by 0x4AB08E7: g_main_context_dispatch (in /usr/lib/libglib-2.0.so.0.5200.2)
==1191== by 0x4AB0C77: ??? (in /usr/lib/libglib-2.0.so.0.5200.2)
==1191== by 0x4AB0FD7: g_main_loop_run (in /usr/lib/libglib-2.0.so.0.5200.2)
==1191== by 0x497389F: ??? (in /usr/lib/libgio-2.0.so.0.5200.2)
==1191== by 0x4AD9B3B: ??? (in /usr/lib/libglib-2.0.so.0.5200.2)
==1191== Address 0x86ac014 is 20 bytes inside a block of size 24 free'd
==1191== at 0x4846EC8: free (vg_replace_malloc.c:530)
==1191== by 0x113FFD: __netconfig_wifi_bssid_create_interface (wifi-bssid-scan.c:454)
==1191== by 0x113FFD: __netconfig_wifi_bssid_scan (wifi-bssid-scan.c:486)
==1191== by 0x113FFD: handle_request_bssid_scan (wifi-bssid-scan.c:529)
==1191== by 0x4E45AF7: ffi_call_SYSV (in /usr/lib/libffi.so.6.0.2)
==1191== Block was alloc'd at
==1191== at 0x48458A4: malloc (vg_replace_malloc.c:299)
==1191== by 0x4AB61B3: g_malloc (in /usr/lib/libglib-2.0.so.0.5200.2)
==1191== by 0x4ACF4A3: g_slice_alloc (in /usr/lib/libglib-2.0.so.0.5200.2)
==1191== by 0x4AF01EF: ??? (in /usr/lib/libglib-2.0.so.0.5200.2)
==1191== by 0x4AEC8E7: g_variant_builder_end (in /usr/lib/libglib-2.0.so.0.5200.2)
==1191== by 0x4AEE6C7: ??? (in /usr/lib/libglib-2.0.so.0.5200.2)
==1191== by 0x4AEE9FF: g_variant_new_va (in /usr/lib/libglib-2.0.so.0.5200.2)
==1191== by 0x4AEEAC3: g_variant_new (in /usr/lib/libglib-2.0.so.0.5200.2)
==1191== by 0x113FB7: __netconfig_wifi_bssid_create_interface (wifi-bssid-scan.c:438)
==1191== by 0x113FB7: __netconfig_wifi_bssid_scan (wifi-bssid-scan.c:486)
==1191== by 0x113FB7: handle_request_bssid_scan (wifi-bssid-scan.c:529)
==1191== by 0x4E45AF7: ffi_call_SYSV (in /usr/lib/libffi.so.6.0.2)
Change-Id: If9fa9f2a0e6e2b6f201a486d333ed153c0581b98
Signed-off-by: Niraj Kumar Goit <niraj.g@samsung.com>
Cheoleun Moon [Tue, 4 Dec 2018 23:19:04 +0000 (08:19 +0900)]
Remove GSource before calling g_timeout_add()
Change-Id: I4f7af8297b298496e31577c381fd02b1024a0f23
Signed-off-by: Cheoleun Moon <chleun.moon@samsung.com>
Niraj Kumar Goit [Thu, 29 Nov 2018 13:50:30 +0000 (19:20 +0530)]
g_free 'field' and 'value' if you break out of a while loop.
g_free 'field' and 'value' if you break out of a while loop
using g_variant_iter_loop()
Change-Id: I4d76f723d9cedb3772a0f86db97152077cbfe7be
Signed-off-by: Niraj Kumar Goit <niraj.g@samsung.com>
Niraj Kumar Goit [Mon, 19 Nov 2018 07:13:20 +0000 (12:43 +0530)]
Fix svace issue [WGID: 378746].
Use strerror_r function instead of strerror for thread safety.
Change-Id: Ib75cded4baaab3ae1862e594f409df9ec6511e71
Signed-off-by: Niraj Kumar Goit <niraj.g@samsung.com>
cheoleun moon [Mon, 5 Nov 2018 10:50:39 +0000 (10:50 +0000)]
Merge "[net-config] Suspend/Resume WLAN driver" into tizen
Abhishek Sansanwal [Tue, 23 Oct 2018 05:52:06 +0000 (11:22 +0530)]
Start IP conflict monitoring only after default profile has been updated
Signed-off-by: Abhishek Sansanwal <abhishek.s94@samsung.com>
Change-Id: I113a4f033a5bb398a494195fb4de11957cd7e7ff
Seonah Moon [Mon, 22 Oct 2018 09:31:20 +0000 (18:31 +0900)]
Create temporary file to check wifi firmware state #3
Change-Id: I174f255dc49f2883b5ddc945e4375720327dc820
Seonah Moon [Mon, 22 Oct 2018 09:03:40 +0000 (18:03 +0900)]
Create temporary file to check wifi firmware state #2
Change-Id: I8c2c4d287021f6b0b76fa23d947e98e32995f1c8
Seonah Moon [Tue, 16 Oct 2018 08:32:29 +0000 (17:32 +0900)]
Create temporary file to check wifi firmware state
If net-config is finished unexpectly, it restarts.
And then wifi firmware is downloaded although it is already loaded.
This patch creates the file to check whether wifi firmware is loaded or not.
Change-Id: I4d8dbc4538d28d2c0eef7f945947bf007e47c73d
Jaehyun Kim [Thu, 4 Oct 2018 13:09:39 +0000 (22:09 +0900)]
Change signal level policy
Change-Id: I41b9e45518c1198b16b7208f2918999418c41ca2
Signed-off-by: Jaehyun Kim <jeik01.kim@samsung.com>
Saurav Babu [Tue, 18 Sep 2018 11:14:04 +0000 (16:44 +0530)]
Fixed incorrect comparision and memory leaks
This patch fixes incorrect comparion for GVariantType and also fixes
memory leak reported by valgrind
==9934== 20 bytes in 2 blocks are definitely lost in loss record 1,388 of 2,620
==9934== at 0x48458A4: malloc (vg_replace_malloc.c:299)
==9934== by 0x4AB21B3: g_malloc (in /usr/lib/libglib-2.0.so.0.5200.2)
==9934== by 0x4ACCF03: g_strdup (in /usr/lib/libglib-2.0.so.0.5200.2)
==9934== by 0x123CEB: __netconfig_get_default_connection_info (network-state.c:409)
==9934== by 0x124933: netconfig_update_default_profile (network-state.c:1210)
==9934== by 0x1290AD: _service_signal_cb (signal-handler.c:358)
==9934== by 0x4957997: ??? (in /usr/lib/libgio-2.0.so.0.5200.2)
==9934== by 0x4AAC8E7: g_main_context_dispatch (in /usr/lib/libglib-2.0.so.0.5200.2)
==9934== by 0x4AACC77: ??? (in /usr/lib/libglib-2.0.so.0.5200.2)
==9934== by 0x4AACFD7: g_main_loop_run (in /usr/lib/libglib-2.0.so.0.5200.2)
==9934== by 0x10F649: main (main.c:152)
Change-Id: I4e9791440ce4bc28968add19816d9e664cea9e62
Signed-off-by: Saurav Babu <saurav.babu@samsung.com>
Jaehyun Kim [Tue, 18 Sep 2018 07:49:49 +0000 (07:49 +0000)]
Merge "Added support to set and get prefix length." into tizen
Niraj Kumar Goit [Mon, 17 Sep 2018 11:07:39 +0000 (16:37 +0530)]
Fix coverity(1025915) issue.
Added check on prefix length to fix bad bit shift issue.
Change-Id: I9402ef63b03f7e63a1a54d954c6f74e42d460330
Signed-off-by: Niraj Kumar Goit <niraj.g@samsung.com>
Niraj Kumar Goit [Fri, 14 Sep 2018 15:21:48 +0000 (20:51 +0530)]
Added support to set and get prefix length.
Added support to set and get prefix length from configuration file.
Change-Id: I17144c9a6a515ad8efcbc5ae2ca5199ef56cbcdb
Signed-off-by: Niraj Kumar Goit <niraj.g@samsung.com>
Seonah Moon [Thu, 13 Sep 2018 07:15:27 +0000 (16:15 +0900)]
Revert "Added support to add ipv6 route using netlink."
This reverts commit
cb573910888d91558cf3d2beb28187850eccc9ad.
Change-Id: I4e11785eb874be44dfe2988d7902aae9d1ccd514
Seonah Moon [Thu, 13 Sep 2018 07:14:36 +0000 (16:14 +0900)]
Revert "Added support to delete ipv6 route using netlink."
This reverts commit
a259e3e99a5382699c19fc50288bf46eb03f18a4.
Change-Id: I488cb1554159ac05edfdcd6e2c8640bdf9ff78de
Jaehyun Kim [Tue, 11 Sep 2018 12:05:59 +0000 (12:05 +0000)]
Merge "Modify HAL TC to support wearable environment" into tizen