Bhaskar Dutta [Fri, 20 Jul 2018 12:10:11 +0000 (17:40 +0530)]
Fixed the EAP security issue
Description :
1. App send anonymous identity and connect with EAP network.
And connman store it inside corresponding network pointer.
2. Then if user disconnect that connection,forgetAP will be called.
And connman does not clear last anonymous identity data for that service.
3. Next time when user again connect with same EAP network, but without anonymous identity.
Then previous anonymous identity will be passwed to WPA suplicant. But blank anonymous identity should be treated.
Change-Id: I267bea4d394390e82351ae997229c69785ea6d6d
Signed-off-by: Bhaskar Dutta <bhaskar.d@samsung.com>
Saurav Babu [Thu, 5 Jul 2018 09:32:32 +0000 (15:02 +0530)]
service: Add new property to set passphrase of service
When AP is connected using WPS without SSID then its password needs to
be saved for future autoconnection
Change-Id: I7d771c14867e19c379ff4bba262f10a2fb578c17
Signed-off-by: Saurav Babu <saurav.babu@samsung.com>
Jaehyun Kim [Thu, 28 Jun 2018 10:07:40 +0000 (19:07 +0900)]
Fixed an issue where communication with the telephony failed.
Change-Id: I0fee6ddc39aa6eacb268ade832a442c90a5961bd
Signed-off-by: Jaehyun Kim <jeik01.kim@samsung.com>
Saurav Babu [Tue, 5 Jun 2018 10:50:56 +0000 (16:20 +0530)]
Upstream: gdbus: Fixed incorrect DBusConnection reference counting
Commit ID:
c42a5f926fe2109e7a1dcc58fe6713bc3f5fd21d
Change-Id: I26ebd6150b183da7f1bf7102db8935c3bde6574e
Signed-off-by: Saurav Babu <saurav.babu@samsung.com>
Saurav Babu [Tue, 5 Jun 2018 07:27:31 +0000 (12:57 +0530)]
telephony: Fixed memory leak
Valgrind reported memory leak with below backtrace
==3471== 1,934 (80 direct, 1,854 indirect) bytes in 2 blocks are
definitely lost in loss record 190 of 194
==3471== at 0x484801C: calloc (vg_replace_malloc.c:711)
==3471== by 0x49D687B: dbus_malloc0 (dbus-memory.c:572)
==3471== by 0x49BB9A3: _dbus_pending_call_new_unlocked (dbus-pending-call.c:124)
==3471== by 0x4995963: dbus_connection_send_with_reply (dbus-connection.c:3449)
==3471== by 0x135D8D: __dbus_request.constprop.8 (telephony.c:396)
==3471== by 0x135E6D: __request_get_services (telephony.c:477)
==3471== by 0x136F19: __add_modem (telephony.c:802)
==3471== by 0x13732F: __response_get_modems (telephony.c:464)
==3471== by 0x498FABB: complete_pending_call_and_unlock (dbus-connection.c:2340)
==3471== by 0x49981BF: dbus_connection_dispatch (dbus-connection.c:4757)
==3471== by 0x18E815: message_dispatch (mainloop.c:72)
==3471== by 0x48BB8E7: g_main_dispatch (gmain.c:3234)
==3471== by 0x48BB8E7: g_main_context_dispatch (gmain.c:3887
When dbus response is received then we should unref memory allocated by
libdbus
Change-Id: I81c514506f0df42e537d63382b2eb2ebc51c58c8
Signed-off-by: Saurav Babu <saurav.babu@samsung.com>
Saurav Babu [Wed, 30 May 2018 07:06:40 +0000 (12:36 +0530)]
gsupplicant: Fixed invalid read issue
==1071== Invalid read of size 4
==1071== at 0x48DBB00: g_slist_length (gslist.c:856)
==1071== by 0x12A3C7: add_or_replace_bss_to_network (supplicant.c:1930)
==1071== by 0x12BB4D: signal_bss_changed (supplicant.c:3194)
==1071== by 0x12AFD1: g_supplicant_filter (supplicant.c:4038)
==1071== by 0x4998A17: dbus_connection_dispatch (dbus-connection.c:4808)
==1071== by 0x18E931: message_dispatch (mainloop.c:76)
==1071== by 0x48BB8E7: g_main_dispatch (gmain.c:3234)
==1071== by 0x48BB8E7: g_main_context_dispatch (gmain.c:3887)
==1071== by 0x48BBC77: g_main_context_iterate.isra.30 (gmain.c:3960)
==1071== by 0x48BBFD7: g_main_loop_run (gmain.c:4156)
==1071== by 0x119389: main (main.c:851)
==1071== Address 0x4e800a4 is 4 bytes inside a block of size 8 free'd
==1071== at 0x4846EC8: free (vg_replace_malloc.c:530)
==1071== by 0x48DB10F: g_slice_free_chain_with_offset (gslice.c:1232)
==1071== by 0x12A03F: remove_bss (supplicant.c:841)
==1071== by 0x48A858F: g_hash_table_remove_all_nodes.part.0 (ghash.c:548)
==1071== by 0x48A95B7: g_hash_table_remove_all_nodes (ghash.c:1428)
==1071== by 0x48A95B7: g_hash_table_remove_all (ghash.c:1431)
==1071== by 0x48A964B: g_hash_table_destroy (ghash.c:1124)
==1071== by 0x12A8E5: remove_network (supplicant.c:814)
==1071== by 0x48A8A3F: g_hash_table_remove_internal (ghash.c:1360)
==1071== by 0x12BB47: signal_bss_changed (supplicant.c:3192)
==1071== by 0x12AFD1: g_supplicant_filter (supplicant.c:4038)
==1071== by 0x4998A17: dbus_connection_dispatch (dbus-connection.c:4808)
==1071== by 0x18E931: message_dispatch (mainloop.c:76)
==1071== Block was alloc'd at
==1071== at 0x48458A4: malloc (vg_replace_malloc.c:299)
==1071== by 0x48C11B3: g_malloc (gmem.c:94)
==1071== by 0x48DA4A3: g_slice_alloc (gslice.c:1025)
==1071== by 0x48DB4AF: g_slist_prepend (gslist.c:254)
==1071== by 0x12C7D7: bss_process_ies (supplicant.c:2176)
==1071== by 0x12C7D7: bss_property (supplicant.c:2388)
==1071== by 0x1301FF: supplicant_dbus_property_foreach (dbus.c:145)
==1071== by 0x1302A1: property_get_all_reply (dbus.c:184)
==1071== by 0x498FABB: complete_pending_call_and_unlock (dbus-connection.c:2340)
==1071== by 0x49981BF: dbus_connection_dispatch (dbus-connection.c:4757)
==1071== by 0x18E931: message_dispatch (mainloop.c:76)
==1071== by 0x48BB8E7: g_main_dispatch (gmain.c:3234)
==1071== by 0x48BB8E7: g_main_context_dispatch (gmain.c:3887)
==1071== by 0x48BBC77: g_main_context_iterate.isra.30 (gmain.c:3960)
==1679== Invalid read of size 4
==1679== at 0x484D358: memmove (vg_replace_strmem.c:1258)
==1679== by 0x49D8307: memmove (string3.h:59)
==1679== by 0x49D8307: copy.isra.3 (dbus-string.c:1219)
==1679== by 0x49D209F: marshal_1_octets_array (dbus-marshal-basic.c:868)
==1679== by 0x49D209F: _dbus_marshal_write_fixed_multi (dbus-marshal-basic.c:1041)
==1679== by 0x49A4A3B: _dbus_type_writer_write_fixed_multi (dbus-marshal-recursive.c:2681)
==1679== by 0x13088D: supplicant_dbus_property_append_fixed_array (dbus.c:611)
==1679== by 0x12E775: supplicant_dbus_dict_append_fixed_array (dbus.h:121)
==1679== by 0x12E775: interface_add_network_params (supplicant.c:5518)
==1679== by 0x1306FB: supplicant_dbus_method_call (dbus.c:515)
==1679== by 0x12AF05: decryption_request_reply (supplicant.c:5713)
==1679== by 0x498FABB: complete_pending_call_and_unlock (dbus-connection.c:2340)
==1679== by 0x49981BF: dbus_connection_dispatch (dbus-connection.c:4757)
==1679== by 0x18E931: message_dispatch (mainloop.c:76)
==1679== by 0x48BB8E7: g_main_dispatch (gmain.c:3234)
==1679== by 0x48BB8E7: g_main_context_dispatch (gmain.c:3887)
Change-Id: I53652b06891fa8465e9dd425f425210ebc67ee9f
Signed-off-by: Saurav Babu <saurav.babu@samsung.com>
Saurav Babu [Thu, 24 May 2018 06:31:54 +0000 (12:01 +0530)]
Fixed various memory leaks
Below are few of the valgrind outputs:
==2694== 7,484 (576 direct, 6,908 indirect) bytes in 72 blocks are definitely lost in loss record 196 of 197
==2694== at 0x48458A4: malloc (vg_replace_malloc.c:299)
==2694== by 0x48C11B3: g_malloc (gmem.c:94)
==2694== by 0x48DA4A3: g_slice_alloc (gslice.c:1025)
==2694== by 0x48DBA13: g_slist_append (gslist.c:213)
==2694== by 0x12EF29: g_supplicant_network_get_wifi_vsie(supplicant.c:1605)
==2694== by 0x127097: network_added (wifi.c:3447)
==2694== by 0x12A41D: callback_network_added (supplicant.c:624)
==2694== by 0x12A41D: add_or_replace_bss_to_network(supplicant.c:1967)
==2694== by 0x12B9C9: interface_bss_added_with_keys(supplicant.c:2457)
==2694== by 0x12B9C9: signal_bss_added (supplicant.c:3106)
==2694== by 0x12AF1D: g_supplicant_filter (supplicant.c:4045)
==2694== by 0x49904EB: dbus_connection_dispatch (in/usr/lib/libdbus-1.so.3.14.6)
==2694== by 0x18E921: message_dispatch (mainloop.c:76)
==2694== by 0x48BB8E7: g_main_dispatch (gmain.c:3234)
==2694== by 0x48BB8E7: g_main_context_dispatch (gmain.c:3887)
==2694== 1,980 (304 direct, 1,676 indirect) bytes in 38 blocks are definitely lost in loss record 187 of 197
==2694== at 0x48458A4: malloc (vg_replace_malloc.c:299)
==2694== by 0x48C11B3: g_malloc (gmem.c:94)
==2694== by 0x48DA4A3: g_slice_alloc (gslice.c:1025)
==2694== by 0x48DBA13: g_slist_append (gslist.c:213)
==2694== by 0x128D3F: update_bssid_list (supplicant.c:1637)
==2694== by 0x48A989F: g_hash_table_foreach (ghash.c:1610)
==2694== by 0x12EF91: g_supplicant_network_get_bssid_list(supplicant.c:1649)
==2694== by 0x127177: network_added (wifi.c:3489)
==2694== by 0x1294D5: callback_network_added (supplicant.c:624)
==2694== by 0x1294D5: scan_network_update (supplicant.c:2810)
==2694== by 0x130151: supplicant_dbus_array_foreach (dbus.c:106)
==2694== by 0x1298E3: scan_bss_data (supplicant.c:2824)
==2694== by 0x130071: property_get_reply (dbus.c:273)
==2694== 28 bytes in 2 blocks are definitely lost in loss record 87 of 197
==2694== at 0x48458A4: malloc (vg_replace_malloc.c:299)
==2694== by 0x48C11B3: g_malloc (gmem.c:94)
==2694== by 0x48DBF03: g_strdup (gstrfuncs.c:363)
==2694== by 0x12A65B: merge_network (supplicant.c:1737)
==2694== by 0x12A7D9: network_property (supplicant.c:1758)
==2694== by 0x12A7D9: interface_network_added (supplicant.c:1808)
==2694== by 0x12AF1D: g_supplicant_filter (supplicant.c:4045)
==2694== by 0x49904EB: dbus_connection_dispatch (in /usr/lib/libdbus-1.so.3.14.6)
==2694== by 0x18E921: message_dispatch (mainloop.c:76)
==2694== by 0x48BB8E7: g_main_dispatch (gmain.c:3234)
==2694== by 0x48BB8E7: g_main_context_dispatch (gmain.c:3887)
==2694== by 0x48BBC77: g_main_context_iterate.isra.30 (gmain.c:3960)
==2694== by 0x48BBFD7: g_main_loop_run (gmain.c:4156)
==2694== by 0x119391: main (main.c:851)
Change-Id: I3d86724c44b1593e5444a65eb7519bc150e50ee5
Signed-off-by: Saurav Babu <saurav.babu@samsung.com>
Jaehyun Kim [Wed, 23 May 2018 12:47:34 +0000 (21:47 +0900)]
gsupplicant: Fixed resource leak
Change-Id: I423a3e680e528a36f98db5bdc2f68db15e707015
Signed-off-by: Jaehyun Kim <jeik01.kim@samsung.com>
Saurav Babu [Wed, 23 May 2018 11:50:59 +0000 (17:20 +0530)]
gsupplicant: Fixed crash issue
Change-Id: I568ffb360881ed78ac3c119c458220829d582d56
Signed-off-by: Saurav Babu <saurav.babu@samsung.com>
Saurav Babu [Mon, 21 May 2018 09:46:26 +0000 (15:16 +0530)]
Don't remove network when G_SUPPLICANT_STATE_DISCONNECTED is received
In case of WPS PBC connection without SSID, sometimes few attempts fail
and on subsequent retries connection is established successfully. If we
remove network when disconnection is received for the first time from
wpa_supplicant then future retries doesn't take place and WPS connection
without SSID always fails
Change-Id: I2a5754c5e4a442e3305befdea3a94a6c728ef817
Signed-off-by: Saurav Babu <saurav.babu@samsung.com>
Saurav Babu [Fri, 18 May 2018 05:54:45 +0000 (11:24 +0530)]
gsupplicant: Fixed crash issue when network exists in supplicant
In some cases interface->network_path exists but
interface->network_info.ssid is NULL which leads to crash with below
backtrace:
Program received signal SIGSEGV, Segmentation fault.
0xb6b0d184 in memcmp () from /lib/libc.so.6
(gdb) bt
#0 0xb6b0d184 in memcmp () from /lib/libc.so.6
#1 0xb6eb5530 in compare_network_parameters (ssid=0xb85aec20,
interface=0xb85a1710) at gsupplicant/supplicant.c:445
#2 g_supplicant_interface_connect (interface=0xb85a1710,
ssid=0xb85aec20, callback=0xb6eab039 <connect_callback>,
user_data=0xb859cbb0) at gsupplicant/supplicant.c:5839
#3 0xb6ecc000 in __connman_network_connect (network=0xb859cbb0) at
src/network.c:1711
#4 0xb6edaabe in service_connect (service=0xb85a6558) at
src/service.c:8143
#5 __connman_service_connect (service=service@entry=0xb85a6558,
reason=reason@entry=CONNMAN_SERVICE_CONNECT_REASON_USER) at
src/service.c:8203
#6 0xb6edc148 in connect_service (conn=<optimized out>, msg=0xb85d3b80,
user_data=0xb85a6558) at src/service.c:5570
#7 0xb6f1653e in process_message
(connection=connection@entry=0xb859b600,
message=message@entry=0xb85d3b80,
iface_user_data=iface_user_data@entry=0xb85a6558, method=<optimized
out>, method=<optimized out>) at gdbus/object.c:259
#8 0xb6f167be in generic_message (connection=0xb859b600,
message=0xb85d3b80, user_data=<optimized out>) at gdbus/object.c:1071
#9 0xb6d126b0 in ?? () from /lib/libdbus-1.so.3
#10 0xb6d014a8 in dbus_connection_dispatch () from /lib/libdbus-1.so.3
#11 0xb6f144f2 in message_dispatch (data=0xb859b600) at
gdbus/mainloop.c:76
#12 0xb6d898e8 in g_main_dispatch (context=0xb8599808) at gmain.c:3234
#13 g_main_context_dispatch (context=context@entry=0xb8599808) at
gmain.c:3887
#14 0xb6d89c78 in g_main_context_iterate (context=0xb8599808,
block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at
gmain.c:3960
#15 0xb6d89fd8 in g_main_loop_run (loop=0xb85999a8) at gmain.c:4156
#16 0xb6e9f352 in main (argc=<optimized out>, argv=<optimized out>) at
src/main.c:851
Change-Id: I9ed4c69d31389bd7aa0c8ab250d92c45cdab7507
Signed-off-by: Saurav Babu <saurav.babu@samsung.com>
Mayank Haarit [Fri, 20 Apr 2018 15:27:32 +0000 (20:57 +0530)]
Add BSSID , signal strength and frequency list of the APs
This patch sends the list of BSSID, signal strength and
frequency of an APs having same SSID and Security type.
Change-Id: I368d37de310687ca173418dfad91fae7082b2357
Signed-off-by: Mayank Haarit <mayank.h@samsung.com>
Mayank Haarit [Wed, 18 Apr 2018 14:29:49 +0000 (19:59 +0530)]
Added logic to get country code of APs
It also includes parsing country code from IEs received from the supplicant
Change-Id: Iea5f8b2ea7cc8fefe07591cc4d636d27b015d427
Signed-off-by: Mayank Haarit <mayank.h@samsung.com>
taesub kim [Mon, 16 Apr 2018 08:06:44 +0000 (08:06 +0000)]
Merge "Add SSID and Frequency mixed scan." into tizen
Niraj Kumar Goit [Thu, 5 Apr 2018 06:27:15 +0000 (11:57 +0530)]
Add SSID and Frequency mixed scan.
Change-Id: I6ca91a5f073c11712a936844589aa72c27c0145e
Signed-off-by: Niraj Kumar Goit <niraj.g@samsung.com>
taesub kim [Tue, 10 Apr 2018 02:39:51 +0000 (02:39 +0000)]
Merge "Added dbus/cynara policy" into tizen
hyunuktak [Tue, 3 Apr 2018 04:36:36 +0000 (13:36 +0900)]
Fixed a coverity for resource leak
Change-Id: I990f3c1d314580546c4dfa4716d1a2e535bcd491
Signed-off-by: hyunuktak <hyunuk.tak@samsung.com>
taesub kim [Mon, 2 Apr 2018 08:36:12 +0000 (17:36 +0900)]
Added dbus/cynara policy
Change-Id: I82192eb00243dd45e64e37e806d7c7e90fa3fac2
Signed-off-by: Taesub Kim <taesub.kim@samsung.com>
hyunuktak [Fri, 23 Mar 2018 01:27:16 +0000 (10:27 +0900)]
Fix a coverity for logically dead code
Change-Id: I649ed8bbf277611324934db7895d7a8c0cb25ec8
Signed-off-by: hyunuktak <hyunuk.tak@samsung.com>
Niraj Kumar Goit [Thu, 15 Feb 2018 11:19:26 +0000 (16:49 +0530)]
[connman]Added support of EAP-FAST,EAP-PWD and EAP-AKA'.
Change-Id: Ibb75ff2c2e54c8d3d53f3b184502647918bf7e24
igned-off-by: Niraj Kumar Goit <niraj.g@samsung.com>
Jaehyun Kim [Tue, 20 Feb 2018 06:37:40 +0000 (15:37 +0900)]
Added new dbus method to support bssid based connection
Change-Id: I95d2a56c1d26db06cbdb5c85dc0e2b33b3c10da3
Signed-off-by: Jaehyun Kim <jeik01.kim@samsung.com>
taesub kim [Tue, 23 Jan 2018 08:06:16 +0000 (08:06 +0000)]
Merge "Fixed uninitialized scalar variable" into tizen
hyunuktak [Tue, 23 Jan 2018 07:08:42 +0000 (16:08 +0900)]
Fixed uninitialized scalar variable
Change-Id: Ia285faae7af652612fadbe95f0863bc315d429a6
Niraj Kumar Goit [Thu, 4 Jan 2018 09:18:49 +0000 (14:48 +0530)]
Modified logic to process each VSIE of all vendors.
Modified logic to process each VSIE of all vendors instead of
only samsung vendor(OUI: 001632). Received VSIE will be appended
in the list and shared with application.
Change-Id: Ifbb0159f40a8949a6f117416e5d436d5c2299b49
Jaehyun Kim [Fri, 12 Jan 2018 09:38:45 +0000 (18:38 +0900)]
Handles the passphrase decryption failure case
Change-Id: I8511bbc2b025f296770420dc9c8e7b85aa2be60d
Signed-off-by: Jaehyun Kim <jeik01.kim@samsung.com>
Seonah Moon [Tue, 23 Jan 2018 05:50:50 +0000 (14:50 +0900)]
Updated connman to version 1.35
Change-Id: I13526fbf80296a79be15548fc226a308941ac9ec
Signed-off-by: Taesub Kim <taesub.kim@samsung.com>
taesub kim [Mon, 22 Jan 2018 05:52:51 +0000 (05:52 +0000)]
Merge "Modified logic to process each VSIE of all vendors." into tizen
Jaehyun Kim [Fri, 12 Jan 2018 09:38:45 +0000 (18:38 +0900)]
Handles the passphrase decryption failure case
Change-Id: Id8a29b6156449bf3dd23f79a7224ab39e9599b82
Signed-off-by: Jaehyun Kim <jeik01.kim@samsung.com>
Seonah Moon [Mon, 8 Jan 2018 04:42:54 +0000 (13:42 +0900)]
Imported Upstream version 1.35
Change-Id: I174854914d9fd06a813270b57d1f7bc2bac63c6a
Signed-off-by: Seonah Moon <seonah1.moon@samsung.com>
Niraj Kumar Goit [Thu, 4 Jan 2018 09:18:49 +0000 (14:48 +0530)]
Modified logic to process each VSIE of all vendors.
Modified logic to process each VSIE of all vendors instead of
only samsung vendor(OUI: 001632). Received VSIE will be appended
in the list and shared with application.
Change-Id: I11fee186c04677fdcd7746fcef7fd1dee4a0b02e
Signed-off-by: Niraj Kumar Goit <niraj.g@samsung.com>
taesub kim [Wed, 3 Jan 2018 07:50:24 +0000 (16:50 +0900)]
Add new rpm with disalbled-ethernet
Change-Id: Ib5b1b2a166d26180f75793f03d8770ef37cc1329
Jaehyun Kim [Thu, 28 Dec 2017 11:02:31 +0000 (20:02 +0900)]
Make WiFi passphrase enc/dec routine async to prevent mutual synchronous call to net-config
Change-Id: Ic7795b430e92b7ee81d4c65b39ef1aa914fccc1a
Signed-off-by: Jaehyun Kim <jeik01.kim@samsung.com>
Saurav Babu [Wed, 27 Dec 2017 10:43:05 +0000 (16:13 +0530)]
connman: Get HS20 property of service correctly
Change-Id: I21d3a4ba5632d5a00a3254137b12dfdbd1dbe3dc
Signed-off-by: Saurav Babu <saurav.babu@samsung.com>
Niraj Kumar Goit [Wed, 13 Dec 2017 06:08:15 +0000 (11:38 +0530)]
[Upstream] Wait 4 seconds for RA before re-sending RS messages.
As per RFC 4861, a host should transmit up to 3 Router Solicitation messages,
each separated by at least RTR_SOLICITATION_INTERVAL(4) seconds to obtain
RA for IPv6 auto-configuration.
Change-Id: I970a69737dd0dd030291d725888cac64bddd6b16
Signed-off-by: Niraj Kumar Goit <niraj.g@samsung.com>
taesub kim [Wed, 13 Dec 2017 07:08:17 +0000 (16:08 +0900)]
Remove non-essential logs
Change-Id: I486b7e8c47d4d46dab0bc1868daf9fd56f929619
Signed-off-by: Taesub Kim <taesub.kim@samsung.com>
Jaehyun Kim [Tue, 28 Nov 2017 13:09:43 +0000 (22:09 +0900)]
Add WiFi passphrase encryption routine
Change-Id: Ife8902c48b338cec4a91429441e8435a6b21bc7e
Signed-off-by: Jaehyun Kim <jeik01.kim@samsung.com>
taesub kim [Tue, 12 Dec 2017 03:37:34 +0000 (12:37 +0900)]
Fixed the keyload issue when wifi is initial connection
link: https://review.tizen.org/gerrit/#/c/117897/
Change-Id: I8dc20e796bb7c84bb56bebb25faa609e0056fa74
Signed-off-by: Taesub Kim <taesub.kim@samsung.com>
taesub kim [Mon, 11 Dec 2017 03:38:47 +0000 (03:38 +0000)]
Merge "In dhcpv6 request always set G_DHCPV6_IA_NA option." into tizen
taesub kim [Mon, 11 Dec 2017 03:38:37 +0000 (03:38 +0000)]
Merge "Process RDNSS option for IPv6 if connecting or connected." into tizen
Niraj Kumar Goit [Thu, 7 Dec 2017 12:04:39 +0000 (17:34 +0530)]
In dhcpv6 request always set G_DHCPV6_IA_NA option.
When privacy extension is enabled then connman requests
OPTION_IA_TA (4) from DHCPv6 server. This option is used to request
temporary IPv6 address from DHCPv6 server but we found that DHCPv6
server never provided temporary IPv6 address and connman resend dhcpv6
requests. So always set OPTION_IA_NA in dhcpv6 request to get IPv6
address from DHCPv6 server.
Change-Id: Iec5623a14ba6cee64ad5b97fcf5246ae09947968
Signed-off-by: Niraj Kumar Goit <niraj.g@samsung.com>
Niraj Kumar Goit [Thu, 7 Dec 2017 11:48:09 +0000 (17:18 +0530)]
Process RDNSS option for IPv6 if connecting or connected.
Process RDNSS option for IPv6 if network is connecting or connected
and set IPv6 DNS address in the system.
Change-Id: I28bb7be76a60003364030d09aabfca27886531f3
Signed-off-by: Niraj Kumar Goit <niraj.g@samsung.com>
Saurav Babu [Thu, 7 Dec 2017 11:42:46 +0000 (11:42 +0000)]
Revert "[connman] Configure IPv6 after IPv4 dhcp succeed."
This reverts commit
0d3b96f6fe23316f15444576b5a590a917beb8a5.
Change-Id: I83a7f0b3a5485bb6bd14f863b0e180bea1570899
taesub kim [Sun, 26 Nov 2017 23:02:18 +0000 (08:02 +0900)]
Added cap_dac_override capability
Change-Id: I0c668091b85bf1f4f31ea2d1a9c6d53d73cd5736
Signed-off-by: Taesub Kim <taesub.kim@samsung.com>
Jiung [Tue, 21 Nov 2017 06:18:55 +0000 (15:18 +0900)]
Remove openssl function to solve license conflict
Change-Id: Ib902eed40c45365da17f64bf8b6ea504725ff478
Signed-off-by: Yu jiung <jiung.yu@samsung.com>
taesub kim [Wed, 15 Nov 2017 00:37:43 +0000 (09:37 +0900)]
Added security-config requires
Change-Id: I8ba6647c8e53d5ade90addd35c47628a89c3f5f0
Signed-off-by: Taesub Kim <taesub.kim@samsung.com>
taesub kim [Wed, 8 Nov 2017 08:47:16 +0000 (08:47 +0000)]
Merge "Enable IPv6 privacy address support." into tizen
Niraj Kumar Goit [Wed, 8 Nov 2017 07:09:41 +0000 (12:39 +0530)]
Enable IPv6 privacy address support.
Change-Id: Icbffd857f35aff492e343af3da855bdc69d3b22d
Signed-off-by: Niraj Kumar Goit <niraj.g@samsung.com>
taesub kim [Wed, 8 Nov 2017 07:06:17 +0000 (07:06 +0000)]
Merge "Append AssocStatusCode Property for Wi-Fi Manager Layer" into tizen
taesub kim [Wed, 8 Nov 2017 07:05:48 +0000 (07:05 +0000)]
Merge "Added handling of "AssocStatusCode" signal" into tizen
Niraj Kumar Goit [Mon, 6 Nov 2017 06:32:53 +0000 (12:02 +0530)]
Remove unused "GetVsies" Dbus method.
Change-Id: I4b666eb1e00852ef6a33451343f8ad78aa857557
Signed-off-by: Niraj Kumar Goit <niraj.g@samsung.com>
Niraj Kumar Goit [Fri, 3 Nov 2017 12:18:33 +0000 (17:48 +0530)]
Added vsie information of AP in append_properties function.
Change-Id: I97535663a8b591e4adbbac3c4bb0cd649a388672
Signed-off-by: Niraj Kumar Goit <niraj.g@samsung.com>
Maneesh Jain [Mon, 30 Oct 2017 12:48:05 +0000 (18:18 +0530)]
Append AssocStatusCode Property for Wi-Fi Manager Layer
Change-Id: Ie7fc6842d3c000ff94e8d9659370242a210cfaa1
Signed-off-by: Maneesh Jain <maneesh.jain@samsung.com>
Maneesh Jain [Thu, 26 Oct 2017 11:57:35 +0000 (17:27 +0530)]
Added handling of "AssocStatusCode" signal
Description : This can be used by application in case AP is denying association with status code
Change-Id: I195492be4320032b460b708034f044eec03b71dd
Signed-off-by: Maneesh Jain <maneesh.jain@samsung.com>
taesub kim [Fri, 3 Nov 2017 01:30:14 +0000 (01:30 +0000)]
Merge "Fix SVACE issue @SVACE ID WGID: 30779 & 30802" into tizen
Maneesh Jain [Mon, 30 Oct 2017 04:26:07 +0000 (09:56 +0530)]
Fix SVACE issue @SVACE ID WGID: 30779 & 30802
Change-Id: I183d2e9958bc0278f2d0eff12efbcab07a2148d1
Signed-off-by: Maneesh Jain <maneesh.jain@samsung.com>
Seonah Moon [Thu, 2 Nov 2017 01:01:45 +0000 (10:01 +0900)]
Fix memory leak
Change-Id: I6085b4b3cfe0587d559f4badda855a832380d6dd
Seonah Moon [Tue, 31 Oct 2017 04:35:57 +0000 (13:35 +0900)]
Fixed gateway issue for ipv6
Change-Id: I27a77e6a39fb11095446c95fb9765da5e7e156f6
Signed-off-by: Taesub Kim <taesub.kim@samsung.com>
Jiung [Tue, 24 Oct 2017 05:33:40 +0000 (14:33 +0900)]
Regard host name as remote address and add it to vici arguments
Change-Id: I78beac887cc3c91165326c26511ad10e5aa194e0
Signed-off-by: Yu jiung <jiung.yu@samsung.com>
Jiung [Tue, 24 Oct 2017 05:32:06 +0000 (14:32 +0900)]
Add capabilities to run a charon IPsec daemon
Change-Id: If32cff2a0e60d7e50d2b4cd5669536267d4bef4c
Signed-off-by: Yu jiung <jiung.yu@samsung.com>
chleun.moon [Thu, 19 Oct 2017 10:38:09 +0000 (19:38 +0900)]
[CID-32919, 33501] Unchecked return value
Change-Id: I561f537c292f24af2e9956a7694e3868ee0ccd32
Signed-off-by: Cheoleun Moon <chleun.moon@samsung.com>
taesub kim [Tue, 17 Oct 2017 23:04:58 +0000 (23:04 +0000)]
Merge "Revert "Avoid build warnings for __connman_logs_s"" into tizen
taesub kim [Tue, 17 Oct 2017 23:04:43 +0000 (23:04 +0000)]
Merge "Revert "Fix SVACE issue for CID:24236, 31182"" into tizen
Saurav Babu [Tue, 17 Oct 2017 09:08:40 +0000 (09:08 +0000)]
Revert "Avoid build warnings for __connman_logs_s"
This reverts commit
866d1b7ad517a47827fd59484a4f3a333dad1a9f.
Change-Id: Ib057b572b848d725411544fc78db94eb76a50abc
Saurav Babu [Tue, 17 Oct 2017 09:05:49 +0000 (09:05 +0000)]
Revert "Fix SVACE issue for CID:24236, 31182"
This reverts commit
a711ff292b5f32788175bf64656f6a6d14c5f372.
Change-Id: Id10d81c311605e6a8d74735f3fd7e7df2a2aae6c
taesub kim [Mon, 16 Oct 2017 23:59:00 +0000 (23:59 +0000)]
Merge "Avoid build warnings for __connman_logs_s" into tizen
Milind Ramesh Murhekar [Mon, 16 Oct 2017 08:19:02 +0000 (13:49 +0530)]
Avoid build warnings for __connman_logs_s
Description: This patch avoids build warnings
for __connman_log_s()
Change-Id: Ifd74090bd7d42744786dd1775046df777eaedb7f
Signed-off-by: Milind Ramesh Murhekar <m.murhekar@samsung.com>
taesub kim [Mon, 16 Oct 2017 08:02:08 +0000 (08:02 +0000)]
Merge "Fix SVACE issue for CID:24236, 31182" into tizen
Milind Ramesh Murhekar [Mon, 16 Oct 2017 07:52:03 +0000 (13:22 +0530)]
Fix SVACE issue for CID:24236, 31182
Description: This patch fixes the SVACE issue
for remove() function.
Change-Id: Ie9fedadb8e36d91f9a197635eb4cee6a89ad7f7b
Signed-off-by: Milind Ramesh Murhekar <m.murhekar@samsung.com>
Nishant Chaprana [Mon, 16 Oct 2017 04:18:06 +0000 (09:48 +0530)]
Fixed handle leak while returning error from specific_scan()
Change-Id: I2fec8c8788de21619d48b8955c7e8312bf92c491
Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
Jaehyun Kim [Wed, 11 Oct 2017 08:47:42 +0000 (17:47 +0900)]
[WGID-302103] Fix dereference without null check
Change-Id: I0f054b8f4cba4396b6d4018a4bb41504131a1c51
Signed-off-by: Jaehyun Kim <jeik01.kim@samsung.com>
taesub kim [Wed, 11 Oct 2017 02:34:44 +0000 (02:34 +0000)]
Merge "[CID-32053] Remove dead code" into tizen
taesub kim [Wed, 11 Oct 2017 01:54:18 +0000 (01:54 +0000)]
Merge "@fix: Disconnect Reason code was not getting reset" into tizen
hyunuktak [Tue, 10 Oct 2017 09:51:26 +0000 (18:51 +0900)]
[CID-32053] Remove dead code
Change-Id: I27db8650a701d9c7986636077bf041fdfa72a319
Signed-off-by: hyunuktak <hyunuk.tak@samsung.com>
taesub kim [Tue, 10 Oct 2017 08:35:39 +0000 (08:35 +0000)]
Merge "[CID-28720] Remove unused value" into tizen
taesub kim [Tue, 10 Oct 2017 08:35:22 +0000 (08:35 +0000)]
Merge "[CID-32919, 33501] Fix bug" into tizen
chleun.moon [Tue, 10 Oct 2017 07:36:54 +0000 (16:36 +0900)]
[CID-28720] Remove unused value
Change-Id: Ie59288fededb1bb7a09d234d8300e6893fab99c1
Signed-off-by: Cheoleun Moon <chleun.moon@samsung.com>
chleun.moon [Tue, 10 Oct 2017 07:31:22 +0000 (16:31 +0900)]
[CID-32919, 33501] Fix bug
Change-Id: I8fc3c40c8a2cf3d9e5fb840796d0f0bf0b66a072
Signed-off-by: Cheoleun Moon <chleun.moon@samsung.com>
taesub kim [Tue, 10 Oct 2017 06:19:17 +0000 (15:19 +0900)]
Added RW upgrade script
Change-Id: I2208cf0923a66c78551ac2eb13933735afe33604
Signed-off-by: Taesub Kim <taesub.kim@samsung.com>
Maneesh Jain [Tue, 10 Oct 2017 05:08:24 +0000 (10:38 +0530)]
@fix: Disconnect Reason code was not getting reset
Description: In following use case, disconnect reason code was not getting reset.
1. Connect With AP
2. Change the Password of AP
3. Check the Disconnect Reason using CAPI
4. Connect again with AP with New Password
5. Check the Disconnect Reason again : It was showing 3 in place of 0.
Change-Id: I1b1542b69ac270811ad789a4f662836241b6bf34
Signed-off-by: Maneesh Jain <maneesh.jain@samsung.com>
taesub kim [Thu, 28 Sep 2017 22:37:38 +0000 (22:37 +0000)]
Merge "wifi: Don't increase device ref count on full scan after specific scan" into tizen
Saurav Babu [Thu, 28 Sep 2017 08:34:31 +0000 (14:04 +0530)]
wifi: Don't increase device ref count on full scan after specific scan
Earlier full scan was done using throw_wifi_scan() which increases
device reference count. As we need to perform full scan then we should
directly call g_supplicant_interface_scan() without increasing the
device ref count.
Change-Id: Icb595ca714d5bf03ed0a071fcd987f9bc1b736dc
Signed-off-by: Saurav Babu <saurav.babu@samsung.com>
taesub kim [Thu, 28 Sep 2017 08:33:25 +0000 (08:33 +0000)]
Merge "Fixed a resource leak" into tizen
taesub kim [Thu, 28 Sep 2017 05:20:18 +0000 (05:20 +0000)]
Merge "[CID-26975, 36747] Fix memory leak and dereference after null check" into tizen
taesub kim [Thu, 28 Sep 2017 04:19:33 +0000 (04:19 +0000)]
Merge "Revert "wifi: Fixed issue with device reference count"" into tizen
taesub kim [Thu, 28 Sep 2017 04:14:26 +0000 (04:14 +0000)]
Revert "wifi: Fixed issue with device reference count"
This reverts commit
1141e83b5a00d11bada4e07e8203770b3d36939b.
Change-Id: I0abf48d5c45cdf16f33345fb7432ceaab4051a11
hyunuktak [Thu, 28 Sep 2017 01:07:35 +0000 (10:07 +0900)]
Fixed a resource leak
Change-Id: I70b15db8ba90fc18410072f0017f04413662cde6
Signed-off-by: hyunuktak <hyunuk.tak@samsung.com>
chleun.moon [Wed, 27 Sep 2017 10:22:29 +0000 (19:22 +0900)]
[CID-26975, 36747] Fix memory leak and dereference after null check
Change-Id: Ief1a868d989cb2cc78bb55980e3d8bee03a4a42b
Signed-off-by: Cheoleun Moon <chleun.moon@samsung.com>
Niraj Kumar Goit [Fri, 15 Sep 2017 09:54:41 +0000 (15:24 +0530)]
Append eap type property in "GetServices" Dbus method.
Change-Id: Ie9cdabbddba37fab987ec48402e7d7508949f040
Signed-off-by: Niraj Kumar Goit <niraj.g@samsung.com>
Saurav Babu [Fri, 22 Sep 2017 04:28:46 +0000 (09:58 +0530)]
wifi: Fixed issue with device reference count
Device reference count is referenced when scanning is set to true, so it
should be dereferenced only when scanning is set to false, In one
particular case scanning was not being set to false while device was
unreferenced when wifi->allow_full_scan is true.
Change-Id: Ib8fc675d224eddc8e1dfa4a4a271f7c5b64209fe
Signed-off-by: Saurav Babu <saurav.babu@samsung.com>
Jaehyun Kim [Thu, 21 Sep 2017 07:35:25 +0000 (16:35 +0900)]
[Upstream] dnsproxy: Fix crash on malformed DNS response
If the response query string is malformed, we might access memory
pass the end of "name" variable in parse_response().
Change-Id: I179583bd9f7682a49a2980d866ae3524d1b75879
Signed-off-by: Jaehyun Kim <jeik01.kim@samsung.com>
Jaehyun Kim [Tue, 19 Sep 2017 10:59:52 +0000 (19:59 +0900)]
[Upstream] ipconfig: Ensure ifname is not NULL when setting IPv6 state
This is a quick fix for the issue where removal of an interface may
cause IPv6 to be disabled/enabled on other interfaces.
When removing an ipdevice in free_ipdevice(), it is ensured that the
ifname (which we get from connman_inet_ifname()) is not NULL,
before invoking set_ipv6_state(). If a NULL ifname is passed into
set_ipv6_state(), it will apply the change to all interfaces instead
of the intended one.
Change-Id: I2b0b6494e3c2d4a80e7a8e2012f274987f6e8142
Signed-off-by: Jaehyun Kim <jeik01.kim@samsung.com>
taesub kim [Thu, 14 Sep 2017 00:36:09 +0000 (09:36 +0900)]
Add APIs to set/get auto connection mode
Change-Id: I34e42d98ab540ffb75e0ae860fb1b615ef2bddcb
Signed-off-by: Taesub Kim <taesub.kim@samsung.com>
taesub kim [Tue, 12 Sep 2017 23:51:00 +0000 (23:51 +0000)]
Merge "Send Error code only to requesting application." into tizen
taesub kim [Tue, 12 Sep 2017 23:50:49 +0000 (23:50 +0000)]
Merge "[connman] Notify 'ScanDone' signal with scan-type info." into tizen
Niraj Kumar Goit [Fri, 8 Sep 2017 13:27:21 +0000 (18:57 +0530)]
Send Error code only to requesting application.
Description: If an application request for wifi scan
and it gets failed, then send error code only to the
requesting application.
Change-Id: I90bc3b0af68e9d3ff5c2e4709f5788c1f107a854
Signed-off-by: Niraj Kumar Goit <niraj.g@samsung.com>
chleun.moon [Mon, 11 Sep 2017 01:15:47 +0000 (10:15 +0900)]
[WGID-253397, 253398] Fix unreachable code
Change-Id: Ie3faef9d95d95cbcfbd222d92f25e6eae8e41581
Signed-off-by: Cheoleun Moon <chleun.moon@samsung.com>
Niraj Kumar Goit [Mon, 4 Sep 2017 12:01:38 +0000 (17:31 +0530)]
[connman] Notify 'ScanDone' signal with scan-type info.
Description: In this patch added below changes-
1. Notify ScanDone signal with scan-type info.
2. If scanning is in-progress at connman return
error 'InProgress' to application.
Change-Id: If8427e185dd0ad811c1d1de72254f073babebbbf
Signed-off-by: Niraj Kumar Goit <niraj.g@samsung.com>
taesub kim [Wed, 6 Sep 2017 09:15:24 +0000 (09:15 +0000)]
Merge "Remove gnutls dependency from connman" into tizen
Sunmin Lee [Wed, 6 Sep 2017 07:04:10 +0000 (16:04 +0900)]
Remove not supported update script
RW update script for Tizen 2.4 (to 3.0) is not necessary in Tizen 4.0.
(Tizen 4.0 does not support upgrade from Tizen 2.4)
Remove this file in terms of clearing the redundancy.
Change-Id: I0ce9b8ccb0d9a0720bbe7588f97da7fe8b0ce522
taesub kim [Tue, 5 Sep 2017 08:37:20 +0000 (08:37 +0000)]
Merge "Change file owner and group" into tizen