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>
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>
Niraj Kumar Goit [Thu, 15 Feb 2018 08:40:38 +0000 (14:10 +0530)]
Added support of EAP-FAST, EAP-PWD and EAP-AKA'.
Change-Id: I3f52d3211611c809d9024363b9807c61127e0bd5
Signed-off-by: Niraj Kumar Goit <niraj.g@samsung.com>
Niraj Kumar Goit [Tue, 30 Jan 2018 10:58:07 +0000 (16:28 +0530)]
Do not add redundant vsie to system.
Added check in CAPI "wifi_manager_add_vsie" so that redundant vsie is not
appended in the system.
Change-Id: I29cc5b50aaa68c8f35da9562a5195e0c23ec09d3
Signed-off-by: Niraj Kumar Goit <niraj.g@samsung.com>
Niraj Kumar Goit [Mon, 22 Jan 2018 10:10:48 +0000 (15:40 +0530)]
Cancel CAPI wifi_manager_ap_get_vsie().
Cancel CAPI wifi_manager_ap_get_vsie() through ACR-1150.
http://suprem.sec.samsung.net/jira/browse/ACR-1150
Change-Id: I043d127e9761c6687cb96fbb4dd70cbe26ec3b4e
Signed-off-by: Niraj Kumar Goit <niraj.g@samsung.com>
Niraj Kumar Goit [Thu, 4 Jan 2018 05:18:57 +0000 (10:48 +0530)]
Added CAPI to receive each vsie in callback.
Added CAPI "wifi_manager_ap_foreach_vsie()" to receive each vsie of AP
in callback.
Change-Id: I6290038ea5a75755a13e395238306fa167638ba9
Signed-off-by: Niraj Kumar Goit <niraj.g@samsung.com>
Jaehyun Kim [Wed, 17 Jan 2018 11:52:01 +0000 (20:52 +0900)]
Add support for pending scan and error handling to BSSID scan
Change-Id: Ia1c4c473a4736ddb38b3ed1fbe03666e80136b89
Signed-off-by: Jaehyun Kim <jeik01.kim@samsung.com>
hyunuktak [Mon, 8 Jan 2018 04:25:24 +0000 (13:25 +0900)]
Added tool application
Change-Id: I82c59b6b673a80fa9e0a59857c73e8338be967b4
Signed-off-by: hyunuktak <hyunuk.tak@samsung.com>
Jaehyun Kim [Fri, 5 Jan 2018 04:50:06 +0000 (13:50 +0900)]
Remove test application from main rpm
Change-Id: Ie022ad6ed989389474e30a7cd654bbb245c52ed3
Signed-off-by: Jaehyun Kim <jeik01.kim@samsung.com>
taesub kim [Tue, 2 Jan 2018 07:04:20 +0000 (07:04 +0000)]
Merge "[CID-94441] Fix resource leak" into tizen
Seonah Moon [Tue, 2 Jan 2018 01:38:07 +0000 (10:38 +0900)]
[CID-94441] Fix resource leak
Change-Id: I4052bfd65082949fa015ab611229bbab0330c178
taesub kim [Tue, 2 Jan 2018 00:17:02 +0000 (09:17 +0900)]
Fixed memory leak
304423, 304424 SVACE issue
Change-Id: I52fd2347db2d6af1c4ceb7284e7467b917db42b6
Signed-off-by: Taesub Kim <taesub.kim@samsung.com>
taesub kim [Mon, 1 Jan 2018 23:41:03 +0000 (23:41 +0000)]
Merge "Add new rpm package for test application" into tizen
Saurav Babu [Thu, 28 Dec 2017 07:37:16 +0000 (13:07 +0530)]
wifi-manager: Reduce dbus timeout to 10secs for synchronous dbus calls
Change-Id: I33e94f61f8b750b6bcd4fad64b6c43e5847e6c03
Signed-off-by: Saurav Babu <saurav.babu@samsung.com>
Niraj Kumar Goit [Wed, 27 Dec 2017 12:27:05 +0000 (17:57 +0530)]
Modify 'NET_WLAN_MAX_VSIE_LEN' value form 255 to 1024.
Change-Id: Iad9b81359d4b32c92ec4df5b81392d151b2a20db
Signed-off-by: Niraj Kumar Goit <niraj.g@samsung.com>
taesub kim [Tue, 26 Dec 2017 23:04:45 +0000 (23:04 +0000)]
Merge "Remove invalid memory release" into tizen
chleun.moon [Tue, 26 Dec 2017 05:12:43 +0000 (14:12 +0900)]
Remove invalid memory release
In __net_handle_ip_conflict_rsp, conflict_info->mac and
conflict_info->state are freed in the corresponding callback, __ip_conflict_cb
Change-Id: Ibbceb820d9248ab38b18fed26ee6075787032e45
Signed-off-by: Cheoleun Moon <chleun.moon@samsung.com>
Niraj Kumar Goit [Fri, 22 Dec 2017 08:47:08 +0000 (14:17 +0530)]
Refactored "wifi_manager_netlink_scan" to perform both Normal and specific AP scan.
Description:
- Refactored "wifi_manager_netlink_scan" CAPI to perform both Normal and specific AP
scan and removed "wifi_manager_netlink_scan_specific_ap" CAPI.
- Added CAPIs to create netlink scan handle, set ssid and set vsie.
- wifi_manager_netlink_scan_create()
- wifi_manager_netlink_scan_set_ssid()
- wifi_manager_netlink_scan_set_vsie()
Change-Id: I60ba4b911689e1f3c61f0494c1363a9fad33cb9d
Signed-off-by: Niraj Kumar Goit <niraj.g@samsung.com>
taesub kim [Tue, 19 Dec 2017 11:05:49 +0000 (20:05 +0900)]
Added APIs to set/get enable or disable of passpoint
Change-Id: Ib41979110d6ceeceec7e605a6b7de6d233060abb
Signed-off-by: Taesub Kim <taesub.kim@samsung.com>
taesub kim [Tue, 19 Dec 2017 01:31:42 +0000 (10:31 +0900)]
Add new rpm package for test application
Change-Id: Ic5431a567f2a6c30db5958cf943eb9fdcf114de9
Signed-off-by: Taesub Kim <taesub.kim@samsung.com>
Niraj Kumar Goit [Thu, 14 Dec 2017 12:15:07 +0000 (17:45 +0530)]
Added CAPI for netlink specific AP scan.
Added CAPI "wifi_manager_netlink_scan_specific_ap" to search
specific AP using netlink scan.
Change-Id: I9dbbdd56ce5baa34e4e9dcfcce03dde9ff18cafa
Signed-off-by: Niraj Kumar Goit <niraj.g@samsung.com>
Seonah Moon [Mon, 18 Dec 2017 05:45:44 +0000 (14:45 +0900)]
Rename extension header
CMakeLists.txt doesn't install wifi_*.h file - such as wifi_interna.h
and wifi_manager_extension.h - to the devel package.
However wifi_manager_extension.h has to be installed to the devel
package. Thus, rename wifi_manager_extension.h to wifi-manager-extension.h
Change-Id: I9aa62b4fbbd0198dd4eddf48473b7defad7d1912
Signed-off-by: Seonah Moon <seonah1.moon@samsung.com>
Taesoo Jun [Wed, 13 Dec 2017 02:10:49 +0000 (11:10 +0900)]
Fix memory leak in __net_handle_ip_conflict_rsp()
Change-Id: I3bdbc33ffb557810d1fff61d3631fd995db46d37
Taesoo Jun [Wed, 13 Dec 2017 01:38:48 +0000 (10:38 +0900)]
Fix memory leak in dbus_wifi_set_autoconnect()
Change-Id: I7527c230fe6384f2f7f96778b93db086d03ce529
Saurav Babu [Tue, 12 Dec 2017 04:03:51 +0000 (09:33 +0530)]
Fixed critical build issues
Change-Id: I1261576320587b6c6d77887e1bc7e8d446cc28f3
Signed-off-by: Saurav Babu <saurav.babu@samsung.com>
taesub kim [Tue, 5 Dec 2017 23:43:25 +0000 (08:43 +0900)]
Modifided logic for wifi_manager_ap_get_ip_address()
Change-Id: Ib94782398155d056b485531d7c7590b673562ae4
Signed-off-by: Taesub Kim <taesub.kim@samsung.com>
taesub kim [Tue, 5 Dec 2017 07:07:34 +0000 (07:07 +0000)]
Merge "Fix g_variant memory leak - _net_dbus_wifi_set_autoconnect()" into tizen
Taesoo Jun [Tue, 5 Dec 2017 06:29:24 +0000 (15:29 +0900)]
Fix g_variant memory leak - _net_dbus_wifi_set_autoconnect()
Change-Id: Ie75056c7e57bf4e24d4a5400b65d4877aa0bbb90
Taesoo Jun [Tue, 5 Dec 2017 06:24:23 +0000 (15:24 +0900)]
Fix g_variant memory leak - _net_dbus_set_auto_connect_mode()
Change-Id: Ib117b8079e46a329bfceea2ec7860576cf8bf324
Seonah Moon [Thu, 30 Nov 2017 06:35:48 +0000 (15:35 +0900)]
bug fix for test app
Change-Id: Id58aac1d130ccc9d83e640c07da9047eb82dbf82
Niraj Kumar Goit [Fri, 17 Nov 2017 04:19:37 +0000 (09:49 +0530)]
[wifi-manager] Added CAPI for Netlink scan.
When tethering is enabled 'wlan' interface is available but wifi device is
in deactivated state and so to search APs wifi_manager_netlink_scan() API is used.
When wifi device is in activated state use wifi_manager_scan() API instead.
Change-Id: I81a96ae7462e3d9d1276d7266f7c58e02e480e54
Signed-off-by: Niraj Kumar Goit <niraj.g@samsung.com>
Abhishek Sansanwal [Fri, 22 Sep 2017 12:13:37 +0000 (17:43 +0530)]
Added CAPI's for IP conflict detection
Signed-off-by: Abhishek Sansanwal <abhishek.s94@samsung.com>
Change-Id: Id63de0617f8ff3c5e5f44f741d32fbc579d4c5c5
taesub kim [Mon, 6 Nov 2017 05:48:04 +0000 (14:48 +0900)]
Added support to Add, Get and Remove VSIE data and to get vsie information of each AP
Change-Id: I7ad6cd29aee2ca9c00a640bc6cfabf5069c106b4
Signed-off-by: Taesub Kim <taesub.kim@samsung.com>
taesub kim [Tue, 14 Nov 2017 05:35:35 +0000 (05:35 +0000)]
Merge "wifi-manager: Added new macro in wifi_manager_disconnect_reason_e Enum." into tizen
taesub kim [Tue, 14 Nov 2017 05:32:31 +0000 (05:32 +0000)]
Merge "Added new CAPI to get the Association Status Code from Supplicant." into tizen
Maneesh Jain [Mon, 30 Oct 2017 12:48:52 +0000 (18:18 +0530)]
Added new CAPI to get the Association Status Code from Supplicant.
Change-Id: I779fbaa1bf7fc77b9419ebbd2d86caf89ac647e5
Signed-off-by: Maneesh Jain <maneesh.jain@samsung.com>
Maneesh Jain [Fri, 3 Nov 2017 10:50:13 +0000 (16:20 +0530)]
wifi-manager: Added new macro in wifi_manager_disconnect_reason_e Enum.
Description: This patch is used to add macro "WIFI_REASON_LOCAL_GENERATE_FROM_USER" to sync with supplicant
disconnect reason.
Change-Id: I59e58df33d8a849eef0a7a798fa2d05ab15cb747
Signed-off-by: Maneesh Jain <maneesh.jain@samsung.com>