Jaehyun Kim [Wed, 13 Nov 2019 05:36:29 +0000 (14:36 +0900)]
Signal strength criteria for 5GHz changed
Change-Id: I4cfca0cebf9dbda71792456c0aefe14a25f59c73
Signed-off-by: Jaehyun Kim <jeik01.kim@samsung.com>
hyunuk.tak [Mon, 7 Oct 2019 05:14:35 +0000 (14:14 +0900)]
Modified to WIFI_MANAGER_ERROR
Change-Id: I86df25393f66315649439fb952a4d3a6e911eb56
Signed-off-by: hyunuk.tak <hyunuk.tak@samsung.com>
Yu [Tue, 20 Aug 2019 10:33:32 +0000 (19:33 +0900)]
Add CAPI implementation for Device Provisioning Protocol
Change-Id: I2406164f9d2193ac9b2002cebf8598a7becb0ecc
Signed-off-by: Yu jiung <jiung.yu@samsung.com>
Jaehyun Kim [Mon, 29 Jul 2019 09:16:37 +0000 (09:16 +0000)]
Merge "Add support for OWE security mode" into tizen
Jaehyun Kim [Fri, 26 Jul 2019 07:05:01 +0000 (07:05 +0000)]
Merge "Added CAPI to get AP hidden status." into tizen
Jaehyun Kim [Fri, 26 Jul 2019 07:04:46 +0000 (07:04 +0000)]
Merge "Added CAPI to get the hidden property of access point" into tizen
Niraj Kumar Goit [Wed, 17 Jul 2019 05:24:43 +0000 (10:54 +0530)]
Added CAPI to get AP hidden status.
Change-Id: I35b56a260a9e4d19e21a9b48691f22c15f50174d
Signed-off-by: Niraj Kumar Goit <niraj.g@samsung.com>
Yu [Thu, 25 Jul 2019 05:49:24 +0000 (14:49 +0900)]
Add support for OWE security mode
Change-Id: I65fe3abe254a985e13e4977268218148f44d43fc
Jaehyun Kim [Thu, 25 Apr 2019 12:13:49 +0000 (21:13 +0900)]
Added CAPI to get the hidden property of access point
Change-Id: If3e80eb3bf7b3d8a14577201c67be2f6923035d2
Signed-off-by: Jaehyun Kim <jeik01.kim@samsung.com>
Jaehyun Kim [Mon, 8 Jul 2019 09:11:28 +0000 (18:11 +0900)]
Corrected doxygen comments for specific scan APIs
Change-Id: I1a06c4972b5515504cc07adcbdc4779c6318f41d
Signed-off-by: Jaehyun Kim <jeik01.kim@samsung.com>
Jaehyun Kim [Mon, 8 Jul 2019 00:35:12 +0000 (00:35 +0000)]
Merge "Correct wifi_manager_specific_scan_get_max_ssids() API name as per wifi-manager.h header file" into tizen
Nishant Chaprana [Fri, 5 Jul 2019 13:04:05 +0000 (18:34 +0530)]
Correct wifi_manager_specific_scan_get_max_ssids() API name as per wifi-manager.h header file
Change-Id: I16330e3ecc402a56a37afb7953852d402fe032cc
Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
Jaehyun Kim [Thu, 4 Jul 2019 11:05:20 +0000 (20:05 +0900)]
Corrected incorrectly checking of state value
WIFI_MANAGER_CONNECTION_STATE_FAILURE is defined as -1
but it is considered to be an CAPI error in wifi_manager_ap_get_connection_state().
Change-Id: I28ddd2f0e1d2409a668a78166fcdc75674f76753
Signed-off-by: Jaehyun Kim <jeik01.kim@samsung.com>
Jaehyun Kim [Tue, 2 Jul 2019 11:25:45 +0000 (11:25 +0000)]
Merge "Corrected CAPI name and some doxygen comments" into tizen
Jaehyun Kim [Tue, 2 Jul 2019 11:25:32 +0000 (11:25 +0000)]
Merge "Check flight mode when bssid scan called" into tizen
Jaehyun Kim [Tue, 2 Jul 2019 11:25:17 +0000 (11:25 +0000)]
Merge "Add to get passphrase internally from config" into tizen
Jaehyun Kim [Mon, 1 Jul 2019 12:20:16 +0000 (21:20 +0900)]
Corrected CAPI name and some doxygen comments
Change-Id: I3e1450b287292e4229cca7437deb2c389687ac93
Signed-off-by: Jaehyun Kim <jeik01.kim@samsung.com>
Cheoleun Moon [Mon, 1 Jul 2019 06:39:30 +0000 (15:39 +0900)]
Make a gcov package for coverage
Change-Id: Ibb7a353efd8d93f38e90c55547ce74e329cfc75c
Signed-off-by: Cheoleun Moon <chleun.moon@samsung.com>
hyunuktak [Wed, 26 Jun 2019 10:14:31 +0000 (19:14 +0900)]
Check flight mode when bssid scan called
Change-Id: I353760c0ff80604c74353b80c5aeec47ee4d8b3e
Signed-off-by: hyunuktak <hyunuk.tak@samsung.com>
hyunuktak [Mon, 24 Jun 2019 01:38:12 +0000 (10:38 +0900)]
Add to get passphrase internally from config
Change-Id: I46766950cdd8a6d45dd06d8055e978042073699e
Signed-off-by: hyunuktak <hyunuk.tak@samsung.com>
Niraj Kumar Goit [Fri, 14 Jun 2019 11:50:13 +0000 (17:20 +0530)]
Added support of WPA3-SAE security mode.
Change-Id: I44114045b9716defe4e467007a1d32d2df38b1ef
Signed-off-by: Niraj Kumar Goit <niraj.g@samsung.com>
Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
Jaehyun Kim [Tue, 4 Jun 2019 09:06:57 +0000 (09:06 +0000)]
Merge "Fix API reference in header" into tizen
Niraj Kumar Goit [Wed, 26 Dec 2018 03:27:59 +0000 (08:57 +0530)]
Added CAPI to get the maximum scan SSIDs.
Added CAPI to get the maximum number of scan SSIDs
supported by wlan chipset.
Change-Id: I44991b5bde6d6ce1bd8d5f44150fff9957616f7b
Signed-off-by: Niraj Kumar Goit <niraj.g@samsung.com>
Niraj Kumar Goit [Wed, 26 Dec 2018 03:23:18 +0000 (08:53 +0530)]
Added prototype of CAPI to get maximum scan SSIDs.
Added prototype of CAPI to get the maximum number of SSIDs
supported by wlan chipset for scan operation.
Change-Id: I88f6d9922fc38487a8bcbd1942b8f508a1649d7f
Signed-off-by: Niraj Kumar Goit <niraj.g@samsung.com>
hyunuktak [Mon, 29 Apr 2019 08:37:41 +0000 (17:37 +0900)]
Fix API reference in header
Change-Id: I72046f489139a30a1a76997564b6c65d739fb2c0
Signed-off-by: hyunuktak <hyunuk.tak@samsung.com>
Jaehyun Kim [Thu, 4 Apr 2019 13:41:59 +0000 (22:41 +0900)]
Update comments as per guideline
Change-Id: I75c05778611ca8c652bbb78157c456f8f6e53825
Signed-off-by: Jaehyun Kim <jeik01.kim@samsung.com>
Jaehyun Kim [Wed, 20 Mar 2019 12:09:12 +0000 (21:09 +0900)]
Added CAPIs for EAP AnonymousIdentity
Change-Id: I013af1c16c22b7d7525616b5a2945969d505aabc
Signed-off-by: Jaehyun Kim <jeik01.kim@samsung.com>
Cheoleun Moon [Tue, 26 Mar 2019 05:18:02 +0000 (14:18 +0900)]
[wifi_manager_test] Print error message when there is no AP
When an user try to connect an AP by wifi_manager_test but the AP
doesn't exist in scan result, an error message is shown.
Change-Id: I5f7bdb30baa83b0bedd1347e69fc5fd7a8ef0d99
Signed-off-by: Cheoleun Moon <chleun.moon@samsung.com>
Cheoleun Moon [Mon, 25 Mar 2019 07:23:23 +0000 (16:23 +0900)]
Call connected_cb when wifi_manager_cancel_wps() is called
wifi_manager_connect_by_wps.. APIs have wifi_manager_connected_cb as a
parameter. It is not called when WPS connection is cancelled by calling
wifi_manager_cancel_wps().
Change-Id: Ie209938c659ea601e4bdb9dbe3abf88e809fff4a
Signed-off-by: Cheoleun Moon <chleun.moon@samsung.com>
Cheoleun Moon [Thu, 14 Feb 2019 08:37:32 +0000 (17:37 +0900)]
Add a condition for NET_ERR_ALREADY_EXISTS in __convert_to_ap_error_type
Change-Id: Ic155a6585d4125fdf34ce74e64d2f667387f4f63
Signed-off-by: Cheoleun Moon <chleun.moon@samsung.com>
Jaehyun Kim [Fri, 1 Feb 2019 10:23:04 +0000 (19:23 +0900)]
Reset service_state value in initialization time
The service_state value remains as the value at the time of deinitializing when reinitializing after deinitialization.
For this reason, it may be different from the actual value in some cases.
Change-Id: Ia91af535a76ef7d15f270e8e0c485e44a9a76cd4
Signed-off-by: Jaehyun Kim <jeik01.kim@samsung.com>
Cheoleun Moon [Tue, 29 Jan 2019 09:01:11 +0000 (18:01 +0900)]
Fix to specify that WIFI_MANAGER_ERROR_NOW_IN_PROGRESS is returned
1. Although some APIs return WIFI_MANAGER_ERROR_NOW_IN_PROGRESS, the
description of those APIs don't specify it.
2. wifi_manager_connect() return WIFI_MANAGER_ERROR_OPERATION_FAILED
instead of WIFI_MANAGER_ERROR_NOW_IN_PROGRESS in the scenario that AP requires password.
Fix to return the correct error.
Change-Id: Ibb5fe266d150f8b1c43137081d4da787df5a0f4a
Signed-off-by: Cheoleun Moon <chleun.moon@samsung.com>
hyunuktak [Thu, 17 Jan 2019 00:32:07 +0000 (09:32 +0900)]
Fix a svace issue for memory leak
Change-Id: If2eab9f054b181306999ac7e00723dd4abefe063
Signed-off-by: hyunuktak <hyunuk.tak@samsung.com>
Jaehyun Kim [Mon, 17 Dec 2018 11:56:46 +0000 (11:56 +0000)]
Merge "Added internal CAPI to check for 5Ghz band support." into tizen
Abhishek Sansanwal [Thu, 13 Dec 2018 04:56:16 +0000 (10:26 +0530)]
Added internal CAPI to check for 5Ghz band support.
Change-Id: I1dd38a0d3ee48b264a2cc8503de48c24b2d5ca78
Signed-off-by: Abhishek Sansanwal <abhishek.s94@samsung.com>
Seonah Moon [Mon, 10 Dec 2018 11:31:25 +0000 (20:31 +0900)]
Fix dlog format error
Change-Id: Id49e0f2cd4a894c14cac94a545741aa347b9dcae
Jaehyun Kim [Wed, 21 Nov 2018 03:58:08 +0000 (12:58 +0900)]
Validate the ESSID before use
Change-Id: I2c2041305d2e20aebc4d5a6fe1255df8686877c8
Signed-off-by: Jaehyun Kim <jeik01.kim@samsung.com>
Jaehyun Kim [Thu, 1 Nov 2018 08:55:56 +0000 (17:55 +0900)]
Disconnect and forget the AP when removing the AP configuration.
Change-Id: I2daf6e343e796012eee2d48e322b73c1d6463c74
Signed-off-by: Jaehyun Kim <jeik01.kim@samsung.com>
Jaehyun Kim [Tue, 20 Nov 2018 08:40:49 +0000 (08:40 +0000)]
Merge "Implement wifi_manager_get_connection_state() using connman dbus methods instead of net-config" into tizen
Jaehyun Kim [Tue, 20 Nov 2018 08:32:24 +0000 (08:32 +0000)]
Merge "Added unexpected state transition handling" into tizen
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>
Abhishek Sansanwal [Thu, 15 Nov 2018 09:07:10 +0000 (14:37 +0530)]
Implement wifi_manager_get_connection_state() using connman dbus methods instead of net-config
Change-Id: Idebd2dda6e2cccecb52dc741248569c284b9ab16
Signed-off-by: Abhishek Sansanwal <abhishek.s94@samsung.com>
Jaehyun Kim [Thu, 18 Oct 2018 06:55:21 +0000 (15:55 +0900)]
Added unexpected state transition handling
Change-Id: I15dcd0876b6785d997fe1e90a72f9e6795241211
Signed-off-by: Jaehyun Kim <jeik01.kim@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>