platform/core/connectivity/net-config.git
3 months agoCall get_backend and put_backend APIs only once 08/314608/1
Jaehyun Kim [Tue, 16 Jul 2024 06:49:20 +0000 (15:49 +0900)]
Call get_backend and put_backend APIs only once

Since hal_wifi_get_backend() is being called again
without calling hal_wifi_put_backend() after calling hal_wifi_get_backend(),
a memory leak is occurring internally.
Accordingly, net-config has been modified
to call the APIs only once at startup and termination.

Change-Id: Ib72b41b3c42eb91a1d02c26afec35a51a1e60179
Signed-off-by: Jaehyun Kim <jeik01.kim@samsung.com>
4 months agoFix the logic for checking config_id 77/314477/1
Jaehyun Kim [Mon, 22 Apr 2024 10:20:39 +0000 (19:20 +0900)]
Fix the logic for checking config_id

In the config_id validity check logic,
it only check whether config_id is in the hex value range or is an unerscore.
But this is causing problems because in reality
it can contain all lowercase letters.
So it was modified to also check for lowercase letters.

* This is a side effect caused by the following patch.
  - Fix Stack buffer overflow and Path traversal

Change-Id: I23d0ebc1cc38b9f9e526df38539155c2308257eb
Signed-off-by: Jaehyun Kim <jeik01.kim@samsung.com>
4 months agoFix Stack buffer overflow and Path traversal 76/314476/1
Jaehyun Kim [Thu, 11 Apr 2024 08:34:42 +0000 (17:34 +0900)]
Fix Stack buffer overflow and Path traversal

Fix security vulnerabilities.
  - Stack buffer overflow issue in __netconfig_trigger_netlink_scan
  - Path traversal issue in DeleteEapConfig method
  - Path traversal issue in CreateEapConfig method

Change-Id: I76ef04f98cdb28926901899f511c80e6162f89ad
Signed-off-by: Jaehyun Kim <jeik01.kim@samsung.com>
4 months agoCheck validity of config_id when saving WiFi conf 75/314475/1
Jaehyun Kim [Wed, 20 Mar 2024 05:56:44 +0000 (14:56 +0900)]
Check validity of config_id when saving WiFi conf

Change-Id: Ie64319a22578b1409017d9e03cbb09a46edbbff6
Signed-off-by: Jaehyun Kim <jeik01.kim@samsung.com>
7 months agoMerge "Add dbus method for getting wifi passphrase" into tizen accepted/tizen_unified_dev accepted/tizen/unified/20240611.122706 accepted/tizen/unified/dev/20240620.005348 accepted/tizen/unified/toolchain/20240624.121301 accepted/tizen/unified/x/20240612.025854 accepted/tizen/unified/x/asan/20240625.091929
Jaehyun Kim [Thu, 4 Apr 2024 07:26:46 +0000 (07:26 +0000)]
Merge "Add dbus method for getting wifi passphrase" into tizen

7 months agoFix resource leak 73/308473/1 accepted/tizen/unified/20240327.064211 accepted/tizen/unified/x/20240401.142309
Jaehyun Kim [Tue, 26 Mar 2024 07:29:50 +0000 (16:29 +0900)]
Fix resource leak

Change-Id: Ie7628eaa20fed0c1d9c5620e30ad5bd1363c7000
Signed-off-by: Jaehyun Kim <jeik01.kim@samsung.com>
7 months agoAdd dbus method for getting wifi passphrase 53/308253/1
Jaehyun Kim [Wed, 20 Mar 2024 08:21:16 +0000 (17:21 +0900)]
Add dbus method for getting wifi passphrase

This is the dbus method only for the internal modules
with special privileges.

Change-Id: I17bc91d9e4b35eea76e9c2245b37ff1121aba87b
Signed-off-by: Jaehyun Kim <jeik01.kim@samsung.com>
8 months agoFix NULL dereferencing 89/307489/1
Jaehyun Kim [Mon, 11 Mar 2024 06:03:54 +0000 (15:03 +0900)]
Fix NULL dereferencing

Change-Id: I6f261d230e823b086b02fe39c45f2ba957bbdb08
Signed-off-by: Jaehyun Kim <jeik01.kim@samsung.com>
9 months agoSupport EUC-KR ssid in netlink scan 15/305415/1
Jaehyun Kim [Tue, 30 Jan 2024 08:50:15 +0000 (17:50 +0900)]
Support EUC-KR ssid in netlink scan

Change-Id: Ia030e0b47219e6e44c500043cf1008e0f7d2adfa
Signed-off-by: Jaehyun Kim <jeik01.kim@samsung.com>
10 months agoFix unnecessary background scan attempts 76/303676/1 accepted/tizen/unified/20240119.154739 accepted/tizen/unified/toolchain/20240311.065324 accepted/tizen/unified/x/20240205.063724
Jaehyun Kim [Wed, 3 Jan 2024 09:23:29 +0000 (18:23 +0900)]
Fix unnecessary background scan attempts

There is a problem with the background scan timer
not being removed properly when powering off.
This has been fixed as there were cases
where scans were attempted unnecessarily.

Change-Id: I4e098ed64c4e18e58b242b08633040cf8c4a350d
Signed-off-by: Jaehyun Kim <jeik01.kim@samsung.com>
10 months agoMerge "Rectify gvariant type for frequency" into tizen accepted/tizen_unified_riscv accepted/tizen/unified/20231227.063238 accepted/tizen/unified/riscv/20240103.054552
Jaehyun Kim [Fri, 22 Dec 2023 12:42:18 +0000 (12:42 +0000)]
Merge "Rectify gvariant type for frequency" into tizen

10 months agoFix SVACE Issue 51/303251/1
Anjali Nijhara [Fri, 22 Dec 2023 06:25:39 +0000 (11:55 +0530)]
Fix SVACE Issue
WGID : 587604

Change-Id: Ibb30b215655647e99cddd4c7693b4220423e2033

10 months agoRectify gvariant type for frequency 78/303178/1
Anjali Nijhara [Thu, 21 Dec 2023 03:59:04 +0000 (09:29 +0530)]
Rectify gvariant type for frequency

Change-Id: I09a06ab156427561b4d9389bc3d4404662b4c96a

11 months agoFix "Modified" is missing when saving wifi config 44/302044/2 accepted/tizen/unified/riscv/20231220.131734
Jaehyun Kim [Thu, 30 Nov 2023 04:14:48 +0000 (13:14 +0900)]
Fix "Modified" is missing when saving wifi config

Change-Id: I9c9daeb653a756d564d2d471760cd31a6283a1e5
Signed-off-by: Jaehyun Kim <jeik01.kim@samsung.com>
11 months agoFix SVACE Issue 85/301985/1 accepted/tizen/unified/20231130.180918 accepted/tizen/unified/riscv/20231226.210845
Anjali Nijhara [Wed, 29 Nov 2023 05:34:06 +0000 (11:04 +0530)]
Fix SVACE Issue
WGID : 554015

Change-Id: Ic703a5cbc2c9c7eb4cea47a58e697bb5fc2ebf25

13 months agoFix build errors w.r.t upgraded Libbpf Version 53/289353/5 accepted/tizen/unified/20231010.162025
Anjali Nijhara [Mon, 6 Mar 2023 11:12:46 +0000 (16:42 +0530)]
Fix build errors w.r.t upgraded Libbpf Version

Change-Id: I3a24495ec513ac6c1ffc473db5fe1c5d8b88a385

13 months agoSupport 6GHz band for channels and RSSI level 96/299096/1 accepted/tizen_8.0_unified accepted/tizen/8.0/unified/20231005.093228 accepted/tizen/unified/20230920.161457 tizen_8.0_m2_release
Jaehyun Kim [Tue, 19 Sep 2023 13:26:50 +0000 (22:26 +0900)]
Support 6GHz band for channels and RSSI level

Change-Id: I4fa37274dc1a50c7bd659f494339c6fcdffb076a
Signed-off-by: Jaehyun Kim <jeik01.kim@samsung.com>
16 months agoFixed the build error using gcc 13 34/295034/1 accepted/tizen/unified/20230705.063706 accepted/tizen/unified/dev/20230726.115916
wchang kim [Fri, 30 Jun 2023 06:25:00 +0000 (15:25 +0900)]
Fixed the build error using gcc 13

Change-Id: Iefa363988270a08551e398e9d8f2c5bf12fc1ba7

16 months agoHandle Time update policy based on vconfkey value 22/294522/4 accepted/tizen/unified/20230628.023645
Anjali Nijhara [Tue, 20 Jun 2023 15:02:56 +0000 (20:32 +0530)]
Handle Time update policy based on vconfkey value

Change-Id: I26e78e0c37db2723b8c16ee6925802a5a437c88b

16 months agoAdd dbus method to UnsetNtpServer. 08/294508/3
Manika Shrivastava [Tue, 20 Jun 2023 08:58:06 +0000 (14:28 +0530)]
Add dbus method to UnsetNtpServer.

Change-Id: I8a130c85069205cb8185df1684ef1794d2508de6
Signed-off-by: Manika Shrivastava <manika.sh@samsung.com>
16 months agoMerge "Fix Coverity Issue" into tizen
Jaehyun Kim [Thu, 22 Jun 2023 12:54:43 +0000 (12:54 +0000)]
Merge "Fix Coverity Issue" into tizen

16 months agoAdd new dbus method for setting NTP Server 63/294363/2
Anjali Nijhara [Fri, 16 Jun 2023 11:29:05 +0000 (16:59 +0530)]
Add new dbus method for setting NTP Server

Change-Id: Ib6151577ba3c32b034dc03c8b76029f5b1c3fb82

16 months agoFix Coverity Issue 49/294449/1
Anjali Nijhara [Mon, 19 Jun 2023 11:23:57 +0000 (16:53 +0530)]
Fix Coverity Issue

This patch fix the below coverity issue:
CID-1668747

Change-Id: Ida334a9c6dc4817ba045f99d4f5d6e4a9cd0a9ca

18 months agoStore MAC address in lower case to vconf 18/292118/1
Jaehyun Kim [Thu, 27 Apr 2023 09:16:02 +0000 (18:16 +0900)]
Store MAC address in lower case to vconf

MAC address is provided in the following two ways.
  - file: /sys/class/net/wlan0/address
  - vconf: db/wifi/bssid_address

The former is always provided in lower case,
but the latter is provided in upper or lower case depending on the HAL.
This can affect services that generate ID using MAC address,
so the related code has been modified so that the vconf value is always
provided in lowercase.

Change-Id: If47a8d9f8728b5ec451c1542e7e24636f1cb64c2
Signed-off-by: Jaehyun Kim <jeik01.kim@samsung.com>
18 months agoUpdate wifi state when DeviceDetected is received 76/291976/2
Jaehyun Kim [Sat, 8 Apr 2023 17:01:10 +0000 (02:01 +0900)]
Update wifi state when DeviceDetected is received

Net-config assumes that when DeviceChanged signal is received,
wifi is enabled.
However, there are cases where wifi is already enabled at the time
DeviceDetected signal is received due to IPC communication delay
during net-config initialization.
In this case, an issue may occur because the state assumed by
net-config does not match the actual state.
Therefore, it has been modified to match the actual state by updating
the entire state even when the DeviceDetected signal is received.

Change-Id: I1bafee94b8940e9d477998495b6096a1b34304b1
Signed-off-by: Jaehyun Kim <jeik01.kim@samsung.com>
21 months agoMerge "Add Signal Handling for Module State Changed" into tizen accepted/tizen/unified/20230315.093508
Jaehyun Kim [Thu, 26 Jan 2023 06:49:32 +0000 (06:49 +0000)]
Merge "Add Signal Handling for Module State Changed" into tizen

21 months agoAdd Signal Handling for Module State Changed 80/285980/5
Anjali Nijhara [Fri, 23 Dec 2022 10:05:59 +0000 (15:35 +0530)]
Add Signal Handling for Module State Changed

Change-Id: I4ef16436285425ca8bf920cd9c9f8ac542bc48c9

22 months agoAdd dbus method to remove all AP configurations 00/286500/2 accepted/tizen/7.0/unified/20230118.093743
Jaehyun Kim [Mon, 9 Jan 2023 05:15:50 +0000 (14:15 +0900)]
Add dbus method to remove all AP configurations

Change-Id: Ia110f13beca17b3f16e4ec8556ec78d6e1ada329
Signed-off-by: Jaehyun Kim <jeik01.kim@samsung.com>
22 months agoCreate device_data if not found it before use 18/286418/1
Jaehyun Kim [Thu, 5 Jan 2023 12:43:59 +0000 (21:43 +0900)]
Create device_data if not found it before use

Change-Id: Idf5ca2c09d4e93bd926572637e86303c7edfbc82
Signed-off-by: Jaehyun Kim <jeik01.kim@samsung.com>
22 months agoAdd dbus methods for setting bg scan interval 43/285843/2 accepted/tizen/7.0/unified/20221226.020034
Jaehyun Kim [Wed, 21 Dec 2022 07:14:41 +0000 (16:14 +0900)]
Add dbus methods for setting bg scan interval

Change-Id: Iae92268d8e8886b04101f9dfd266266040b07e9d
Signed-off-by: Jaehyun Kim <jeik01.kim@samsung.com>
23 months agofix: unmatched dbus type when received WIFI_CONFIG_FREQUENCY 76/284876/1
Niraj Kumar Goit [Tue, 29 Nov 2022 15:23:55 +0000 (20:53 +0530)]
fix: unmatched dbus type when received WIFI_CONFIG_FREQUENCY

Change-Id: If42ee2c37666e69873b242af6b89d79d8c065e54
Signed-off-by: Niraj Kumar Goit <niraj.g@samsung.com>
2 years agoDA: Applying secure log 55/283655/1 accepted/tizen/7.0/unified/20221206.171103
Jaehyun Kim [Tue, 1 Nov 2022 03:52:44 +0000 (12:52 +0900)]
DA: Applying secure log

Change-Id: Ifc5e61d91b8dfc44fced0fa8045443a061e1fa35
Signed-off-by: Jaehyun Kim <jeik01.kim@samsung.com>
2 years agoDA: Remove all files in connman profile directory 54/283654/1
Jaehyun Kim [Tue, 1 Nov 2022 03:37:54 +0000 (12:37 +0900)]
DA: Remove all files in connman profile directory

Connman profile cannot be deleted by deleting only data and settings files.

Change-Id: Icf8c2d2814e88f2264ebe883bb67ba522456ad72
Signed-off-by: Jaehyun Kim <jeik01.kim@samsung.com>
2 years agoDA: Fix netlink scan logic 53/283653/1
Jaehyun Kim [Tue, 1 Nov 2022 03:30:29 +0000 (12:30 +0900)]
DA: Fix netlink scan logic

1. Modify the wrong routine for netlink scan
2. Fix the nl_recvmsg error case.
3. Add pmf_required field

Change-Id: I5ef5e5892e0bd0fa4d5af9c61df90ec356cfc8ff
Signed-off-by: Jaehyun Kim <jeik01.kim@samsung.com>
2 years agoDA: Update VCONFKEY_WIFI_BSSID_ADDRESS when power on 51/283651/1
Jaehyun Kim [Tue, 1 Nov 2022 03:08:43 +0000 (12:08 +0900)]
DA: Update VCONFKEY_WIFI_BSSID_ADDRESS when power on

Change-Id: If7c472e91f508d363aaef16554c530d99df4dac4
Signed-off-by: Jaehyun Kim <jeik01.kim@samsung.com>
2 years agoDA: Modify backgeround scan routine 50/283650/1
Jaehyun Kim [Tue, 1 Nov 2022 02:56:08 +0000 (11:56 +0900)]
DA: Modify backgeround scan routine

1. Failure -> IDLE state change will reset bg_interval & resume bg_scan.
2. Move doubling the bg_interval function to __wifi_bgscan_next_scan
   for preventing skip bg_interval timer.

Change-Id: I4f881e06b660215bf9433df7ba5548a6ace113cf
Signed-off-by: Jaehyun Kim <jeik01.kim@samsung.com>
2 years agoModify dump script not to use excessive storage 57/276257/1 accepted/tizen_7.0_unified_hotfix tizen_7.0_hotfix accepted/tizen/7.0/unified/20221110.061910 accepted/tizen/7.0/unified/hotfix/20221116.105208 accepted/tizen/unified/20220614.211543 submit/tizen/20220614.053158 tizen_7.0_m2_release
Jaehyun Kim [Mon, 13 Jun 2022 13:13:22 +0000 (22:13 +0900)]
Modify dump script not to use excessive storage

Change-Id: I9404870d1413a55cde65e59ff306c31cadef5029
Signed-off-by: Jaehyun Kim <jeik01.kim@samsung.com>
2 years agoAdd support for unspecified IPv6 gateway address 92/275092/1 accepted/tizen/unified/20220524.050423 submit/tizen/20220517.032025 submit/tizen/20220518.041030
Jaehyun Kim [Mon, 16 May 2022 12:24:09 +0000 (21:24 +0900)]
Add support for unspecified IPv6 gateway address

Unspecified gateway address("::") is not permitted
when setting routing table.
So, if this value is passed, it must be handled appropriately.

Change-Id: If04df42fc0d6233bfca79e62efb80c8a1024e7c4
Signed-off-by: Jaehyun Kim <jeik01.kim@samsung.com>
2 years agoCheck SSID when loading wifi configuration file 46/274646/1 submit/tizen/20220504.090404
Jaehyun Kim [Wed, 4 May 2022 06:05:37 +0000 (15:05 +0900)]
Check SSID when loading wifi configuration file

Change-Id: Ida477975e478112af2c620ec9f4489673a130609
Signed-off-by: Jaehyun Kim <jeik01.kim@samsung.com>
2 years agoModify unsubstituted paths in log dump script 62/274562/1
Jaehyun Kim [Mon, 2 May 2022 12:12:25 +0000 (21:12 +0900)]
Modify unsubstituted paths in log dump script

Change-Id: Iee797e8bd9c4e4c0c151ff11484d58f1579d3e79
Signed-off-by: Jaehyun Kim <jeik01.kim@samsung.com>
2 years agoClear timeserver on boot time 92/272192/1 accepted/tizen/unified/20220314.125145 submit/tizen/20220311.091913 submit/tizen/20220314.054206
Jaehyun Kim [Fri, 11 Mar 2022 03:23:38 +0000 (12:23 +0900)]
Clear timeserver on boot time

Currently, timeserver is cleared after a period of time after setting.
However, in this method, there is a problem that timeserver cannot be
retrieved if the interface has no internet connection is connected
first, and then the interface has internet connection is connected
just before the timeserver is cleared.
Therefore, it has been modified so that timeserver is not cleared
until rebooting.

Change-Id: I2f5ca9f6d01bf7be2668338f3a159a401a0d46b5
Signed-off-by: Jaehyun Kim <jeik01.kim@samsung.com>
2 years agoAdjust socket buffer size in emulator 15/271215/1 accepted/tizen/unified/20220218.152612 submit/tizen/20220217.033228
cheoleun moon [Thu, 17 Feb 2022 02:53:30 +0000 (11:53 +0900)]
Adjust socket buffer size in emulator

Change-Id: I604d80947ce6483166dd78688f17b6a56d4a3a99

2 years agoModified to get frequency info for bssid scan 31/269631/1 accepted/tizen/unified/20220126.213047 submit/tizen/20220125.082819
Jaehyun Kim [Wed, 19 Jan 2022 09:30:23 +0000 (18:30 +0900)]
Modified to get frequency info for bssid scan

Change-Id: I01e0ce7948c92175487430abbd78e63755ca8b13
Signed-off-by: Jaehyun Kim <jeik01.kim@samsung.com>
2 years agoSupport association failed error 63/269363/1 accepted/tizen/unified/20220119.121754 submit/tizen/20220118.052414
Jaehyun Kim [Thu, 13 Jan 2022 07:24:00 +0000 (16:24 +0900)]
Support association failed error

Change-Id: Ib8e5d95d0f8cbd8bdac9c6cf28be3627c5e753ab
Signed-off-by: Jaehyun Kim <jeik01.kim@samsung.com>
2 years agoUse libbpf package for online monitoring 62/268762/1 accepted/tizen/unified/20220114.130215 submit/tizen/20220111.042706 submit/tizen/20220111.044041
Jaehyun Kim [Fri, 31 Dec 2021 08:57:40 +0000 (17:57 +0900)]
Use libbpf package for online monitoring

Change-Id: Ie792e397f7518f98ff5fdd2e6b415e63f57d7248
Signed-off-by: Jaehyun Kim <jeik01.kim@samsung.com>
2 years agoRemove unnecessary code 01/268701/1 accepted/tizen/unified/20220105.120852 submit/tizen/20211230.063452 submit/tizen/20211230.103710
Jaehyun Kim [Thu, 30 Dec 2021 05:54:20 +0000 (14:54 +0900)]
Remove unnecessary code

Change-Id: I3ab7aa625288bcfc114e0a16cd16d015423223b0
Signed-off-by: Jaehyun Kim <jeik01.kim@samsung.com>
2 years agoUpdate the host's vconf value to the container 86/267886/2 accepted/tizen/unified/20211216.155842 submit/tizen/20211215.063645
Jaehyun Kim [Mon, 13 Dec 2021 02:52:27 +0000 (11:52 +0900)]
Update the host's vconf value to the container

Change-Id: Ice9856d3144fc8089faeb55fbd022865dce3674c
Signed-off-by: Jaehyun Kim <jeik01.kim@samsung.com>
2 years agoMerge "Fix memory leak" into tizen accepted/tizen/unified/20211129.120853 submit/tizen/20211125.124313 submit/tizen/20211126.045758
Jaehyun Kim [Thu, 25 Nov 2021 12:30:44 +0000 (12:30 +0000)]
Merge "Fix memory leak" into tizen

3 years agoRegister with system bus in container environment 42/266442/1 submit/tizen/20211117.050637
Jaehyun Kim [Fri, 12 Nov 2021 08:11:33 +0000 (17:11 +0900)]
Register with system bus in container environment

Change-Id: Ief38daeda0343136464cb560fb69e4b8eef352eb
Signed-off-by: Jaehyun Kim <jeik01.kim@samsung.com>
3 years agoAdd a DBus method to access vconf via DBus 56/266256/7
Jaehyun Kim [Wed, 10 Nov 2021 01:56:53 +0000 (10:56 +0900)]
Add a DBus method to access vconf via DBus

Change-Id: I62dd5fe43506e1bb7f09b069b4e2c1e01324d5e6
Signed-off-by: Jaehyun Kim <jeik01.kim@samsung.com>
3 years agoMerge "Disabled in container environment" into tizen
Jaehyun Kim [Thu, 11 Nov 2021 09:07:41 +0000 (09:07 +0000)]
Merge "Disabled in container environment" into tizen

3 years agoAdd dbus configuration for robot profile 20/266220/2
cheoleun moon [Tue, 9 Nov 2021 07:56:39 +0000 (16:56 +0900)]
Add dbus configuration for robot profile

Change-Id: I33f8eb0d63bf304b1081c4e811b6939179584fa5

3 years agoDisabled in container environment 42/265842/2
Jaehyun Kim [Fri, 29 Oct 2021 10:17:55 +0000 (19:17 +0900)]
Disabled in container environment

Disable the container's network daemons to avoid conflicts
because they use the same network namespace.

Change-Id: I77b667419499c1d3306ee1a3b833b0f942586428
Signed-off-by: Jaehyun Kim <jeik01.kim@samsung.com>
3 years agoFix memory leak 05/265805/1
INSUN PYO [Fri, 29 Oct 2021 04:01:35 +0000 (13:01 +0900)]
Fix memory leak

Change-Id: Ia5f751be96c4b9820986b06afb26057cea8b0377

3 years agoModified to use /dev/urandom instead of random() 42/264642/1 accepted/tizen/6.5/unified/20211028.100551 accepted/tizen/unified/20210928.073041 submit/tizen/20210928.013804 submit/tizen_6.5/20211028.162201 tizen_6.5.m2_release
Jaehyun Kim [Mon, 27 Sep 2021 12:29:16 +0000 (21:29 +0900)]
Modified to use /dev/urandom instead of random()

Use of pseudorandom number generator 'random' at __netconfig_generate_random_bytes().
It's bad to use this function for crypto purposes.
So we modified to use /dev/urandom instead of random().

Change-Id: If2468a432a04387a3ede4497011cdba1f73aff15
Signed-off-by: Jaehyun Kim <jeik01.kim@samsung.com>
3 years agoMerge "Handle supplicant kill event." into tizen
Jaehyun Kim [Mon, 27 Sep 2021 07:02:48 +0000 (07:02 +0000)]
Merge "Handle supplicant kill event." into tizen

3 years agoHandle supplicant kill event. 10/264510/1
Niraj Kumar Goit [Thu, 23 Sep 2021 12:22:09 +0000 (17:52 +0530)]
Handle supplicant kill event.

Change-Id: If977a24c7ed8f67f4560aab6816b3c34a6739ba4
Signed-off-by: Niraj Kumar Goit <niraj.g@samsung.com>
3 years agoUse rand_r() instead of rand() 58/264458/1 accepted/tizen/unified/20210924.055921 submit/tizen/20210924.013637
Nishant Chaprana [Mon, 20 Sep 2021 09:09:21 +0000 (14:39 +0530)]
Use rand_r() instead of rand()

Change-Id: I540778e549bb0e46271db3ce3e0b5fb967d8e84e
Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
3 years agoUse strerror_r() instead of strerror() 57/264457/1
Nishant Chaprana [Mon, 20 Sep 2021 09:08:56 +0000 (14:38 +0530)]
Use strerror_r() instead of strerror()

Change-Id: I8360ca2084a8a08ec4f8f219384c6c7516870035
Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
3 years agoFix build error for i586 and x86_64 10/264310/2 accepted/tizen/unified/20210916.005915 submit/tizen/20210915.152151
Jaehyun Kim [Wed, 15 Sep 2021 15:13:16 +0000 (00:13 +0900)]
Fix build error for i586 and x86_64

Change-Id: I71d38043a401ca3009a3c661ea0526a239bd860a
Signed-off-by: Jaehyun Kim <jeik01.kim@samsung.com>
3 years agoAdd support to stop ongoing curl request. 37/264237/2 submit/tizen/20210915.122117
Niraj Kumar Goit [Tue, 14 Sep 2021 19:16:23 +0000 (00:46 +0530)]
Add support to stop ongoing curl request.

When online-monitor is stopped, removing an easy handle while being
used effectively stop the transfer in progress involving that easy handle.

Reference: https://curl.se/libcurl/c/curl_multi_remove_handle.html

Change-Id: Ia6e72688cbfe03140fe26a85e286fb3c913ed547
Signed-off-by: Niraj Kumar Goit <niraj.g@samsung.com>
3 years agoAdd support for online monitoring report 53/263853/4
Jaehyun Kim [Sun, 12 Sep 2021 17:34:20 +0000 (02:34 +0900)]
Add support for online monitoring report

Change-Id: I957ee296b2835713bb5c59845f76393412ef5856
Signed-off-by: Jaehyun Kim <jeik01.kim@samsung.com>
3 years agoAdd url checker and downgrade service state feature. 37/263737/11
Niraj Kumar Goit [Thu, 9 Sep 2021 19:26:00 +0000 (00:56 +0530)]
Add url checker and downgrade service state feature.

Change-Id: I134b1018f3c580bb3d3a999fd01ebc650f82d7c6
Signed-off-by: Niraj Kumar Goit <niraj.g@samsung.com>
3 years agoAdd plugin for online monitoring 22/263622/11
Jaehyun Kim [Tue, 7 Sep 2021 05:59:37 +0000 (14:59 +0900)]
Add plugin for online monitoring

Change-Id: Ic96e513404635c869e18aba870e040418705d457
Signed-off-by: Jaehyun Kim <jeik01.kim@samsung.com>
3 years agoAdd SAE security type for netlink scan. 20/262920/3 accepted/tizen/unified/20210915.025101 submit/tizen/20210908.150016 submit/tizen/20210909.045500
Niraj Kumar Goit [Mon, 23 Aug 2021 15:26:26 +0000 (20:56 +0530)]
Add SAE security type for netlink scan.

Change-Id: I1f37d0fed1dfdbc8947f3ade2a2ed1faf32acd48
Signed-off-by: Niraj Kumar Goit <niraj.g@samsung.com>
3 years agoMerge "Remove the unused code." into tizen
Jaehyun Kim [Fri, 20 Aug 2021 07:25:34 +0000 (07:25 +0000)]
Merge "Remove the unused code." into tizen

3 years agoadded sae security for wpa3 13/241113/2
Rahul Jain [Sat, 15 Aug 2020 09:05:24 +0000 (14:35 +0530)]
added sae security for wpa3

Change-Id: I09beb829bb4dde5cee7a31d28354e22de9a52226

3 years agoRemove the unused code. 79/262479/1
Niraj Kumar Goit [Wed, 11 Aug 2021 12:58:41 +0000 (18:28 +0530)]
Remove the unused code.

Change-Id: I879885c7d2df9acf9495c7acc14ef7ec018b9269
Signed-off-by: Niraj Kumar Goit <niraj.g@samsung.com>
3 years agoFix a memory leak 75/261475/1 accepted/tizen/unified/20210720.123307 submit/tizen/20210720.015818
Seonah Moon [Tue, 20 Jul 2021 00:18:59 +0000 (09:18 +0900)]
Fix a memory leak

Change-Id: I81c198a15f4cb80b1b1f670ea2b66902fab08ff2

3 years agoAdjust socket buffer size for robot profile 97/261197/4 accepted/tizen/unified/20210716.131312 submit/tizen/20210715.041332
Seonah Moon [Tue, 13 Jul 2021 06:41:45 +0000 (15:41 +0900)]
Adjust socket buffer size for robot profile

Change-Id: I35857cac9d8a6ae9f06308749c2e303027f044c6

3 years agoGet interface name from fi.w1.wpa_supplicant1.Interface 99/257899/2 accepted/tizen/unified/20210506.103554 submit/tizen/20210506.065212
Seonah Moon [Thu, 6 May 2021 06:36:21 +0000 (15:36 +0900)]
Get interface name from fi.w1.wpa_supplicant1.Interface

Interface.WPS doesn't have Ifname property.

Change-Id: I3a67ebcb012dd3f3a554b81a86aec5676f1d41ae

3 years agoRemove files unnecessarily included in the package 89/256289/1 accepted/tizen/unified/20210401.110101 submit/tizen/20210401.060505
Jaehyun Kim [Thu, 1 Apr 2021 03:00:22 +0000 (12:00 +0900)]
Remove files unnecessarily included in the package

Change-Id: I31a4447e52fc1b8ff7a907dcf6dc87dc9b9deca6
Signed-off-by: Jaehyun Kim <jeik01.kim@samsung.com>
3 years agoAdd support for wifi dongle 48/256048/1 accepted/tizen/unified/20210330.003649 submit/tizen/20210329.051231
Jaehyun Kim [Mon, 29 Mar 2021 02:37:21 +0000 (11:37 +0900)]
Add support for wifi dongle

Change-Id: Ic9b5dc328a33b62e5b1db594e5d5a8a417ab88a1
Signed-off-by: Jaehyun Kim <jeik01.kim@samsung.com>
3 years agoFix uncaught exception in haltests 56/255856/1
Jaehyun Kim [Wed, 24 Mar 2021 08:34:39 +0000 (17:34 +0900)]
Fix uncaught exception in haltests

Change-Id: I7615631a4da292493757b00a8c4c9340429f60ec
Signed-off-by: Jaehyun Kim <jeik01.kim@samsung.com>
3 years agoRemove codes to launch mdnsd 96/255296/1 accepted/tizen/unified/20210318.060248 submit/tizen/20210317.065443
Cheoleun Moon [Tue, 16 Mar 2021 10:24:40 +0000 (19:24 +0900)]
Remove codes to launch mdnsd

Change-Id: I9848812f74a59b98647cc9354badae2402a81025

3 years agoRevert "Remove codes to launch mdnsd"
Cheoleun Moon [Tue, 16 Mar 2021 10:39:00 +0000 (19:39 +0900)]
Revert "Remove codes to launch mdnsd"

This reverts commit d64465cb8d80c549dbe50fe4dad643c68f4a98c3.

3 years agoRemove codes to launch mdnsd
Cheoleun Moon [Tue, 16 Mar 2021 10:24:40 +0000 (19:24 +0900)]
Remove codes to launch mdnsd

Change-Id: I9848812f74a59b98647cc9354badae2402a81025

3 years agoMerge "Add SmackProcessLabel" into tizen accepted/tizen/unified/20210308.132431 submit/tizen/20210225.043806 submit/tizen/20210308.065858
cheoleun moon [Thu, 25 Feb 2021 04:37:42 +0000 (04:37 +0000)]
Merge "Add SmackProcessLabel" into tizen

3 years agoMerge "Revise wifi statistics routine" into tizen accepted/tizen/unified/20210225.130538 submit/tizen/20210224.083420
Jaehyun Kim [Wed, 24 Feb 2021 08:11:33 +0000 (08:11 +0000)]
Merge "Revise wifi statistics routine" into tizen

3 years agoAdd SmackProcessLabel 57/254157/1
Cheoleun Moon [Wed, 24 Feb 2021 06:59:01 +0000 (15:59 +0900)]
Add SmackProcessLabel

Change-Id: I4c340fcb5e14922390dd7e4c59002bfcd69857b7

3 years agoRevise haltests 01/254101/1
Jaehyun Kim [Tue, 23 Feb 2021 10:51:11 +0000 (19:51 +0900)]
Revise haltests

Change-Id: I99afd0a85c363575a7991b4ec5e8dad3a4673ba6
Signed-off-by: Jaehyun Kim <jeik01.kim@samsung.com>
3 years agoReplace HAL interface with hal-api-wifi 08/252108/6 accepted/tizen/unified/20210210.130355 submit/tizen/20210209.010000
Jaehyun Kim [Fri, 22 Jan 2021 12:24:50 +0000 (21:24 +0900)]
Replace HAL interface with hal-api-wifi

Change-Id: I4339754ddca51ecb08cb8f32818ada9a26b1da46
Signed-off-by: Jaehyun Kim <jeik01.kim@samsung.com>
3 years agoFix double free 16/252516/1
Jaehyun Kim [Fri, 29 Jan 2021 05:39:27 +0000 (14:39 +0900)]
Fix double free

Change-Id: I05c991d891295601949fb91f380383fcfc886567
Signed-off-by: Jaehyun Kim <jeik01.kim@samsung.com>
3 years agoRevise wifi statistics routine 95/251595/2
Jaehyun Kim [Fri, 15 Jan 2021 10:38:58 +0000 (19:38 +0900)]
Revise wifi statistics routine

Net-config updates the DB every 2 or 10 seconds for the wifi usage statistics,
which can cause shorten flash storage lifetime.
So the update cycle and method have been changed.

Change-Id: I0ed5053a48771d569320211c31890d3aec7cb55d
Signed-off-by: Jaehyun Kim <jeik01.kim@samsung.com>
3 years agoRemove temporary code changes. 12/250512/1 accepted/tizen/unified/20210129.002150 submit/tizen/20210125.084818 submit/tizen/20210126.062930 submit/tizen/20210127.105449
Niraj Kumar Goit [Mon, 28 Dec 2020 20:23:53 +0000 (01:53 +0530)]
Remove temporary code changes.

Change-Id: Id5fcb88a21530ca55770f4a23c35259e65b144d7
Signed-off-by: Niraj Kumar Goit <niraj.g@samsung.com>
3 years agoMoved dbus method IsEapSupported to connman. 29/249929/1
Niraj Kumar Goit [Thu, 17 Dec 2020 11:00:11 +0000 (16:30 +0530)]
Moved dbus method IsEapSupported to connman.

Dbus method IsEapSupported to check EAPoL enabled status is moved to
connman and renamed as IsEapolEnabled.

Change-Id: I77e5f76d89af722cadad8373d5bc8025379a54e4
Signed-off-by: Niraj Kumar Goit <niraj.g@samsung.com>
3 years agoFixed dereferencing of the NULL pointer. 12/249612/2 accepted/tizen/unified/20210122.123008 submit/tizen/20201229.102954 submit/tizen/20210119.130611
Niraj Kumar Goit [Tue, 15 Dec 2020 09:59:06 +0000 (15:29 +0530)]
Fixed dereferencing of the NULL pointer.

Change-Id: Ibd23d2ea1c5c1028a7f42fe68199a7a2f914c939
Signed-off-by: Niraj Kumar Goit <niraj.g@samsung.com>
3 years agoFix some svaces 51/248751/2 submit/tizen/20201217.131910
hyunuk.tak [Wed, 2 Dec 2020 05:04:53 +0000 (14:04 +0900)]
Fix some svaces

MEMORY_LEAK.EX
UNINIT.LOCAL_VAR.EX
DEREF_OF_NULL.RET.ALLOC

Change-Id: I1b3910c0dfc9e8752e3f781dab6aab8eb965f781
Signed-off-by: hyunuk.tak <hyunuk.tak@samsung.com>
4 years agoRename EAPoL configuration file path and g_eap_supported. 00/247300/1 submit/tizen/20201116.030352 submit/tizen/20201127.052752
Niraj Kumar Goit [Mon, 9 Nov 2020 15:27:37 +0000 (20:57 +0530)]
Rename EAPoL configuration file path and g_eap_supported.

1. Rename EAPoL configuration file path storage directory.
2. Rename g_eap_supported variable to g_eap_enabled to sync with CAPI.

Change-Id: Icc80b1b1363fb67ba9a5adfe25005913e7d59994
Signed-off-by: Niraj Kumar Goit <niraj.g@samsung.com>
4 years agoMerge "Add a number of iteration for updating device list" into tizen accepted/tizen/unified/20201029.124911 submit/tizen/20201028.023046
Jaehyun Kim [Tue, 27 Oct 2020 03:04:06 +0000 (03:04 +0000)]
Merge "Add a number of iteration for updating device list" into tizen

4 years agoMerge "Modify eap config file name for mac address" into tizen
Jaehyun Kim [Tue, 27 Oct 2020 03:04:03 +0000 (03:04 +0000)]
Merge "Modify eap config file name for mac address" into tizen

4 years agoAdd a number of iteration for updating device list 92/245892/1
hyunuk.tak [Mon, 19 Oct 2020 07:48:39 +0000 (16:48 +0900)]
Add a number of iteration for updating device list

Change-Id: Ia4c4f74ca41907cf154ed627f87f8a4fda094d51

4 years ago[TDLS] Remove redundant operation to finish method call 80/245480/1
Nishant Chaprana [Fri, 9 Oct 2020 13:44:24 +0000 (19:14 +0530)]
[TDLS] Remove redundant operation to finish method call

Change-Id: I6dc693f6342b83a8d487dc1edbb7f56271ea65c1
Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
4 years ago[TDLS] Use TDLS's enumeration for dbus method call reply 79/245479/1
Nishant Chaprana [Fri, 9 Oct 2020 13:41:27 +0000 (19:11 +0530)]
[TDLS] Use TDLS's enumeration for dbus method call reply

Change-Id: If262fc7156403f79d56be7dccbfe25883dc13c77
Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
4 years agoModify eap config file name for mac address 61/245261/5
hyunuk.tak [Tue, 6 Oct 2020 06:33:43 +0000 (15:33 +0900)]
Modify eap config file name for mac address

Change-Id: I8ffe284084e3177fa57bbd350e080931f72c41fd
Signed-off-by: hyunuk.tak <hyunuk.tak@samsung.com>
4 years agoFix memory leaks 16/245216/1 submit/tizen/20201008.114009
Jaehyun Kim [Mon, 5 Oct 2020 11:36:51 +0000 (20:36 +0900)]
Fix memory leaks

g_variant_print() returns a newly-allocated string holding the result.
It was not getting free.

Change-Id: I291c6a1e6a80ad99fc7c15aa4187c32c866eff14
Signed-off-by: Jaehyun Kim <jeik01.kim@samsung.com>
4 years agoAdd null check 44/244844/1 accepted/tizen_6.0_unified_hotfix tizen_6.0_hotfix accepted/tizen/6.0/unified/20201030.120449 accepted/tizen/6.0/unified/hotfix/20201103.050151 accepted/tizen/unified/20201006.044358 submit/tizen/20200925.061031 submit/tizen/20200925.132900 submit/tizen/20201005.112026 submit/tizen_6.0/20201029.205103 submit/tizen_6.0_hotfix/20201102.192503 submit/tizen_6.0_hotfix/20201103.114803 tizen_6.0.m2_release
Cheoleun Moon [Fri, 25 Sep 2020 04:13:25 +0000 (13:13 +0900)]
Add null check

Change-Id: I620ed7beba7b0b697f94c163642e6bb8e4bdff25

4 years agoMerge "Cleanup driver and wpa_supplicant when tech power on is failed" into tizen
Jaehyun Kim [Thu, 24 Sep 2020 08:26:02 +0000 (08:26 +0000)]
Merge "Cleanup driver and wpa_supplicant when tech power on is failed" into tizen

4 years agoCleanup driver and wpa_supplicant when tech power on is failed 04/244604/2
Nishant Chaprana [Tue, 22 Sep 2020 08:32:21 +0000 (14:02 +0530)]
Cleanup driver and wpa_supplicant when tech power on is failed

Change-Id: I72e6e548b8324f1fdda4c5b9e594b64152d49895
Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
4 years agoAdd to load/save frequency of config 01/244401/1
hyunuk.tak [Fri, 18 Sep 2020 06:53:22 +0000 (15:53 +0900)]
Add to load/save frequency of config

Change-Id: Ic904fccd6aaaa324c3bd7ba8a7cc366f09467694