summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)AuthorFilesLines
2019-07-25Add OWE security mode supportYu1-0/+10
Change-Id: I03ab90b8ab78e489d1ef70fbec57f10576860a57 Signed-off-by: Yu jiung <jiung.yu@samsung.com>
2019-07-23Remove unnecessary settingINSUN PYO1-1/+0
Service and Socket unit has an implicit dependencies. Refre: https://www.freedesktop.org/software/systemd/man/systemd.socket.html "Socket units automatically gain a Before= dependency on the service units they activate." Change-Id: I97710fb27fd3294332283a8bffde0d3765b4428e
2019-07-17Remove DefaultDependencies=no at connman.serviceINSUN PYO2-2/+0
net-config.service has "After=net-config.service" dependency. But net-config.service don't have DefaultDependencies=no. So "DefaultDependencies=no" does not have any effect on connman.service, but instead it is confusing. Change-Id: I6a3c78f18c3029314c2a8c0e6b8c72e65c868fe8
2019-07-04Imported Upstream version 1.37upstream/1.37Nishant Chaprana43-1160/+5274
Change-Id: Ib5957e7ee3a9315ee86a331189bc3e9e71751ee8 Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
2019-06-28Merge "Change the config value of the "FreeBind=" ("true" -> "yes")" into tizensubmit/tizen/20190628.060134accepted/tizen/unified/20190628.120630Jaehyun Kim1-1/+1
2019-06-26Append disconnect reason code in case of invalid key.Niraj Kumar Goit1-0/+1
Change-Id: Ie95d9be974d685f0601b2a6592c5f2d45e88fdd7 Signed-off-by: Niraj Kumar Goit <niraj.g@samsung.com>
2019-06-26Change the config value of the "FreeBind=" ("true" -> "yes")INSUN PYO1-1/+1
Change-Id: I5cbc48dfe7ab4f4402d04fdb5ebba1d220e457a6
2019-06-19Added support of WPA3-SAE security mode.submit/tizen/20190621.094817accepted/tizen/unified/20190624.075215Niraj Kumar Goit2-0/+18
Change-Id: I8612c52dc0cc078459fa19aa8a639597f070b293 Signed-off-by: Niraj Kumar Goit <niraj.g@samsung.com> Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
2019-06-11Improve support of Multiple same SSIDs including band steering.submit/tizen/20190611.082034accepted/tizen/unified/20190611.110358Jaehyun Kim1-23/+0
1. Supports up to 8 BSSIDs per each SSID 2. Attempt to connect only once per each BSSID 3. Sorted by signal strength and try to connect in sorted order 4. Sets the correct frequency for each bssid. Change-Id: I668fff29f2df99b2e5f637a39b5c70da84f8ee1c Signed-off-by: Jaehyun Kim <jeik01.kim@samsung.com>
2019-06-11Added support to get maximum scan SSIDs.Niraj Kumar Goit2-0/+36
Added support to get Max number of SSIDs scan supported by wlan chipset. Change-Id: If4cbc07f6937718fab123600a962179b3adbc081 Signed-off-by: Niraj Kumar Goit <niraj.g@samsung.com>
2019-04-05Added support of Multiple same SSIDs including band steering.submit/tizen/20190409.131053accepted/tizen/unified/20190410.061801Niraj Kumar Goit2-22/+42
When there are multiple APs with the same SSID and security, this patch support below features: 1. If AP does not respond to probe request during connection procedure, connman tries to connect with the next available BSSID before sending disconnected event to application. 2. If connection with AP is failed during association due to ASSOC_REJECT, connman tries to connect with the next available BSSID before sending disconnected event to application. Change-Id: Ie80939bd013a12b9c88e91a1fd5a05fbb57c1833 Signed-off-by: Niraj Kumar Goit <niraj.g@samsung.com>
2019-01-31Disable backtrace optionsubmit/tizen/20190215.123149submit/tizen/20190211.022839submit/tizen/20190208.055857submit/tizen/20190201.002733accepted/tizen/unified/20190218.064008Jaehyun Kim1-1/+1
Change-Id: Ie53230568c290b1449e145e9c77f36cfc1af8a03 Signed-off-by: Jaehyun Kim <jeik01.kim@samsung.com>
2019-01-24Fixed SVACE issuessubmit/tizen/20190125.015829accepted/tizen/unified/20190128.061809Jaehyun Kim2-6/+21
Change-Id: I84e9c9a7719e017892d4f353cf141901ca94beb8 Signed-off-by: Jaehyun Kim <jeik01.kim@samsung.com>
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>