summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)AuthorFilesLines
2019-10-08Merge "Remove unwanted NULL check for service in append_properties()" into tizenJaehyun Kim1-7/+5
2019-10-08Added an option in main.conf to set global DNS.Niraj Kumar Goit3-0/+33
Change-Id: I52f95964f82a88389e98592c64bf4820c1da5887 Signed-off-by: Niraj Kumar Goit <niraj.g@samsung.com>
2019-10-07Remove unwanted NULL check for service in append_properties()Nishant Chaprana1-7/+5
Description: The service will be always allocated when append_properties() is called, so this NULL check is not required. This NULL check generates SVACE warning which is actually a FALSE alarm. Change-Id: I9b3a15529f6614cb375b8fb7ec656a3c44eeb180 Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
2019-09-27Add DPP service based on configuration filesubmit/tizen/20190927.130602Yu3-0/+229
Description: This is incomplete solution becase there's no defined way to connect to DPP AP for upstream connman for current patch Change-Id: Ia6a3188e2826708c2123d209249d8b59fb5a42dc Signed-off-by: Yu jiung <jiung.yu@samsung.com>
2019-09-23Added support to enable/disable Auto-IP option.submit/tizen/20190925.080914submit/tizen/20190924.065941accepted/tizen/unified/20190926.065658Niraj Kumar Goit3-0/+32
Added support to enable/disable Auto-IP option using main.conf Change-Id: Iea1cae5a28681a90a5f79735c7374791a227feb7 Signed-off-by: Niraj Kumar Goit <niraj.g@samsung.com>
2019-09-18Imported Upstream version 1.37submit/tizen/20190920.082459Nishant Chaprana52-1986/+5542
Change-Id: Idb47c1ddbedc9f97181b8e9a5eeac04ddd832a2c Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
2019-09-10Merge "Emit Service PropertyChanged when ConnectReason and ↵submit/tizen/20190910.081214accepted/tizen/unified/20190911.111656Jaehyun Kim2-2/+61
DisconnectionRequested changes" into tizen
2019-09-10Merge "Update RSSI/Strength of connected service using SignalPoll event" ↵Jaehyun Kim3-0/+30
into tizen
2019-09-06Emit Service PropertyChanged when ConnectReason and DisconnectionRequested ↵Nishant Chaprana2-2/+61
changes Description: The properties perform below tasks:- 1. ConnectReason: To identify whether connection was an autoconnection or user initiated. 2. DisconnectionRequested: To identify whether disconnection was user initiated or not. Change-Id: I2ba4fc4637673571745517cdc33fc3a6d6367953 Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
2019-09-04Fixed invalid state transitionssubmit/tizen/20190906.055938accepted/tizen/unified/20190909.010911Jaehyun Kim1-0/+4
Fixed the case where the ConnMan is changed to Idle state without going through Disconnect state in Connected state. * Disconnect state indicates that it is going to terminate the current connection and will return to the Idle state. Change-Id: I81becdd043d599df4257d30c94ce2a2038f72b2d Signed-off-by: Jaehyun Kim <jeik01.kim@samsung.com>
2019-08-27Update RSSI/Strength of connected service using SignalPoll eventNishant Chaprana3-0/+30
This patch reduced the SignalPoll monitor from 30 second to 10 second frequency. This patch also extracts already available parameter strength/RSSI in SignalPoll and update connected service's RSSI/Strength accordingly. Change-Id: Ie9bbb21bf50ad0b8c72e3ca2fc9f7f6500c77f23 Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
2019-08-19Merge "Remove DefaultDependencies=no at connman.service" into tizenJaehyun Kim2-2/+0
2019-07-31Add an option for gateway timeserver handlingsubmit/tizen/20190802.071744Jaehyun Kim6-2/+37
Change-Id: I19f09647b7471f146adb95bc7e81fd9ab11f18ac Signed-off-by: Jaehyun Kim <jeik01.kim@samsung.com>
2019-07-29Merge "Add OWE security mode support" into tizensubmit/tizen/20190731.014248submit/tizen/20190729.091802Jaehyun Kim1-0/+10
2019-07-25Do not validate the passphrase for the SAE security type when it is encrypted.submit/tizen/20190726.063122Jaehyun Kim1-0/+1
Change-Id: Ibd82d445a8c0bd80a9b0804dd3d8b639797f8cb2 Signed-off-by: Jaehyun Kim <jeik01.kim@samsung.com>
2019-07-25Merge "Added support to get AP hidden status." into tizenJaehyun Kim1-0/+3
2019-07-25Added support to get AP hidden status.Niraj Kumar Goit1-0/+3
Change-Id: Ib8014d9ff53d896a12d0bf985168b7df589d9f22 Signed-off-by: Niraj Kumar Goit <niraj.g@samsung.com>
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>