Niraj Kumar Goit [Wed, 17 Oct 2018 11:50:39 +0000 (17:20 +0530)]
Fix asan issue.
Use g_slist_append() to copy list instead of g_slist_copy_deep().
Change-Id: If87eb606a1b6f5df6ecc451065e0e5c06ff69ec0
Signed-off-by: Niraj Kumar Goit <niraj.g@samsung.com>
Jaehyun Kim [Tue, 6 Nov 2018 10:42:06 +0000 (10:42 +0000)]
Merge "API to get connection mode of connected network" into tizen
Jaehyun Kim [Tue, 6 Nov 2018 10:39:48 +0000 (10:39 +0000)]
Merge "[wifi-manager][Get max speed of connected AP]" into tizen
Milind Murhekar [Mon, 24 Sep 2018 12:13:36 +0000 (17:43 +0530)]
API to get connection mode of connected network
This patch adds the new API to get the IEEE 802.11
connection mode of an AP.
Ex:- 802.11b/g/n/a/ac modes
Change-Id: I031b824480373d507fba88635e7683e2b1debdd5
Signed-off-by: Milind Murhekar <m.murhekar@samsung.com>
Jaehyun Kim [Thu, 4 Oct 2018 13:09:26 +0000 (22:09 +0900)]
Change signal level policy
Change-Id: Icd29346d4be99119eeaf01fbe529d6f4522f5db9
Signed-off-by: Jaehyun Kim <jeik01.kim@samsung.com>
Jaehyun Kim [Fri, 28 Sep 2018 06:51:07 +0000 (15:51 +0900)]
Fix DPM state synchronization issue
Change-Id: Ie088f7ecfeaa57c355352bce4326b43cd353dbbb
Signed-off-by: Jaehyun Kim <jeik01.kim@samsung.com>
Mayank Haarit [Tue, 18 Sep 2018 14:50:34 +0000 (20:20 +0530)]
[wifi-manager][Get max speed of connected AP]
This patch contains changes to get the max
speed of connected AP.
Change-Id: Id11940a84cf197475431ca47759d2133a5bc8c16
Signed-off-by: Mayank Haarit <mayank.h@samsung.com>
Niraj Kumar Goit [Fri, 14 Sep 2018 15:25:54 +0000 (20:55 +0530)]
Added config API to set and get prefix length.
Change-Id: I1c6a0542896331b55950bb45b60ade2d35cdcafe
Signed-off-by: Niraj Kumar Goit <niraj.g@samsung.com>
Niraj Kumar Goit [Thu, 13 Sep 2018 13:03:11 +0000 (18:33 +0530)]
Corrected CAPI name.
Change-Id: I95b9cd5edce56e43ba354686b6b3d7be650bbc10
Signed-off-by: Niraj Kumar Goit <niraj.g@samsung.com>
Niraj Kumar Goit [Tue, 11 Sep 2018 07:25:47 +0000 (12:55 +0530)]
Fix coverity issue (1025904).
Change-Id: If09ed15943c904c8c35de947a6603f4e37ba736d
Signed-off-by: Niraj Kumar Goit <niraj.g@samsung.com>
Jaehyun Kim [Tue, 11 Sep 2018 01:54:45 +0000 (10:54 +0900)]
Correct the classification of some APIs
Change-Id: Ib33d695f111f1c9274aca2ac8e5e20a9d7f2fe4e
Signed-off-by: Jaehyun Kim <jeik01.kim@samsung.com>
Niraj Kumar Goit [Fri, 10 Aug 2018 03:39:10 +0000 (09:09 +0530)]
Added test-code of config CAPIs to set IP details.
Added test-code for below config CAPIs to set IP details.
- wifi_manager_config_set_ip_config_type()
- wifi_manager_config_set_ip_address()
- wifi_manager_config_set_subnet_mask()
- wifi_manager_config_set_gateway_address()
- wifi_manager_config_set_dns_config_type()
- wifi_manager_config_set_dns_address()
Change-Id: I6f1515f098d90019d7b805f7ed10975fa5882e4a
Signed-off-by: Niraj Kumar Goit <niraj.g@samsung.com>
Niraj Kumar Goit [Thu, 9 Aug 2018 12:34:46 +0000 (18:04 +0530)]
Added config CAPIs to get IP configuration details.
Added below config CAPIs to get IP configuration details for
Hidden AP connection with static IP setting.
- wifi_manager_config_get_ip_config_type()
- wifi_manager_config_get_ip_address()
- wifi_manager_config_get_subnet_mask()
- wifi_manager_config_get_gateway_address()
- wifi_manager_config_get_dns_config_type()
- wifi_manager_config_get_dns_address()
Change-Id: I1659f82be81725b1da1d7217a0dbfe8081d394d7
Signed-off-by: Niraj Kumar Goit <niraj.g@samsung.com>
Jaehyun Kim [Wed, 5 Sep 2018 11:46:24 +0000 (11:46 +0000)]
Merge "Added config CAPI to set DNS address." into tizen
Niraj Kumar Goit [Wed, 8 Aug 2018 07:27:32 +0000 (12:57 +0530)]
Added config CAPI to set DNS address.
Added config CAPI "wifi_manager_config_set_dns_address" for
Hidden AP connection with static IP setting.
Change-Id: I5a69912336da1b741907170e9c5dd13a39ac461f
Signed-off-by: Niraj Kumar Goit <niraj.g@samsung.com>
Jaehyun Kim [Tue, 4 Sep 2018 11:37:24 +0000 (11:37 +0000)]
Merge "Added config CAPI to set DNS config type." into tizen
Jaehyun Kim [Tue, 4 Sep 2018 11:35:06 +0000 (11:35 +0000)]
Merge "Added config CAPI to set gateway address." into tizen
Jaehyun Kim [Tue, 4 Sep 2018 11:34:12 +0000 (11:34 +0000)]
Merge "Added config CAPI to set subnet mask." into tizen
Jaehyun Kim [Tue, 4 Sep 2018 11:32:52 +0000 (11:32 +0000)]
Merge "Added config CAPI to set IP address." into tizen
Jaehyun Kim [Tue, 4 Sep 2018 11:31:17 +0000 (11:31 +0000)]
Merge "Added config CAPI to set IP configuration method." into tizen
chleun.moon [Mon, 3 Sep 2018 23:55:18 +0000 (08:55 +0900)]
Return unspecified if there's no disconnect reason
Change-Id: I8daa3be51ac17c8e348f4a3326ddf4700e0a798e
Signed-off-by: Cheoleun Moon <chleun.moon@samsung.com>
Niraj Kumar Goit [Tue, 7 Aug 2018 13:59:29 +0000 (19:29 +0530)]
Added config CAPI to set DNS config type.
Added config CAPI "wifi_manager_config_set_dns_config_type" for
Hidden AP connection with static IP setting.
Change-Id: I0fe80353abd95002598dc242d6e473304672e716
Signed-off-by: Niraj Kumar Goit <niraj.g@samsung.com>
Niraj Kumar Goit [Tue, 7 Aug 2018 12:37:01 +0000 (18:07 +0530)]
Added config CAPI to set gateway address.
Added config CAPI "wifi_manager_config_set_gateway_address" for
Hidden AP connection with static IP setting.
Change-Id: Idab2042d60e165dd40d2d4be1915e0d3610a0f8d
Signed-off-by: Niraj Kumar Goit <niraj.g@samsung.com>
Niraj Kumar Goit [Tue, 7 Aug 2018 12:09:38 +0000 (17:39 +0530)]
Added config CAPI to set subnet mask.
Added config CAPI "wifi_manager_config_set_subnet_mask" for
Hidden AP connection with static IP setting.
Change-Id: I8ddca1af8bab711240fc249f41757e36a7148c71
Signed-off-by: Niraj Kumar Goit <niraj.g@samsung.com>
Niraj Kumar Goit [Tue, 7 Aug 2018 11:51:54 +0000 (17:21 +0530)]
Added config CAPI to set IP address.
Added config CAPI "wifi_manager_config_set_ip_address" for
Hidden AP connection with static IP setting.
Change-Id: I889ae244e08bbaf7e05ebd7fec27fcc51bb33410
Signed-off-by: Niraj Kumar Goit <niraj.g@samsung.com>
Niraj Kumar Goit [Tue, 7 Aug 2018 11:40:09 +0000 (17:10 +0530)]
Added config CAPI to set IP configuration method.
Added config CAPI "wifi_manager_config_set_ip_config_type" for
Hidden AP connection with static IP setting.
Change-Id: Id3b1102240b5057a451cbe98787480e4a7e1fee3
Signed-off-by: Niraj Kumar Goit <niraj.g@samsung.com>
Jaehyun Kim [Tue, 28 Aug 2018 11:17:47 +0000 (11:17 +0000)]
Merge "Fix default disconnect_reason as WIFI_REASON_UNSPECIFIED" into tizen
Jaehyun Kim [Tue, 28 Aug 2018 08:51:04 +0000 (17:51 +0900)]
Added support for FT PSK
Change-Id: I6761d2734d9afe896882e51b9e2c65b85b7938af
Signed-off-by: Jaehyun Kim <jeik01.kim@samsung.com>
chleun.moon [Tue, 28 Aug 2018 05:52:58 +0000 (14:52 +0900)]
Fix default disconnect_reason as WIFI_REASON_UNSPECIFIED
Change-Id: Id62f12e001fd7e75d950c65c36f848103b95b28b
Signed-off-by: Cheoleun Moon <chleun.moon@samsung.com>
Jaehyun Kim [Wed, 18 Jul 2018 12:27:14 +0000 (21:27 +0900)]
Added a security type for FT PSK
Change-Id: Iab968d8c1aa56ab9e1fbf9f557990c85bb5afdb7
Signed-off-by: Jaehyun Kim <jeik01.kim@samsung.com>
Niraj Kumar Goit [Mon, 6 Aug 2018 11:46:13 +0000 (17:16 +0530)]
Added config CAPI to get eap private-key file.
Change-Id: I6377878c80cb06117edcb33d81412a0ba40a3464
Signed-off-by: Niraj Kumar Goit <niraj.g@samsung.com>
Niraj Kumar Goit [Mon, 6 Aug 2018 11:19:07 +0000 (16:49 +0530)]
Added config CAPI to set eap private-key information.
Change-Id: Ief31411700e49cf4e22f06e3ad96edf795d5b48c
Signed-off-by: Niraj Kumar Goit <niraj.g@samsung.com>
Jaehyun Kim [Thu, 23 Aug 2018 08:09:05 +0000 (08:09 +0000)]
Merge "Added config APIs for EAP private key and password" into tizen
Niraj Kumar Goit [Fri, 3 Aug 2018 04:57:56 +0000 (10:27 +0530)]
Added config APIs for Hidden AP connection with static IP setting.
Change-Id: Icf38c8ed7c42fe117a41c65c8d2b2f2ef5d5e273
Signed-off-by: Niraj Kumar Goit <niraj.g@samsung.com>
Saurav Babu [Thu, 16 Aug 2018 10:19:05 +0000 (15:49 +0530)]
Fixed various memory leaks
Change-Id: I235a85b4a83dab3202f9f63b488d567dc03aae41
Signed-off-by: Saurav Babu <saurav.babu@samsung.com>
Saurav Babu [Thu, 16 Aug 2018 04:02:39 +0000 (09:32 +0530)]
Fixed memory leak multi scan API
Change-Id: Ifad1dd73a2a4b6ef512bb41f06cd49ff209de2fd
Signed-off-by: Saurav Babu <saurav.babu@samsung.com>
Saurav Babu [Tue, 14 Aug 2018 07:21:13 +0000 (12:51 +0530)]
Fixed invalid read issue
==4662== Invalid read of size 4
==4662== at 0x491D9EC: g_slist_last (in /usr/lib/libglib-2.0.so.0.5200.2)
==4662== Address 0x514dfd4 is 0 bytes after a block of size 4 alloc'd
==4662== at 0x484801C: calloc (vg_replace_malloc.c:711)
==4662== by 0x489216B: _wifi_specific_scan_create (wifi_internal.c:3341)
==4662== by 0x48985E7: wifi_manager_specific_scan_create (wifi_manager.c:1678)
==4662== by 0x10F821: test_wifi_manager_specific_ap_start_multi_scan (wifi_manager_test.c:2972)
==4662== by 0x11022B: test_thread (wifi_manager_test.c:3420)
==4662== by 0x48FD8E7: g_main_context_dispatch (in /usr/lib/libglib-2.0.so.0.5200.2)
==4662== by 0x48FDC77: ??? (in /usr/lib/libglib-2.0.so.0.5200.2)
==4662== by 0x48FDFD7: g_main_loop_run (in /usr/lib/libglib-2.0.so.0.5200.2)
==4662== by 0x10B353: main (wifi_manager_test.c:3215)
==4662==
==4662== Invalid write of size 4
==4662== at 0x491DA34: g_slist_append (in /usr/lib/libglib-2.0.so.0.5200.2)
==4662== by 0x4892213: _wifi_specific_scan_set_ssid (wifi_internal.c:3365)
==4662== by 0x10F92F: test_wifi_manager_specific_ap_start_multi_scan (wifi_manager_test.c:3001)
==4662== by 0x11022B: test_thread (wifi_manager_test.c:3420)
==4662== by 0x48FD8E7: g_main_context_dispatch (in /usr/lib/libglib-2.0.so.0.5200.2)
==4662== by 0x48FDC77: ??? (in /usr/lib/libglib-2.0.so.0.5200.2)
==4662== by 0x48FDFD7: g_main_loop_run (in /usr/lib/libglib-2.0.so.0.5200.2)
==4662== by 0x10B353: main (wifi_manager_test.c:3215)
==4662== Address 0x514dfd4 is 0 bytes after a block of size 4 alloc'd
==4662== at 0x484801C: calloc (vg_replace_malloc.c:711)
==4662== by 0x489216B: _wifi_specific_scan_create (wifi_internal.c:3341)
==4662== by 0x48985E7: wifi_manager_specific_scan_create (wifi_manager.c:1678)
==4662== by 0x10F821: test_wifi_manager_specific_ap_start_multi_scan (wifi_manager_test.c:2972)
==4662== by 0x11022B: test_thread (wifi_manager_test.c:3420)
==4662== by 0x48FD8E7: g_main_context_dispatch (in /usr/lib/libglib-2.0.so.0.5200.2)
==4662== by 0x48FDC77: ??? (in /usr/lib/libglib-2.0.so.0.5200.2)
==4662== by 0x48FDFD7: g_main_loop_run (in /usr/lib/libglib-2.0.so.0.5200.2)
==4662== by 0x10B353: main (wifi_manager_test.c:3215)
Change-Id: I5aac1a17c015925785304315940e14583ae9dec5
Signed-off-by: Saurav Babu <saurav.babu@samsung.com>
Jaehyun Kim [Thu, 2 Aug 2018 12:00:55 +0000 (21:00 +0900)]
Added config APIs for EAP private key and password
Change-Id: Ifa7aaf4aab41862b3424d1046aa82b887f492a7a
Signed-off-by: Jaehyun Kim <jeik01.kim@samsung.com>
taesub.kim [Mon, 23 Jul 2018 23:31:36 +0000 (08:31 +0900)]
Remove "Not supported" logic for module state function #2
Change-Id: I3963006f5fa0a4ef7b823dfa39f115db34cc4371
Signed-off-by: Taesub Kim <taesub.kim@samsung.com>
Jaehyun Kim [Mon, 23 Jul 2018 08:39:55 +0000 (17:39 +0900)]
Fixed some invalid exception handling in asynchronous API for forgetting access point.
Change-Id: I9638532b0964d45ad05c0e8e8d46362d0440de2e
Signed-off-by: Jaehyun Kim <jeik01.kim@samsung.com>
taesub.kim [Sun, 22 Jul 2018 22:15:59 +0000 (07:15 +0900)]
Modified error for wifi-manager (ACR-1256)
Change-Id: I7989900ab61788b5b4d254010b94dcdda38747f5
Signed-off-by: Taesub Kim <taesub.kim@samsung.com>
taesub.kim [Fri, 20 Jul 2018 06:37:52 +0000 (15:37 +0900)]
Added __NETWORK_CAPI_FUNC_EXIT__
Change-Id: I4dec1b8bf5239ed25db4bcea135e0def3a2ec4b5
Signed-off-by: Taesub Kim <taesub.kim@samsung.com>
Abhishek Sansanwal [Wed, 11 Jul 2018 07:10:20 +0000 (12:40 +0530)]
Check wifi_manager_h handle validity
Description: Check the wifi_manager_h handle
in each API and return the appropriate error
in case of failure.
Signed-off-by: Abhishek Sansanwal <abhishek.s94@samsung.com>
Change-Id: Ie40f8b521183b7c394397c4555a4a512b885a268
taesub kim [Mon, 9 Jul 2018 23:39:57 +0000 (08:39 +0900)]
Add new error (ACR-1256)
Change-Id: I5e04b8b115eac7c1becd800d82749a9413c79943
Signed-off-by: Taesub Kim <taesub.kim@samsung.com>
taesub kim [Tue, 17 Jul 2018 21:39:20 +0000 (21:39 +0000)]
Merge "Fix crash issue" into tizen
chleun.moon [Tue, 17 Jul 2018 04:31:50 +0000 (13:31 +0900)]
Fix crash issue
Change-Id: Ia9035c8f4e36e5d6996917f87e0d5d08adc09907
Signed-off-by: Cheoleun Moon <chleun.moon@samsung.com>
Nishant Chaprana [Mon, 16 Jul 2018 07:23:15 +0000 (12:53 +0530)]
[Fix] When connected SOftAP goes out of range, AP sate was stuck at Association.
This patch fixes the scenario when connected SoftAp goes out of range.
In this case, the profile_info is NULL, due to which state changed callback
was not notified to application.
Below are the test application logs for above mentioned scenario:-
sh-3.2# /usr/bin/wifi_manager_test
Test Thread created...
1
Event received from stdin
Wifi init succeeded
Operation succeeded!
9
Event received from stdin
Scan request succeeded
Operation succeeded!
Scan changed, scan state : 1
Scan changed, scan state : 0
Scan Completed from scan request, error code : NONE
9
Event received from stdin
Scan request succeeded
Operation succeeded!
Scan changed, scan state : 1
Scan changed, scan state : 0
Scan Completed from scan request, error code : NONE
[1] Connection state changed callback, state : Association, AP name : Nishant
[2] Connection state changed callback, state : Association, AP name : Nishant
[1] Connection state changed callback, state : Configuration, AP name : Nishant
[2] Connection state changed callback, state : Configuration, AP name : Nishant
[1] Connection state changed callback, state : Connected, AP name : Nishant
[2] Connection state changed callback, state : Connected, AP name : Nishant
[1] RSSI level changed callback, level = 4
[2] RSSI level changed callback, level = 4
[1] Connection state changed callback, state : Configuration, AP name : Nishant
[2] Connection state changed callback, state : Configuration, AP name : Nishant
[1] Connection state changed callback, state : Disconnected, AP name : Nishant
[2] Connection state changed callback, state : Disconnected, AP name : Nishant
[1] Connection state changed callback, state : Association, AP name : Nishant
[2] Connection state changed callback, state : Association, AP name : Nishant
[1] Connection state changed callback, state : Unknown, AP name : Nishant
[2] Connection state changed callback, state : Unknown, AP name : Nishant
[1] Connection state changed callback, state : Disconnected, AP name : Nishant
[2] Connection state changed callback, state : Disconnected, AP name : Nishant
[1] Connection state changed callback, state : Association, AP name : Nishant
[2] Connection state changed callback, state : Association, AP name : Nishant
Scan changed, scan state : 1
Scan changed, scan state : 0
[1] Background Scan Completed, error code : NONE
[2] Background Scan Completed, error code : NONE
Scan changed, scan state : 1
Scan changed, scan state : 0
[1] Background Scan Completed, error code : NONE
[2] Background Scan Completed, error code : NONE
Scan changed, scan state : 1
Scan changed, scan state : 0
[1] Background Scan Completed, error code : NONE
[2] Background Scan Completed, error code : NONE
Scan changed, scan state : 1
Scan changed, scan state : 0
[1] Background Scan Completed, error code : NONE
[2] Background Scan Completed, error code : NONE
[1] Connection state changed callback, state : Unknown, AP name : Nishant
[2] Connection state changed callback, state : Unknown, AP name : Nishant
[1] Connection state changed callback, state : Disconnected, AP name : Nishant
[2] Connection state changed callback, state : Disconnected, AP name : Nishant
[1] Connection state changed callback, state : Association, AP name : Nishant
[2] Connection state changed callback, state : Association, AP name : Nishant
Scan changed, scan state : 1
Scan changed, scan state : 0
[1] Background Scan Completed, error code : NONE
[2] Background Scan Completed, error code : NONE
Change-Id: I7143a5ea790fd967ac17f41cbcf3c265ec6d6e16
Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
taesub.kim [Mon, 16 Jul 2018 04:03:06 +0000 (13:03 +0900)]
Remove "Not supported" logic for module state function
Change-Id: I0eb9baa7b8e53925f7f7568d4573bf28a0ea31a0
Signed-off-by: Taesub Kim <taesub.kim@samsung.com>
taesub kim [Wed, 11 Jul 2018 07:47:11 +0000 (16:47 +0900)]
Modified wifi_manager_test file for testhub
Change-Id: If9d99f47a79d3d82686718c7abe6d0c5b5d9cd21
Signed-off-by: Taesub Kim <taesub.kim@samsung.com>
Nishant Chaprana [Tue, 3 Jul 2018 12:48:49 +0000 (18:18 +0530)]
[Implemention] Asynchronous API for forgetting access point.
This patch implements asynchronous API for forgetting access point.
The API name is "wifi_manager_forget_ap_async()"
Change-Id: I03e823a7bbd63b994fec3d6d3fe151b92af72a0a
Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
Saurav Babu [Fri, 29 Jun 2018 06:40:20 +0000 (12:10 +0530)]
Fixed issue in cancelling wps connection
Change-Id: I7b8b873417782273812017ef7e09fef4a044b051
Signed-off-by: Saurav Babu <saurav.babu@samsung.com>
taesub kim [Wed, 27 Jun 2018 02:02:03 +0000 (02:02 +0000)]
Merge "[Prototype] Add asynchronous API for forgeting acces point." into tizen
Nishant Chaprana [Tue, 29 May 2018 05:02:44 +0000 (10:32 +0530)]
[Prototype] Add asynchronous API for forgeting acces point.
Description:
This patch adds prototype for new API "wifi_manager_forget_ap_async()".
Using this API application can asynchronously forget acces point and
disconnect from it, if it was connected.
Change-Id: Id9d049b4945d3b4b81d2c022bfd02a06c9e098a8
Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
taesub kim [Fri, 22 Jun 2018 03:17:47 +0000 (12:17 +0900)]
Added privilege check logic for foreach found bssid function
Change-Id: I0dc46318cf14e799f36910e59b6ea79f9621197c
Signed-off-by: Taesub Kim <taesub.kim@samsung.com>
Saurav Babu [Mon, 11 Jun 2018 11:10:54 +0000 (16:40 +0530)]
Fixed various issues reported by valgrind
==13792== Invalid read of size 4
==13792== at 0x4D4AEE4: g_type_check_instance_is_fundamentally_a (in /usr/lib/libgobject-2.0.so.0.5200.2)
==13792== Address 0x4ebdc48 is 0 bytes inside a block of size 136 free'd
==13792== at 0x4846EC8: free (vg_replace_malloc.c:530)
==13792== by 0x4D49A5B: g_type_free_instance (in /usr/lib/libgobject-2.0.so.0.5200.2)
==13792== by 0x4885443: _net_dbus_close_gdbus_call (network_internal.c:640)
==13792== by 0x4882BA5: net_deregister_client_ext (network_interface.c:2837)
==13792== by 0x48900CD: _wifi_deinit (wifi_internal.c:1447)
==13792== by 0x4897F55: wifi_manager_deinitialize (wifi_manager.c:236)
==13792== by 0x10D997: ??? (in /usr/bin/wifi_manager_test)
==13792== by 0x110087: ??? (in /usr/bin/wifi_manager_test)
==13792== by 0x48FF8E7: g_main_context_dispatch (in /usr/lib/libglib-2.0.so.0.5200.2)
==13792== by 0x48FFC77: ??? (in /usr/lib/libglib-2.0.so.0.5200.2)
==13792== by 0x48FFFD7: g_main_loop_run (in /usr/lib/libglib-2.0.so.0.5200.2)
==13792== by 0x10B30B: ??? (in /usr/bin/wifi_manager_test)
==13792== Block was alloc'd at
==13792== at 0x48458A4: malloc (vg_replace_malloc.c:299)
==13792== by 0x49051B3: g_malloc (in /usr/lib/libglib-2.0.so.0.5200.2)
==13792== by 0x491E4A3: g_slice_alloc (in /usr/lib/libglib-2.0.so.0.5200.2)
==13792== by 0x491EA7F: g_slice_alloc0 (in /usr/lib/libglib-2.0.so.0.5200.2)
==13792== by 0x4D4979B: g_type_create_instance (in /usr/lib/libgobject-2.0.so.0.5200.2)
==13792== by 0x4D29853: ??? (in /usr/lib/libgobject-2.0.so.0.5200.2)
==13792== by 0x4D2BBF7: g_object_new_valist (in /usr/lib/libgobject-2.0.so.0.5200.2)
==13792== 1,150 bytes in 138 blocks are definitely lost in loss record 956 of 970
==13792== at 0x48458A4: malloc (vg_replace_malloc.c:299)
==13792== by 0x49051B3: g_malloc (in /usr/lib/libglib-2.0.so.0.5200.2)
==13792== by 0x491FF03: g_strdup (in /usr/lib/libglib-2.0.so.0.5200.2)
==13792== by 0x493CF0B: ??? (in /usr/lib/libglib-2.0.so.0.5200.2)
==13792== by 0x493CB5F: ??? (in /usr/lib/libglib-2.0.so.0.5200.2)
==13792== by 0x493DF1B: g_variant_iter_next (in /usr/lib/libglib-2.0.so.0.5200.2)
==13792== by 0x487E4C7: __net_extract_wifi_info (network_interface.c:1070)
==13792== by 0x487FAFD: __net_extract_all_services (network_interface.c:1184)
==13792== by 0x487FAFD: __net_extract_services (network_interface.c:1218)
==13792== by 0x487FAFD: _net_get_profile_list (network_interface.c:1383)
==13792== by 0x4883AAF: net_get_profile_list (network_interface.c:3134)
==13792== by 0x488F83F: __update_profile_iterator (wifi_internal.c:320)
==13792== by 0x4892A59: _wifi_foreach_found_ap (wifi_internal.c:2239)
==13792== by 0x10DD11: ??? (in /usr/bin/wifi_manager_test)
==13655== 96,381 (8 direct, 96,373 indirect) bytes in 1 blocks are definitely lost in loss record 1,157 of 1,158
==13655== at 0x48458A4: malloc (vg_replace_malloc.c:299)
==13655== by 0x49051B3: g_malloc (in /usr/lib/libglib-2.0.so.0.5200.2)
==13655== by 0x491E4A3: g_slice_alloc (in /usr/lib/libglib-2.0.so.0.5200.2)
==13655== by 0x491FA13: g_slist_append (in /usr/lib/libglib-2.0.so.0.5200.2)
==13655== by 0x487FB0D: __net_extract_all_services (network_interface.c:1191)
==13655== by 0x487FB0D: __net_extract_services (network_interface.c:1218)
==13655== by 0x487FB0D: _net_get_profile_list (network_interface.c:1383)
==13655== by 0x487A239: _net_dbus_connect_service (network_dbus.c:1272)
==13655== by 0x4884D05: _net_open_connection_with_wifi_info (network_internal.c:330)
==13655== by 0x48810E9: net_open_connection_with_wifi_info (network_interface.c:2037)
==13655== by 0x488F8E9: __connect_with_wifi_info (wifi_internal.c:521)
==13655== by 0x4892D3D: _wifi_open_profile (wifi_internal.c:2354)
==13655== by 0x10B963: ??? (in /usr/bin/wifi_manager_test)
==13655== by 0x4892A91: _wifi_foreach_found_ap (wifi_internal.c:2255)
Change-Id: I417fcd081ff51509735e2e87dc2b96e53812f34b
Signed-off-by: Saurav Babu <saurav.babu@samsung.com>
Saurav Babu [Fri, 18 May 2018 13:23:54 +0000 (18:53 +0530)]
Clear GObject only if it is valid GObject
Change-Id: I72671d331f1cde3a190f703260543d1c5c5a7e89
Signed-off-by: Saurav Babu <saurav.babu@samsung.com>
Mayank Haarit [Wed, 16 May 2018 16:04:10 +0000 (21:34 +0530)]
wifi-manager: To get vsie list of APs
This patch add the funtionality :
1) To get the vsie list of APs during netlink scan results.
2) Added common function to clear internal GSList of net_profile_info_s.
Change-Id: Iac37300311cb8069a6b459107a9f8afd729ae250
Signed-off-by: Mayank Haarit <mayank.h@samsung.com>
Saurav Babu [Tue, 15 May 2018 11:38:32 +0000 (17:08 +0530)]
wifi-manager: Clear gdbus connection after it is unref'd
In the below scenario:
1. Initalize wifi manager
2. Start WiFi Scan (or any other asynchronous method)
3. Deinitialize wifi manager before asynchronous method is finished
At the time of deinitialization pending calls exist and gdbus connection
is unref'd but it is not cleared to NULL, so in future initializations
gdbus connection handle is corrupted and wifi_manager_initialize() is
failed.
https://developer.gnome.org/gobject/stable/gobject-The-Base-Object-Type.html#g-object-unref
states that if pointer to the GObject may be reused in future after
calling g_object_unref() then it is recommended to clear the pointer to
NULL rather than retain a dangling pointer to a potentially invalid
GObject instance using g_clear_object()
Change-Id: I36aa1184afed01c1dbc0779722239f262fb890f4
Signed-off-by: Saurav Babu <saurav.babu@samsung.com>
chleun.moon [Fri, 11 May 2018 05:04:13 +0000 (14:04 +0900)]
Use g_variant_iter_next to prevent crash
Change-Id: I689ee3736389ff35fd7198a7ff89db1c445c343f
Signed-off-by: Cheoleun Moon <chleun.moon@samsung.com>
taesub kim [Wed, 9 May 2018 23:56:50 +0000 (23:56 +0000)]
Merge "Handled the memory leak" into tizen
Jaehyun Kim [Wed, 9 May 2018 13:21:12 +0000 (13:21 +0000)]
Merge "Apply lcov block and line for line coverage" into tizen
Jaehyun Kim [Wed, 9 May 2018 13:20:32 +0000 (13:20 +0000)]
Merge "Added new Error Codes" into tizen
hyunuktak [Wed, 9 May 2018 07:15:58 +0000 (16:15 +0900)]
Apply lcov block and line for line coverage
Change-Id: I5df6018685191256d719ade7e0d5a145e3bee37f
Signed-off-by: hyunuktak <hyunuk.tak@samsung.com>
Jaehyun Kim [Fri, 27 Apr 2018 07:00:32 +0000 (16:00 +0900)]
Added new Error Codes
WIFI_MANAGER_ERROR_OFFLINE & WIFI_MANAGER_ERROR_INVALID_GATEWAY
Change-Id: I32494bec4396c1cd12746a57a975bfdf77320df8
Signed-off-by: Jaehyun Kim <jeik01.kim@samsung.com>
taesub kim [Wed, 2 May 2018 03:57:19 +0000 (12:57 +0900)]
Added network.get privilege to get the wps pin number
Change-Id: I4f8d46f38fdce39128d808b29a0634b1ff6a6512
Signed-off-by: Taesub Kim <taesub.kim@samsung.com>
Mayank Haarit [Fri, 4 May 2018 14:45:22 +0000 (20:15 +0530)]
Handled the memory leak
This patch fixes the memory leak in case
of netlink scan
Change-Id: I44cdac586308bad98ec60c66f1004902e85c384c
Signed-off-by: Mayank Haarit <mayank.h@samsung.com>
taesub kim [Thu, 26 Apr 2018 23:56:37 +0000 (23:56 +0000)]
Merge "wifi-manager:Modify comment as per guideline" into tizen
Mayank Haarit [Thu, 26 Apr 2018 15:13:10 +0000 (20:43 +0530)]
wifi-manager:Modify comment as per guideline
Change-Id: I6240a9f064ac27a383a3ae7c0d965afb83192caf
Signed-off-by: Mayank Haarit <mayank.h@samsung.com>
taesub kim [Wed, 25 Apr 2018 01:49:25 +0000 (10:49 +0900)]
Modified header file
Change-Id: I278f8163a79ff780037317c239aae83185b42252
Signed-off-by: Taesub Kim <taesub.kim@samsung.com>
taesub kim [Tue, 24 Apr 2018 03:59:07 +0000 (03:59 +0000)]
Merge "Update doxygen for ip config type" into tizen
Mayank Haarit [Fri, 20 Apr 2018 15:41:15 +0000 (21:11 +0530)]
wifi-manager: Add support for returning APs information
This patch provides list of bssid, signal strength
and frequency of APs having same SSID and security type.
Change-Id: I1545a9e8818ee4956c5062f86cd99ffcc5dbf9b6
Signed-off-by: Mayank Haarit <mayank.h@samsung.com>
Seonah Moon [Fri, 20 Apr 2018 04:51:03 +0000 (13:51 +0900)]
Update doxygen for ip config type
Change-Id: I7d8c04747396c74c68061af99b913de2c6a1be8f
Mayank Haarit [Wed, 18 Apr 2018 15:17:44 +0000 (20:47 +0530)]
wifi-manager: Implemented functionality to get AP's country code
Change-Id: Id767e0b34753860f283f39bddffd84a2f45b698d
Signed-off-by: Mayank Haarit <mayank.h@samsung.com>
Jaehyun Kim [Thu, 19 Apr 2018 06:52:51 +0000 (06:52 +0000)]
Merge "Added prototype for new APIs" into tizen
Jaehyun Kim [Thu, 19 Apr 2018 02:39:39 +0000 (11:39 +0900)]
Fixed a coverity for resource leak
Change-Id: I0892e107ea2216aaed04490ae938156ac15dbf91
Signed-off-by: Jaehyun Kim <jeik01.kim@samsung.com>
Mayank Haarit [Wed, 28 Mar 2018 10:28:58 +0000 (15:58 +0530)]
Added prototype for new APIs
This patch adds below APIs prototype in header file
a) To get the BSSID list
b) To get country code
Change-Id: I1fe38a341cebbedcd2ee20c272fdc43e6bfbb995
Signed-off-by: Mayank Haarit <mayank.h@samsung.com>
taesub kim [Mon, 16 Apr 2018 08:55:36 +0000 (08:55 +0000)]
Merge "Added new CAPI to get the wps pin number from supplicant" into tizen
taesub kim [Mon, 16 Apr 2018 08:07:54 +0000 (08:07 +0000)]
Merge "Return correct EAP type for AKA PRIME, FAST and PWD EAP types." into tizen
taesub kim [Mon, 16 Apr 2018 08:06:02 +0000 (08:06 +0000)]
Merge "Add support of SSID and Frequency mixed scan." into tizen
taesub kim [Fri, 6 Apr 2018 01:43:48 +0000 (10:43 +0900)]
Added new CAPI to get the wps pin number from supplicant
Change-Id: I9231e26bb6e788d1412bbed86bbf88df9e49962f
Signed-off-by: Taesub Kim <taesub.kim@samsung.com>
hyunuktak [Thu, 12 Apr 2018 07:17:45 +0000 (16:17 +0900)]
Fixed a coverity for resource leak
Change-Id: Ifa903cfc9e930fa2cbb552570f9e40e3e1ea7310
Signed-off-by: hyunuktak <hyunuk.tak@samsung.com>
Abhishek Sansanwal [Tue, 10 Apr 2018 09:33:01 +0000 (15:03 +0530)]
Return correct EAP type for AKA PRIME, FAST and PWD EAP types.
Signed-off-by: Abhishek Sansanwal <abhishek.s94@samsung.com>
Change-Id: Ic4adc1ba7fbb6355145d7ad0babf3cb915b3945b
Niraj Kumar Goit [Thu, 5 Apr 2018 06:31:01 +0000 (12:01 +0530)]
Add support of SSID and Frequency mixed scan.
Change-Id: I8bad83fafd1681fe5b98aa961453c4c1ddb4168a
Signed-off-by: Niraj Kumar Goit <niraj.g@samsung.com>
Jaehyun Kim [Fri, 6 Apr 2018 01:37:52 +0000 (01:37 +0000)]
Merge "Fixed some coverity for resource leak" into tizen
hyunuktak [Tue, 3 Apr 2018 00:48:20 +0000 (09:48 +0900)]
Fixed some coverity for resource leak
Change-Id: I18d828bd6b10af992adc48333a962787831df7b0
Signed-off-by: hyunuktak <hyunuk.tak@samsung.com>
Taesoo Jun [Mon, 2 Apr 2018 10:35:26 +0000 (19:35 +0900)]
Fix memory leak - _test_found_print_ap_info_callback
Change-Id: Ia464456f6c58f7d81679611bcf71d06e88184dca
hyunuktak [Fri, 23 Mar 2018 01:03:27 +0000 (10:03 +0900)]
Fixed a coverity for unchecked return value
Change-Id: I9f3e9d748d4f7eb955e0869314dc135bb244d101
Signed-off-by: hyunuktak <hyunuk.tak@samsung.com>
Niraj Kumar Goit [Sat, 17 Mar 2018 13:13:10 +0000 (18:43 +0530)]
Execute netlink scan only in softap mode.
Change-Id: Ief6f72edbd6906a783a395c3d660db39624c83df
Signed-off-by: Niraj Kumar Goit <niraj.g@samsung.com>
Niraj Kumar Goit [Fri, 16 Mar 2018 09:52:02 +0000 (15:22 +0530)]
Parse the security and encryption mode in the netlink scan results.
Change-Id: I52d41db29315a629daf073df0a26752b974998cd
Signed-off-by: Niraj Kumar Goit <niraj.g@samsung.com>
hyunuktak [Tue, 13 Mar 2018 00:35:03 +0000 (09:35 +0900)]
Fixed some coverity for resource leak
Change-Id: I21000cd8a58d18b88903e4efcc614122968f0403
Signed-off-by: hyunuktak <hyunuk.tak@samsung.com>
hyunuktak [Wed, 28 Feb 2018 08:14:08 +0000 (17:14 +0900)]
Fixed a svace for unreachable code
Change-Id: I483006356c757b163bbcdce51ba857746a9f7cb9
Signed-off-by: hyunuktak <hyunuk.tak@samsung.com>
taesub kim [Wed, 28 Feb 2018 02:36:11 +0000 (11:36 +0900)]
Fix ASan build
Change-Id: Iaa2c5ee4d9a80794a4d357f1bd6158e72b419467
Signed-off-by: Taesub Kim <taesub.kim@samsung.com>
taesub kim [Mon, 26 Feb 2018 08:49:45 +0000 (08:49 +0000)]
Merge "Added support of EAP-FAST, EAP-PWD and EAP-AKA'." into tizen
taesub kim [Mon, 26 Feb 2018 08:07:04 +0000 (08:07 +0000)]
Merge "Modified dbus nonblock method of setting auto connect mode to dbus block" into tizen
taesub kim [Mon, 26 Feb 2018 08:06:59 +0000 (08:06 +0000)]
Merge "Fixed g_variant_unref problem when set auto connect & Modified the routine to get auto scan when wifi is deactivated" into tizen
taesub kim [Mon, 26 Feb 2018 05:44:26 +0000 (14:44 +0900)]
Modified dbus nonblock method of setting auto connect mode to dbus block
Change-Id: I9d5d809bb6dc231c13b0f584284590c74d853b9b
Signed-off-by: Taesub Kim <taesub.kim@samsung.com>
taesub kim [Mon, 26 Feb 2018 05:16:15 +0000 (14:16 +0900)]
Fixed g_variant_unref problem when set auto connect & Modified the routine to get auto scan when wifi is deactivated
Change-Id: I0d714e0714b8bb7b2d54ea750178306849d6dd5e
Signed-off-by: Taesub Kim <taesub.kim@samsung.com>
Jaehyun Kim [Thu, 22 Feb 2018 11:30:03 +0000 (20:30 +0900)]
Added CAPIs for C# thread handling
It is not guaranteed that the GC in C# will call wifi_manager_deinitialize
on the thread that called wifi_manager_initialize.
So I added thread-independent CAPIs for init/deinit.
Change-Id: I9d60f439e45a46a3ea1d8e292e6086f46f9bc93b
Signed-off-by: Jaehyun Kim <jeik01.kim@samsung.com>
Jaehyun Kim [Thu, 22 Feb 2018 08:25:51 +0000 (17:25 +0900)]
Fix issue with unref of bssid
Change-Id: I4e06af3112162339c3af44ac00c58900c1fbe981
Signed-off-by: Jaehyun Kim <jeik01.kim@samsung.com>
Jaehyun Kim [Wed, 21 Feb 2018 04:53:22 +0000 (13:53 +0900)]
Added CAPI for bssid based connection
Change-Id: Ie9fb62c9b69a04fbcb51342695075d7c93444d61
Signed-off-by: Jaehyun Kim <jeik01.kim@samsung.com>