summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)AuthorFilesLines
2019-01-22Increase MAX_LOG_COUNT to 15submit/tizen/20190122.080702Jaehyun Kim1-1/+1
Change-Id: I9558c05c45ec0327e15377efb61f3f19592e75af Signed-off-by: Jaehyun Kim <jeik01.kim@samsung.com>
2018-12-26Add code for handling NULL exceptionsubmit/tizen/20181227.001142accepted/tizen/unified/20181227.102126Seonah Moon1-0/+6
Change-Id: I5b3ae0a5305db81aeba848e5d7353ca44522f35c
2018-12-18Merge "[Upstream] Fix return value in error path." into tizenJaehyun Kim1-1/+1
2018-12-17Added dbus method to get whether 5Ghz band is supportedsubmit/tizen/20181217.121131accepted/tizen/unified/20181218.063104Abhishek Sansanwal2-0/+43
Change-Id: Ib3b189615648a35aa876eab3e3f61c47ac0c1e68 Signed-off-by: Abhishek Sansanwal <abhishek.s94@samsung.com>
2018-12-17[Upstream] Fix return value in error path.Niraj Kumar Goit1-1/+1
Returning -1 in a function with bool as return value is the same as returning true. Change to false to indicate error if inet_aton() fails. Change-Id: I3dea40bc2506b1a2a0a65e7e838691fc3af957bd Signed-off-by: Niraj Kumar Goit <niraj.g@samsung.com>
2018-11-06Merge "Add IEEE 802.11 protocol(b/g/n/a/ac) Modes of APs" into tizensubmit/tizen/20181127.113629submit/tizen/20181120.123835submit/tizen/20181106.114249accepted/tizen/unified/20181129.054222Jaehyun Kim3-0/+35
2018-11-06Merge "[CONNMAN][Change AP's max speed logic]" into tizenJaehyun Kim2-0/+23
2018-10-05Add IEEE 802.11 protocol(b/g/n/a/ac) Modes of APsMilind Murhekar3-0/+35
This patch appends the IEEE 802.11b/g/n/a/ac PHY protocol modes of scanned Access Points using internal logic. Following logic is used to determine WLAN HW protocol:- 1) If “Supported rates” is only till 11 Mbps, and frequency is in 2.4GHz band, then protocol is 802.11B. 2) If “Supported rates” is till 54Mbps or “Extended supported rates” are present, and frequency is in 2.4GHz band, then protocol is 802.11G. 3) If “Supported rates” is only till 54 Mbps, frequency is in 5GHz band , then protocol is 802.11A. 4) If “HT capabilities” is supported , then protocol is 802.11N. 5) If “HT capabilities” & “VHT” is supported and frequency is in 5 GHz band, then protocol is 802.11AC. Change-Id: I1156ef249cf4a8052a883d31da66788c7d2de22f
2018-10-04[CONNMAN][Change AP's max speed logic]Mayank Haarit2-0/+23
This patch changes the internal logic of getting max speed from connected AP. Change-Id: I7191a09f1d974f1158ce9440cfa6924feca61340 Signed-off-by: Mayank Haarit <mayank.h@samsung.com>
2018-09-27Added support to update EAP manual IP.submit/tizen/20181005.071134submit/tizen/20181004.140159Niraj Kumar Goit2-0/+27
Added support to update EAP manual IP setting using wifi_manager_update_ap() Change-Id: Ifa331ec3b1e4bd95262f63698d32f65e6128518c Signed-off-by: Niraj Kumar Goit <niraj.g@samsung.com>
2018-09-14Merge "Online Check: Change default connection policy" into tizenJaehyun Kim2-0/+119
2018-08-31[Wi-Fi Mesh] Added dbus privilege for method callssubmit/tizen/20180904.001520submit/tizen/20180903.045143Nishant Chaprana1-0/+6
Change-Id: I2f6b6233ac682959abd1221a61aaeffa5bdfdd63 Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
2018-08-31Online Check: Change default connection policySaurav Babu2-0/+119
1. Modified the priority of default connection 2. Disconnect the cellular when wifi state is online 3. Added a dbus-api for downgrading the wifi state to ready 4. Modified the connman_service_get_default_connection() Change-Id: Ie062d86479a9bc80919ba7d0c168028f61a9c7be Signed-off-by: Saurav Babu <saurav.babu@samsung.com>
2018-08-24[connman] Added Tizen Wi-Fi Meshsubmit/tizen/20180824.072908Nishant Chaprana16-18/+2835
Change-Id: Iec2ec99fb7d4fc6d9c0539e5a9e7c903e1969580 Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
2018-08-16[Fix][icmpv6_recv] No need to free data using xs_cleanup(), data is already ↵Nishant Chaprana1-3/+2
freed in icmpv6_event() Change-Id: I19b028f5a93f7a4efbcf6e7c92113c363d7bb534 Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
2018-07-27Fixed the EAP security issueBhaskar Dutta1-0/+1
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>
2018-07-05service: Add new property to set passphrase of servicesubmit/tizen/20180706.050915accepted/tizen/unified/20180709.064830Saurav Babu1-1/+13
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>
2018-05-24Fixed various memory leaksSaurav Babu2-2/+10
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>
2018-04-20Add BSSID , signal strength and frequency list of the APssubmit/tizen/20180424.084858accepted/tizen/unified/20180425.062309Mayank Haarit2-1/+45
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>
2018-04-20Added logic to get country code of APsMayank Haarit3-0/+37
It also includes parsing country code from IEs received from the supplicant Change-Id: Iea5f8b2ea7cc8fefe07591cc4d636d27b015d427 Signed-off-by: Mayank Haarit <mayank.h@samsung.com>
2018-04-16Merge "Add SSID and Frequency mixed scan." into tizensubmit/tizen/20180416.224602accepted/tizen/unified/20180417.173158taesub kim1-7/+42
2018-04-10Add SSID and Frequency mixed scan.Niraj Kumar Goit1-7/+42
Change-Id: I6ca91a5f073c11712a936844589aa72c27c0145e Signed-off-by: Niraj Kumar Goit <niraj.g@samsung.com>
2018-04-03Fixed a coverity for resource leaksubmit/tizen/20180406.023145accepted/tizen/unified/20180406.144313hyunuktak1-0/+1
Change-Id: I990f3c1d314580546c4dfa4716d1a2e535bcd491 Signed-off-by: hyunuktak <hyunuk.tak@samsung.com>
2018-02-26[connman]Added support of EAP-FAST,EAP-PWD and EAP-AKA'.submit/tizen/20180226.110934accepted/tizen/unified/20180227.062953Niraj Kumar Goit2-1/+23
Change-Id: Ibb75ff2c2e54c8d3d53f3b184502647918bf7e24 igned-off-by: Niraj Kumar Goit <niraj.g@samsung.com>
2018-02-21Added new dbus method to support bssid based connectionJaehyun Kim2-0/+68
Change-Id: I95d2a56c1d26db06cbdb5c85dc0e2b33b3c10da3 Signed-off-by: Jaehyun Kim <jeik01.kim@samsung.com>
2018-01-23Merge "Fixed uninitialized scalar variable" into tizensubmit/tizen/20180124.223542submit/tizen/20180124.044456accepted/tizen/unified/20180125.060648taesub kim1-0/+1
2018-01-23Fixed uninitialized scalar variablehyunuktak1-0/+1
Change-Id: Ia285faae7af652612fadbe95f0863bc315d429a6
2018-01-23Modified logic to process each VSIE of all vendors.Niraj Kumar Goit2-28/+44
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
2018-01-23Updated connman to version 1.35Seonah Moon42-1340/+4353
Change-Id: I13526fbf80296a79be15548fc226a308941ac9ec Signed-off-by: Taesub Kim <taesub.kim@samsung.com>
2018-01-08Imported Upstream version 1.35upstream/1.35Seonah Moon45-1375/+4610
Change-Id: I174854914d9fd06a813270b57d1f7bc2bac63c6a Signed-off-by: Seonah Moon <seonah1.moon@samsung.com>
2018-01-04Modified logic to process each VSIE of all vendors.Niraj Kumar Goit2-27/+44
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>
2018-01-03Add new rpm with disalbled-ethernetsubmit/tizen/20180103.084951accepted/tizen/unified/20180104.064645taesub kim1-0/+110
Change-Id: Ib5b1b2a166d26180f75793f03d8770ef37cc1329
2017-12-27connman: Get HS20 property of service correctlysubmit/tizen/20171228.074717submit/tizen/20171228.053515accepted/tizen/unified/20171229.070200Saurav Babu2-21/+6
Change-Id: I21d3a4ba5632d5a00a3254137b12dfdbd1dbe3dc Signed-off-by: Saurav Babu <saurav.babu@samsung.com>
2017-12-19[Upstream] Wait 4 seconds for RA before re-sending RS messages.Niraj Kumar Goit1-2/+10
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>
2017-12-13Remove non-essential logssubmit/tizen/20171218.085650accepted/tizen/unified/20171219.072622taesub kim2-6/+5
Change-Id: I486b7e8c47d4d46dab0bc1868daf9fd56f929619 Signed-off-by: Taesub Kim <taesub.kim@samsung.com>
2017-12-12Add WiFi passphrase encryption routinesubmit/tizen/20171212.235218accepted/tizen/unified/20171213.153208Jaehyun Kim2-1/+24
Change-Id: Ife8902c48b338cec4a91429441e8435a6b21bc7e Signed-off-by: Jaehyun Kim <jeik01.kim@samsung.com>
2017-12-12Fixed the keyload issue when wifi is initial connectionsubmit/tizen/20171212.082257accepted/tizen/unified/20171212.171956taesub kim2-0/+17
Related link: https://review.tizen.org/gerrit/#/c/117897/ Change-Id: I8dc20e796bb7c84bb56bebb25faa609e0056fa74 Signed-off-by: Taesub Kim <taesub.kim@samsung.com>
2017-12-11Merge "In dhcpv6 request always set G_DHCPV6_IA_NA option." into tizensubmit/tizen/20171211.062320accepted/tizen/unified/20171212.064754taesub kim1-0/+14
2017-12-11Merge "Process RDNSS option for IPv6 if connecting or connected." into tizentaesub kim1-9/+12
2017-12-11In dhcpv6 request always set G_DHCPV6_IA_NA option.Niraj Kumar Goit1-0/+14
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>
2017-12-07Process RDNSS option for IPv6 if connecting or connected.Niraj Kumar Goit1-9/+12
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>
2017-12-07Revert "[connman] Configure IPv6 after IPv4 dhcp succeed."Saurav Babu1-24/+1
This reverts commit 0d3b96f6fe23316f15444576b5a590a917beb8a5. Change-Id: I83a7f0b3a5485bb6bd14f863b0e180bea1570899
2017-11-27Added cap_dac_override capabilitysubmit/tizen/20171126.232917accepted/tizen/unified/20171127.083314taesub kim2-2/+2
Change-Id: I0c668091b85bf1f4f31ea2d1a9c6d53d73cd5736 Signed-off-by: Taesub Kim <taesub.kim@samsung.com>
2017-11-08Merge "Enable IPv6 privacy address support." into tizensubmit/tizen/20171113.231943accepted/tizen/unified/20171115.061145taesub kim1-1/+4
2017-11-08Enable IPv6 privacy address support.Niraj Kumar Goit1-1/+4
Change-Id: Icbffd857f35aff492e343af3da855bdc69d3b22d Signed-off-by: Niraj Kumar Goit <niraj.g@samsung.com>
2017-11-08Merge "Append AssocStatusCode Property for Wi-Fi Manager Layer" into tizensubmit/tizen/20171108.071810taesub kim1-0/+7
2017-11-08Merge "Added handling of "AssocStatusCode" signal" into tizentaesub kim2-0/+25
2017-11-06Remove unused "GetVsies" Dbus method.Niraj Kumar Goit2-76/+0
Change-Id: I4b666eb1e00852ef6a33451343f8ad78aa857557 Signed-off-by: Niraj Kumar Goit <niraj.g@samsung.com>
2017-11-03Added vsie information of AP in append_properties function.Niraj Kumar Goit1-0/+8
Change-Id: I97535663a8b591e4adbbac3c4bb0cd649a388672 Signed-off-by: Niraj Kumar Goit <niraj.g@samsung.com>
2017-11-03Append AssocStatusCode Property for Wi-Fi Manager LayerManeesh Jain1-0/+7
Change-Id: Ie7fc6842d3c000ff94e8d9659370242a210cfaa1 Signed-off-by: Maneesh Jain <maneesh.jain@samsung.com>