platform/core/api/wifi-manager.git
5 months agoSupport any ssid/freq combination multi-scan in test app 99/317099/1 accepted/tizen_unified_x_asan accepted/tizen/unified/20250116.113524 accepted/tizen/unified/x/20250116.213652 accepted/tizen/unified/x/asan/20250211.003457
Jaehyun Kim [Tue, 24 Dec 2024 06:03:28 +0000 (15:03 +0900)]
Support any ssid/freq combination multi-scan in test app

In multi-scan test code, only the pair list of SSID and freq was supported,
but it was modified to support any combination as well.

Change-Id: Ic0ae8c59a49d9a3b0b4260f0f1ff874b12f94f2a
Signed-off-by: Jaehyun Kim <jeik01.kim@samsung.com>
8 months agoUpdate API documentation 74/317474/6
MyoungJune Park [Tue, 10 Sep 2024 09:37:08 +0000 (18:37 +0900)]
Update API documentation

Change-Id: I7dac9a3249e678edd122bf93423c268bce89479d
Signed-off-by: MyoungJune Park <renov.park@samsung.com>
9 months agoAdd an API for getting VSIE from DHCP Ack packet 68/317168/2 accepted/tizen_9.0_unified accepted/tizen_unified_dev accepted/tizen_unified_toolchain tizen_9.0 accepted/tizen/9.0/unified/20241030.232958 accepted/tizen/unified/20240909.154247 accepted/tizen/unified/dev/20240910.111432 accepted/tizen/unified/toolchain/20241004.101815 accepted/tizen/unified/x/20240910.014257 accepted/tizen/unified/x/asan/20241014.000152 tizen_9.0_m2_release
Jaehyun Kim [Thu, 5 Sep 2024 05:51:22 +0000 (14:51 +0900)]
Add an API for getting VSIE from DHCP Ack packet

Change-Id: I9b51c76f67f55206ad729c89d7c0ad69deaaa470
Signed-off-by: Jaehyun Kim <jeik01.kim@samsung.com>
9 months agoAdd APIs for Wi-Fi band selection for scanning 69/316369/1 accepted/tizen/unified/20240829.153519 accepted/tizen/unified/dev/20240901.214620 accepted/tizen/unified/x/20240830.014105
Jaehyun Kim [Tue, 20 Aug 2024 08:27:30 +0000 (17:27 +0900)]
Add APIs for Wi-Fi band selection for scanning

Change-Id: I0e564dccdb90ddc99237a10507ee73fb36c0da0d
Signed-off-by: Jaehyun Kim <jeik01.kim@samsung.com>
10 months agoFix wifi_manager_doc.h 59/315859/1
Jaehyun Kim [Thu, 8 Aug 2024 07:48:17 +0000 (16:48 +0900)]
Fix wifi_manager_doc.h

Change-Id: I5ce91b4b4d007b4c38104e26a9600f980026ce02
Signed-off-by: Jaehyun Kim <jeik01.kim@samsung.com>
10 months agoFix incorrect error handling 90/315390/1 accepted/tizen/unified/20240731.160156 accepted/tizen/unified/dev/20240805.054307 accepted/tizen/unified/toolchain/20240812.133139 accepted/tizen/unified/x/20240801.044236 accepted/tizen/unified/x/asan/20240813.231428
Jaehyun Kim [Wed, 31 Jul 2024 06:57:08 +0000 (15:57 +0900)]
Fix incorrect error handling

Change-Id: I3cd99642894c87ac3644ee76b95c509381907a30
Signed-off-by: Jaehyun Kim <jeik01.kim@samsung.com>
11 months agoAdd invalid user_data checker in signal handler 96/314196/1
Jaehyun Kim [Mon, 8 Jul 2024 09:14:29 +0000 (18:14 +0900)]
Add invalid user_data checker in signal handler

If the time of destroying the wifi handle overlaps
with the time of signal arrival,
there is a possibility that user_data of the wifi handle
that has already been destroyed may be passed in
the signal handler due to timing.
Because this may cause malfunctions,
code to verify user_data has been added.

Change-Id: I3966a3b541275449fbd25dc8f285963148b65fc5
Signed-off-by: Jaehyun Kim <jeik01.kim@samsung.com>
11 months agoSupport EAP connection without cert file in test app 94/314194/1
Jaehyun Kim [Mon, 8 Jul 2024 08:48:05 +0000 (17:48 +0900)]
Support EAP connection without cert file in test app

Change-Id: Id1be91dafa5467a0d7405e6f5c38dc382e6a126b
Signed-off-by: Jaehyun Kim <jeik01.kim@samsung.com>
11 months agoFix memory leak while destroying config handle 87/313187/1
Anjali Nijhara [Thu, 20 Jun 2024 03:20:23 +0000 (08:50 +0530)]
Fix memory leak while destroying config handle

Change-Id: Ic2914cd91a8ab624c1c2be67bd06b77e9a3d6737

14 months agoRemove tests related gcno files 47/309047/1 accepted/tizen/unified/20240405.115711 accepted/tizen/unified/dev/20240620.004818 accepted/tizen/unified/x/20240408.053759
Jaehyun Kim [Thu, 4 Apr 2024 07:27:38 +0000 (16:27 +0900)]
Remove tests related gcno files

Change-Id: Idda78cda25f89c3248add9e6f337db754a7d6e71
Signed-off-by: Jaehyun Kim <jeik01.kim@samsung.com>
14 months agoAdd an API for getting wifi passphrase 56/308256/1
Jaehyun Kim [Wed, 20 Mar 2024 08:54:27 +0000 (17:54 +0900)]
Add an API for getting wifi passphrase

This is an API only for the internal modules
with special privileges.

Change-Id: Ica37a5a96dd8d8e9703620d820aaa8c48f0d9917
Signed-off-by: Jaehyun Kim <jeik01.kim@samsung.com>
15 months agoFix the gcov build error 01/307601/1 accepted/tizen/unified/20240313.134432 accepted/tizen/unified/20240313.135534 accepted/tizen/unified/x/20240314.073332
Seonah Moon [Tue, 12 Mar 2024 04:50:38 +0000 (13:50 +0900)]
Fix the gcov build error

Change-Id: I0b8315d79b95f1fdf7d4b3f5567248d48eb757ac

16 months agoSupport EUC-KR ssid in netlink scan 14/305414/1
Jaehyun Kim [Tue, 30 Jan 2024 08:50:25 +0000 (17:50 +0900)]
Support EUC-KR ssid in netlink scan

Change-Id: Ib1660b058f6400f02f873373c77ee79c2eba7084
Signed-off-by: Jaehyun Kim <jeik01.kim@samsung.com>
17 months agoMerge "Fix parsing of invalid devices" into tizen accepted/tizen_unified_riscv accepted/tizen/unified/20231227.170507 accepted/tizen/unified/riscv/20240103.054624
Jaehyun Kim [Wed, 27 Dec 2023 06:31:47 +0000 (06:31 +0000)]
Merge "Fix parsing of invalid devices" into tizen

17 months agoMerge "Add freq/rssi info to AP list in the test app" into tizen
Jaehyun Kim [Wed, 27 Dec 2023 06:31:44 +0000 (06:31 +0000)]
Merge "Add freq/rssi info to AP list in the test app" into tizen

17 months agoMerge "Add logs to track the life cycle of config handle" into tizen
Jaehyun Kim [Wed, 27 Dec 2023 06:31:39 +0000 (06:31 +0000)]
Merge "Add logs to track the life cycle of config handle" into tizen

17 months agoModify configuration parsing to handle frequency value 77/303177/2 accepted/tizen/unified/20231227.063241
Anjali Nijhara [Wed, 20 Dec 2023 12:29:58 +0000 (17:59 +0530)]
Modify configuration parsing to handle frequency value

Change-Id: I25e5f9bd23d5f0cb0c459408b7bb8dab042d0886

17 months agoFix parsing of invalid devices 60/303060/2
Jaehyun Kim [Tue, 19 Dec 2023 11:01:20 +0000 (20:01 +0900)]
Fix parsing of invalid devices

If there are multiple devices,
the remaining devices are parsed even after the desired device is found,
so there is a problem in that
the last parsed value is used as the final value.

Therefore, it has been modified to not parse other devices
if parsing of the desired device is completed.

Change-Id: I90b77c2797a543dd4451252573dbd67a7213aca6
Signed-off-by: Jaehyun Kim <jeik01.kim@samsung.com>
18 months agoAdd freq/rssi info to AP list in the test app 81/302381/1
Jaehyun Kim [Wed, 6 Dec 2023 05:21:44 +0000 (14:21 +0900)]
Add freq/rssi info to AP list in the test app

Change-Id: Iddbe495f717b38a320b3a4021bb1d18f91fb8d89
Signed-off-by: Jaehyun Kim <jeik01.kim@samsung.com>
19 months agoAdd logs to track the life cycle of config handle 43/300043/1
Jaehyun Kim [Mon, 16 Oct 2023 07:05:09 +0000 (16:05 +0900)]
Add logs to track the life cycle of config handle

Change-Id: I6a0de755c0dec0cbb8eada297ef02ab2620737f8
Signed-off-by: Jaehyun Kim <jeik01.kim@samsung.com>
20 months agoSupport 6GHz band in RSSI level getter 93/299093/1 accepted/tizen/8.0/unified/20231005.092942 accepted/tizen/unified/20230920.161459 tizen_8.0_m2_release
Jaehyun Kim [Tue, 19 Sep 2023 12:37:06 +0000 (21:37 +0900)]
Support 6GHz band in RSSI level getter

Change-Id: Ifc0caab6aebc0a96d4f0108d6bb423b1c9cee0ce
Signed-off-by: Jaehyun Kim <jeik01.kim@samsung.com>
20 months agoUpdate unittest to fit changed error policy 95/298895/1 accepted/tizen/unified/20230918.154738
Jaehyun Kim [Fri, 15 Sep 2023 02:39:11 +0000 (11:39 +0900)]
Update unittest to fit changed error policy

Change-Id: Ib0b7146443e53157cb89262b971601d2d37a34e4
Signed-off-by: Jaehyun Kim <jeik01.kim@samsung.com>
21 months agoUpdate test app to support new API 79/298679/1 accepted/tizen/unified/20230913.172626
Jaehyun Kim [Tue, 12 Sep 2023 08:56:29 +0000 (17:56 +0900)]
Update test app to support new API

Change-Id: Ie344986c681ced7b4fc5e66ff8c34969b1774b01
Signed-off-by: Jaehyun Kim <jeik01.kim@samsung.com>
21 months agoSupport NoCarrier error type 21/298521/1
Jaehyun Kim [Fri, 8 Sep 2023 07:48:09 +0000 (16:48 +0900)]
Support NoCarrier error type

When requesting a scan, if the wifi is down in another module,
a NoCarrier error may occur depending on the timing.
There is a need to handle this separately in the APP,
so an error type is added.

Change-Id: I89ed7c84a9e177a36596949c5460b720f0aaf4fb
Signed-off-by: Jaehyun Kim <jeik01.kim@samsung.com>
21 months agoAdded CAPI to check for 6Ghz band support 10/298510/1
Jaehyun Kim [Fri, 8 Sep 2023 06:46:35 +0000 (15:46 +0900)]
Added CAPI to check for 6Ghz band support

Change-Id: Ibb229a514d42ce84a4bcc173de24f87e65fba139
Signed-off-by: Jaehyun Kim <jeik01.kim@samsung.com>
21 months agoSupport multiple interfaces in test app 09/298509/1
Jaehyun Kim [Tue, 25 Jul 2023 09:20:04 +0000 (18:20 +0900)]
Support multiple interfaces in test app

Change-Id: I666bbab6d8534b4318fd03a435231e002d115393
Signed-off-by: Jaehyun Kim <jeik01.kim@samsung.com>
2 years agoClear all callback timers when deinit 02/288302/1 accepted/tizen/7.0/unified/20230216.140342 accepted/tizen/unified/20230315.093506
Jaehyun Kim [Wed, 15 Feb 2023 03:02:58 +0000 (12:02 +0900)]
Clear all callback timers when deinit

Change-Id: I4bbd9d2e34378842ff5039552ac9795e5ba2f62a
Signed-off-by: Jaehyun Kim <jeik01.kim@samsung.com>
2 years agoRemove DA extension package 58/287258/2 accepted/tizen/7.0/unified/20230126.170237
Jaehyun Kim [Thu, 26 Jan 2023 02:39:15 +0000 (11:39 +0900)]
Remove DA extension package

DA package has a potential dependency problem with other packages,
so a separate DA package will not be created.
And the patches that existed only in the DA package were
reviewed and merged in the common package.

Change-Id: I4b30870fd0dc901df0e68eeb3d95ae1f0acf8e9f
Signed-off-by: Jaehyun Kim <jeik01.kim@samsung.com>
2 years agoImprove APIs that inform DHCP status 57/286657/2
Jaehyun Kim [Wed, 11 Jan 2023 09:26:35 +0000 (18:26 +0900)]
Improve APIs that inform DHCP status

Signal for DHCP start point has been added.
And undefine TIZEN_DA for extension APIs.

Change-Id: I64ab4d0f9a6b2feef1f541893c35a2d476790f52
Signed-off-by: Jaehyun Kim <jeik01.kim@samsung.com>
2 years agoAdd an API for removing all AP configurations 01/286501/1
Jaehyun Kim [Mon, 9 Jan 2023 05:22:25 +0000 (14:22 +0900)]
Add an API for removing all AP configurations

Change-Id: I1b302c60b37dfb968d7fbaea70be5e71b9047614
Signed-off-by: Jaehyun Kim <jeik01.kim@samsung.com>
2 years agoAdd APIs for setting background scan interval 72/285872/3
Jaehyun Kim [Thu, 22 Dec 2022 03:44:38 +0000 (12:44 +0900)]
Add APIs for setting background scan interval

Change-Id: Ia71290f860cecb876fae398bab15979783d27a8b
Signed-off-by: Jaehyun Kim <jeik01.kim@samsung.com>
2 years agoDA: Applying secure log 60/283660/1
Jaehyun Kim [Tue, 1 Nov 2022 05:26:52 +0000 (14:26 +0900)]
DA: Applying secure log

Change-Id: I12cff8da99c4a8822b5f05bf3db11b1e7ce74469
Signed-off-by: Jaehyun Kim <jeik01.kim@samsung.com>
2 years agoDA: Add get/set power-save state/mode APIs 43/283543/1
Jaehyun Kim [Fri, 28 Oct 2022 09:00:09 +0000 (18:00 +0900)]
DA: Add get/set power-save state/mode APIs

Change-Id: I02dc25fd89bd4ebdfa23de3ea41dca4256307a74
Signed-off-by: Jaehyun Kim <jeik01.kim@samsung.com>
2 years agoDA: Add set/unset DHCP state callback function 38/283538/2
Jaehyun Kim [Fri, 28 Oct 2022 08:09:38 +0000 (17:09 +0900)]
DA: Add set/unset DHCP state callback function

Change-Id: Ia0c1e8be8150553be3e8823cf6686ec47dddea36
Signed-off-by: Jaehyun Kim <jeik01.kim@samsung.com>
2 years agoDA: Fix for SAE security type 90/283490/1
Jaehyun Kim [Thu, 27 Oct 2022 13:37:14 +0000 (22:37 +0900)]
DA: Fix for SAE security type

Change-Id: I37979d6765ceb87e2608349fc3595e4419fcc5b5
Signed-off-by: Jaehyun Kim <jeik01.kim@samsung.com>
2 years agoDA: If ProfileErrorState is invalid-key, require password and do not net_open_connection 89/283489/3
Jaehyun Kim [Thu, 27 Oct 2022 13:05:19 +0000 (22:05 +0900)]
DA: If ProfileErrorState is invalid-key, require password and do not net_open_connection

Change-Id: Ia33c7bca9403d822313e2ef925f3d8a1a7fe1c31
Signed-off-by: Jaehyun Kim <jeik01.kim@samsung.com>
2 years agoDA: Fix connetion state callback issues 59/283459/1
Jaehyun Kim [Thu, 27 Oct 2022 07:37:15 +0000 (16:37 +0900)]
DA: Fix connetion state callback issues

Change-Id: I53dbf4064633851d7e047cac6056712bcdeacd2b
Signed-off-by: Jaehyun Kim <jeik01.kim@samsung.com>
2 years agoDA: vsie format header can be dd and DD 58/283458/1
Jaehyun Kim [Thu, 27 Oct 2022 07:12:11 +0000 (16:12 +0900)]
DA: vsie format header can be dd and DD

Change-Id: Ic0b796333ff4ab5005a7c1ab4c4f4bc85f3f50b5
Signed-off-by: Jaehyun Kim <jeik01.kim@samsung.com>
2 years agoDA: Save last net_profile_info_s for connection state callback 56/283456/1
Jaehyun Kim [Thu, 27 Oct 2022 06:57:33 +0000 (15:57 +0900)]
DA: Save last net_profile_info_s for connection state callback

Save the last net_profile_info_s structure to send the connection state callback.
It doesn't have to send the null parameter to connection state callback.
So it saves the last net_profile_info_s structure.

Change-Id: Id71db25f97fad96d4403b614e27ccc8410f492ba
Signed-off-by: Jaehyun Kim <jeik01.kim@samsung.com>
2 years agoDA: Add connection callback timer 11/283211/2
Jaehyun Kim [Thu, 20 Oct 2022 09:06:27 +0000 (18:06 +0900)]
DA: Add connection callback timer

Send the callback to upper layer forcibly
if it did not receive the connection callback until 50 sec.

Invoke connection request and status callback
if it did not receive connection response.

Change-Id: I35caefdd24bc899db057c1d3a28ecf465e80b58e
Signed-off-by: Jaehyun Kim <jeik01.kim@samsung.com>
2 years agoDA: Add scan callback timer 01/283201/1
Jaehyun Kim [Thu, 20 Oct 2022 07:52:40 +0000 (16:52 +0900)]
DA: Add scan callback timer

Send the callback to upper layer forcibly
if it did not receive the scan callback from connman until 10 sec.

Update bssid list from net-config
when it could not get the bssid scan callback until 10 sec.

Change-Id: I575f91c47d998990a497423cd17d75fbf8543559
Signed-off-by: Jaehyun Kim <jeik01.kim@samsung.com>
2 years agoDA: Create DA extension package for appliance devices 81/283181/2
Jaehyun Kim [Thu, 20 Oct 2022 02:27:01 +0000 (11:27 +0900)]
DA: Create DA extension package for appliance devices

Change-Id: I4a847c3e2407d83063f07956a3995b344eec8f25
Signed-off-by: Jaehyun Kim <jeik01.kim@samsung.com>
2 years agoFix resource leak that occur when finishing dbus call 46/282546/1
Jaehyun Kim [Wed, 5 Oct 2022 08:07:31 +0000 (17:07 +0900)]
Fix resource leak that occur when finishing dbus call

Change-Id: I2c0012b63ef601145685e32bcfd369819e8062af
Signed-off-by: Jaehyun Kim <jeik01.kim@samsung.com>
2 years agoFix resource leak that occur when getting IP 40/282340/1
Jaehyun Kim [Fri, 30 Sep 2022 03:40:06 +0000 (12:40 +0900)]
Fix resource leak that occur when getting IP

Change-Id: I7ad65f496f8d172f5b8edbb943cce773a1340c67
Signed-off-by: Jaehyun Kim <jeik01.kim@samsung.com>
2 years agoAdd a new wifi error type for association failure 39/280939/3 accepted/tizen_7.0_unified_hotfix tizen_7.0_hotfix accepted/tizen/7.0/unified/20221110.061104 accepted/tizen/7.0/unified/hotfix/20221116.104926 accepted/tizen/unified/20220919.012627 tizen_7.0_m2_release
Jaehyun Kim [Wed, 7 Sep 2022 02:50:18 +0000 (11:50 +0900)]
Add a new wifi error type for association failure

Change-Id: I6e44be299523f6f1ea2cb7808805eb3aed76bf8c
Signed-off-by: Jaehyun Kim <jeik01.kim@samsung.com>
2 years agoMove some extension CAPIs to wifi-manager.h 30/280930/5
Jaehyun Kim [Wed, 7 Sep 2022 02:14:35 +0000 (11:14 +0900)]
Move some extension CAPIs to wifi-manager.h

Change-Id: Iad635537cf3eeac58180003cf082ae92d3d23b20
Signed-off-by: Jaehyun Kim <jeik01.kim@samsung.com>
2 years agoRefactor duplicate codes 97/280497/1 accepted/tizen/unified/20220908.124848 submit/tizen/20220902.085939
Jaehyun Kim [Wed, 31 Aug 2022 02:53:24 +0000 (11:53 +0900)]
Refactor duplicate codes

Change-Id: I958242747e831302ba55bed91221a44d9a493f69
Signed-off-by: Jaehyun Kim <jeik01.kim@samsung.com>
3 years agoApply gcov automation 64/276064/1 accepted/tizen/unified/20220614.134721 submit/tizen/20220610.003743
Seonah Moon [Thu, 9 Jun 2022 06:02:33 +0000 (15:02 +0900)]
Apply gcov automation

Change-Id: I3aa386b20275117d025bc0b4c3bdf62e575780d4

3 years agoAdd CAPI to provide PMF information 34/271034/2 accepted/tizen/unified/20220216.175741 submit/tizen/20220215.060643
Jaehyun Kim [Mon, 14 Feb 2022 11:22:35 +0000 (20:22 +0900)]
Add CAPI to provide PMF information

Change-Id: Idf213f236d201e21c7a26ab7eb79d3a8997c244e
Signed-off-by: Jaehyun Kim <jeik01.kim@samsung.com>
3 years agoFix gcov path 50/270850/1 accepted/tizen/unified/20220210.105958 submit/tizen/20220210.062955
Jaehyun Kim [Thu, 10 Feb 2022 06:08:58 +0000 (15:08 +0900)]
Fix gcov path

Change-Id: I2b53d19d2a4d0097707155a2aa3f3bf5e67d3d5a
Signed-off-by: Jaehyun Kim <jeik01.kim@samsung.com>
3 years agoFix dereference null return value 61/270661/1
Jaehyun Kim [Mon, 7 Feb 2022 10:36:04 +0000 (19:36 +0900)]
Fix dereference null return value

Change-Id: I1b54ee88eb6d0ac536f5f11a6cd34fccd61296ea
Signed-off-by: Jaehyun Kim <jeik01.kim@samsung.com>
3 years agoChange a gcov path 85/270185/1 accepted/tizen/unified/20220208.112043 submit/tizen/20220126.091456 submit/tizen/20220203.092210
Jaehyun Kim [Wed, 26 Jan 2022 08:35:51 +0000 (17:35 +0900)]
Change a gcov path

Change-Id: I13c536984fccc5d6c2f1e73974dd297a258c7f57
Signed-off-by: Jaehyun Kim <jeik01.kim@samsung.com>
3 years agoModified to get frequency info for bssid scan 32/269632/1 accepted/tizen/unified/20220126.213031 submit/tizen/20220125.082819
Jaehyun Kim [Wed, 19 Jan 2022 09:33:36 +0000 (18:33 +0900)]
Modified to get frequency info for bssid scan

Change-Id: I10faff5cb734e796134b0f676baf519ba6d410b3
Signed-off-by: Jaehyun Kim <jeik01.kim@samsung.com>
3 years agoSupport association failed error 61/269361/1 accepted/tizen/unified/20220119.121801 submit/tizen/20220118.052414
Jaehyun Kim [Thu, 13 Jan 2022 07:07:38 +0000 (16:07 +0900)]
Support association failed error

Change-Id: I85caf38d46c91ae6f906eebb49aa1302e309244c
Signed-off-by: Jaehyun Kim <jeik01.kim@samsung.com>
3 years agoAdd CAPIs to handle Wi-Fi roaming signal 20/268320/1 accepted/tizen/unified/20220105.120858 submit/tizen/20211230.063452 submit/tizen/20211230.103710
Jaehyun Kim [Mon, 20 Dec 2021 09:02:49 +0000 (18:02 +0900)]
Add CAPIs to handle Wi-Fi roaming signal

Change-Id: I0330789ad6b7be26776c42e1bf022862898a745c
Signed-off-by: Jaehyun Kim <jeik01.kim@samsung.com>
3 years agoMerge "Fix set bssid operation" into tizen accepted/tizen/unified/20211216.155818 submit/tizen/20211215.063645
Jaehyun Kim [Wed, 15 Dec 2021 05:07:52 +0000 (05:07 +0000)]
Merge "Fix set bssid operation" into tizen

3 years agoFix set bssid operation 65/267965/2
Nishant Chaprana [Tue, 14 Dec 2021 04:48:03 +0000 (10:18 +0530)]
Fix set bssid operation

Change-Id: Ic8a4b7485ec2770e5dc4636bdfaa0069b16a734c
Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
3 years agoFix not getting 5GHz support information 64/267964/2
Jaehyun Kim [Tue, 14 Dec 2021 04:41:36 +0000 (13:41 +0900)]
Fix not getting 5GHz support information

Change-Id: Ibad91af3274b7adac1f954b275b66fc806a28716
Signed-off-by: Jaehyun Kim <jeik01.kim@samsung.com>
3 years agoAdd CAPI to provide available security method information 51/267551/1
Jaehyun Kim [Tue, 7 Dec 2021 05:30:20 +0000 (14:30 +0900)]
Add CAPI to provide available security method information

Change-Id: Ibd1c19f0e9da4e7b33b5e51ba5317ca3da1d49ee
Signed-off-by: Jaehyun Kim <jeik01.kim@samsung.com>
3 years agoIgnore async dbus method call reply when G_IO_ERROR_CANCELLED is returned 72/266772/3 accepted/tizen/unified/20211129.120823 submit/tizen/20211125.124313 submit/tizen/20211126.045758
Nishant Chaprana [Thu, 18 Nov 2021 11:02:22 +0000 (16:32 +0530)]
Ignore async dbus method call reply when G_IO_ERROR_CANCELLED is returned

In below scenario there are chances of dangling pointer access.
1. wifi_manager_initialize()

2. wifi_scan() or any other API which makes async dbus method call.
   --> GDBUS increases gdbus connection ref count.

3. wifi_manager_deinitialize()
   --> we cancel all method calls and unref gdbus connection and assign NULL to it.

4. Dbus reply recieved on default thread.
   --> Because gdbus connection is not freed by gdbus, callback comes to us.

5. G_IO_ERROR_CANCELLED returned in g_dbus_connection_call_finish()
   --> Invalid memory access when network_info is derefered for sending callback.

Change-Id: I592f33f115aa6091890a530b1e2daaec88a45d81
Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
3 years agoSend interface_name when using TDLS Dbus method calls 45/266645/1
Nishant Chaprana [Tue, 16 Nov 2021 11:16:37 +0000 (16:46 +0530)]
Send interface_name when using TDLS Dbus method calls

Change-Id: I1ac819750ac03fb12a384c34571e2c7d7aafad8a
Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
3 years agoMerge "Fix memory leak by using &s for processing dbus signal" into tizen submit/tizen/20211117.050637
Jaehyun Kim [Tue, 16 Nov 2021 11:08:37 +0000 (11:08 +0000)]
Merge "Fix memory leak by using &s for processing dbus signal" into tizen

3 years agoMerge "Get vconf value via DBus in container environment" into tizen
Jaehyun Kim [Fri, 12 Nov 2021 08:36:05 +0000 (08:36 +0000)]
Merge "Get vconf value via DBus in container environment" into tizen

3 years agoMerge "Add support for container environment" into tizen
Jaehyun Kim [Thu, 11 Nov 2021 10:14:56 +0000 (10:14 +0000)]
Merge "Add support for container environment" into tizen

3 years agoGet vconf value via DBus in container environment 68/266268/5
Jaehyun Kim [Wed, 10 Nov 2021 05:59:15 +0000 (14:59 +0900)]
Get vconf value via DBus in container environment

Change-Id: I35e19ed16c1558f5eb05ae000f330af04d1805e0
Signed-off-by: Jaehyun Kim <jeik01.kim@samsung.com>
3 years agoFix memory leak by using &s for processing dbus signal 26/266226/1
Nishant Chaprana [Tue, 9 Nov 2021 08:24:03 +0000 (13:54 +0530)]
Fix memory leak by using &s for processing dbus signal

Change-Id: I600e761ce3080907544f3286ddcb4a1fbdbec07a
Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
3 years agoMerge "Try to connect the AP using static IP if it's sec_mode is SAE" into tizen submit/tizen/20211029.104555
Jaehyun Kim [Mon, 25 Oct 2021 02:12:49 +0000 (02:12 +0000)]
Merge "Try to connect the AP using static IP if it's sec_mode is SAE" into tizen

3 years agoFix enumeration mismatch during security type extraction 70/265270/1 submit/tizen/20211021.102523
Nishant Chaprana [Wed, 13 Oct 2021 12:52:25 +0000 (18:22 +0530)]
Fix enumeration mismatch during security type extraction

Change-Id: I2030623974de6e6a1f62544c3ea57492b21e034a
Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
3 years agoAdd support for container environment 42/265142/1
Jaehyun Kim [Tue, 12 Oct 2021 02:53:44 +0000 (11:53 +0900)]
Add support for container environment

Modified the container's wifi-manager to use the host's network daemons
to allow the container and host to control the same wifi interface.

Change-Id: Ifcdf4f1f722be9aeb4ae14dfc465e6c590f19ef8
Signed-off-by: Jaehyun Kim <jeik01.kim@samsung.com>
3 years agoTry to connect the AP using static IP if it's sec_mode is SAE 16/265116/1
Niraj Kumar Goit [Mon, 11 Oct 2021 07:28:21 +0000 (12:58 +0530)]
Try to connect the AP using static IP if it's sec_mode is SAE

Change-Id: I950cec931127a8e52f4f517ce6242ef0a197b810
Signed-off-by: Niraj Kumar Goit <niraj.g@samsung.com>
3 years agoFix uninitialized variable usage 36/265036/1
Nishant Chaprana [Wed, 6 Oct 2021 11:19:38 +0000 (16:49 +0530)]
Fix uninitialized variable usage

Change-Id: I51251319fb2af940c2a1b93ccbecf989133bd5fe
Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
3 years agoFix resource leak in close connection reply handler 35/265035/1
Nishant Chaprana [Wed, 6 Oct 2021 11:03:11 +0000 (16:33 +0530)]
Fix resource leak in close connection reply handler

Change-Id: I6052bdd059c6b4e65354531d63f05bcd41a50496
Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
3 years agoAdd gcov build and line coverage calculation during build 35/264835/6
Nishant Chaprana [Thu, 30 Sep 2021 11:47:26 +0000 (17:17 +0530)]
Add gcov build and line coverage calculation during build

Change-Id: I9fea1ed0f2ebc182a09be5b2d6d69d19282280c1
Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
3 years agoFix coding guidelines issues 33/264833/2
Nishant Chaprana [Thu, 30 Sep 2021 10:39:50 +0000 (16:09 +0530)]
Fix coding guidelines issues

Change-Id: Ia4c414ed860173b2ff9ce0d662344520635f1478
Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
3 years agorevise wifi_manager_test 24/240824/4 accepted/tizen/6.5/unified/20211028.095310 accepted/tizen/unified/20210806.122102 submit/tizen/20210805.124520 submit/tizen_6.5/20211028.161801 tizen_6.5.m2_release
Youngjae Shin [Wed, 12 Aug 2020 00:34:59 +0000 (09:34 +0900)]
revise wifi_manager_test

separate big file and function
add storage class specifier(static)

Change-Id: I35484c7725ebb1d02d45b28a595cb7d4b1038676

3 years agoincrease code quality 25/240825/3
Youngjae Shin [Wed, 12 Aug 2020 00:44:26 +0000 (09:44 +0900)]
increase code quality

separate big function
add storage class specifier(static)
remove unused global varialbe

Change-Id: I9a61adc1c253a145654752ce869f85c7ad87380a

3 years ago[cleanup]revise build scripts and packaging 23/240823/4
Youngjae Shin [Wed, 12 Aug 2020 00:30:49 +0000 (09:30 +0900)]
[cleanup]revise build scripts and packaging

Change-Id: I03496fcdb3d0c713b1f40e15940fed29fc24cfed

3 years ago[cleanup]revise file location and mode 22/240822/7
Youngjae Shin [Wed, 12 Aug 2020 00:25:56 +0000 (09:25 +0900)]
[cleanup]revise file location and mode

Change-Id: Ia5c9b5842e9ecad1d0888241e0b250fd94f8ceef

3 years agoMerge "Add feature check in Mac Policy APIs" into tizen accepted/tizen/unified/20210727.124517 submit/tizen/20210726.021626
Jaehyun Kim [Mon, 26 Jul 2021 01:59:42 +0000 (01:59 +0000)]
Merge "Add feature check in Mac Policy APIs" into tizen

3 years agoFix crash issue. 12/260612/1 accepted/tizen/unified/20210702.133354 submit/tizen/20210701.045026
Niraj Kumar Goit [Tue, 29 Jun 2021 19:11:31 +0000 (00:41 +0530)]
Fix crash issue.

If garbage pointer is passed as AP handle in wifi_manager_ap_destroy() API,
crash is observed while dereferencing the given pointer.

Change-Id: I89a71552c03b3fb90ed3fc5c9eda38cdae77e4d7
Signed-off-by: Niraj Kumar Goit <niraj.g@samsung.com>
3 years agoFix gtests test cases and Disabled some cases temporarily 54/259754/2 accepted/tizen/unified/20210616.132518 submit/tizen/20210615.081101
Nishant Chaprana [Fri, 11 Jun 2021 09:32:23 +0000 (15:02 +0530)]
Fix gtests test cases and Disabled some cases temporarily

Change-Id: I95c797d982aa0736fabb497f15b050a6619637d1
Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
3 years agoFix gtests test cases for AP operations 53/259753/2
Nishant Chaprana [Fri, 11 Jun 2021 06:30:46 +0000 (12:00 +0530)]
Fix gtests test cases for AP operations

Change-Id: I97592a3399f30d2a6163caaba6c08cd0d60ec1e8
Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
3 years agoAdd NULL check for connect_mode 23/259723/3
Nishant Chaprana [Fri, 11 Jun 2021 10:12:51 +0000 (15:42 +0530)]
Add NULL check for connect_mode

Change-Id: I771e9c311b7a1e2d61cddbce868e6bf5c2586146
Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
3 years agoMerge "Use strtol to identify invalid input before setting subnet_mask" into tizen
Jaehyun Kim [Tue, 15 Jun 2021 08:01:38 +0000 (08:01 +0000)]
Merge "Use strtol to identify invalid input before setting subnet_mask" into tizen

4 years agoMerge "Fix resource leak for ap_info" into tizen
Jaehyun Kim [Tue, 15 Jun 2021 06:33:41 +0000 (06:33 +0000)]
Merge "Fix resource leak for ap_info" into tizen

4 years agoMerge "Initialize scalar variable for wps_info" into tizen
Jaehyun Kim [Tue, 15 Jun 2021 06:33:39 +0000 (06:33 +0000)]
Merge "Initialize scalar variable for wps_info" into tizen

4 years agoUse strtol to identify invalid input before setting subnet_mask 95/259695/4
Nishant Chaprana [Fri, 11 Jun 2021 06:38:10 +0000 (12:08 +0530)]
Use strtol to identify invalid input before setting subnet_mask

Change-Id: I7ebddac6fd4a5808baa15de4e59d7a575485cc00
Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
4 years agoMerge "Add NULL check for dhcp_server before dereferencing" into tizen
Jaehyun Kim [Fri, 11 Jun 2021 04:37:33 +0000 (04:37 +0000)]
Merge "Add NULL check for dhcp_server before dereferencing" into tizen

4 years agoAdd NULL check for dhcp_server before dereferencing 80/259680/1
Nishant Chaprana [Fri, 11 Jun 2021 04:22:07 +0000 (09:52 +0530)]
Add NULL check for dhcp_server before dereferencing

Change-Id: I165545377844140c644e2112a34d64032844e008
Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
4 years agoRemove unused dbus signal filter 87/258487/2
Nishant Chaprana [Tue, 18 May 2021 10:42:34 +0000 (16:12 +0530)]
Remove unused dbus signal filter

Change-Id: I9bc17f541cf622a8d693c1acf4f605e5793baf94
Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
4 years agoFix resource leak for ap_info 68/259668/1
hyunuk.tak [Thu, 10 Jun 2021 22:26:41 +0000 (07:26 +0900)]
Fix resource leak for ap_info

Change-Id: I5195dbcd1a8f1cd1f4b15e2d997631e73e02db96
Signed-off-by: hyunuk.tak <hyunuk.tak@samsung.com>
4 years agoInitialize scalar variable for wps_info 67/259667/1
hyunuk.tak [Thu, 10 Jun 2021 22:19:25 +0000 (07:19 +0900)]
Initialize scalar variable for wps_info

Change-Id: Ic3a84bd74a4e4c785613b664cc78a6bfcc928c14
Signed-off-by: hyunuk.tak <hyunuk.tak@samsung.com>
4 years agoGet Mac Policy parameters from Connman instead of wifi_handle 56/259556/2
Nishant Chaprana [Wed, 9 Jun 2021 12:46:50 +0000 (18:16 +0530)]
Get Mac Policy parameters from Connman instead of wifi_handle

Change-Id: Ib883b766ada55290fc5d50e86d4d00dfd43ad246
Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
4 years agoMerge "[tools] Fix build warnings" into tizen accepted/tizen/unified/20210601.135346 submit/tizen/20210528.085525
Jaehyun Kim [Fri, 28 May 2021 08:49:42 +0000 (08:49 +0000)]
Merge "[tools] Fix build warnings" into tizen

4 years agoMerge "[Fix build warnings] Declaration of 'rv' shadows a previous local" into tizen
Jaehyun Kim [Fri, 28 May 2021 08:49:17 +0000 (08:49 +0000)]
Merge "[Fix build warnings] Declaration of 'rv' shadows a previous local" into tizen

4 years agoMerge "[Fix build warnings] Missing initializer of 'network_tech_state_info_s'" into...
Jaehyun Kim [Fri, 28 May 2021 08:48:59 +0000 (08:48 +0000)]
Merge "[Fix build warnings] Missing initializer of 'network_tech_state_info_s'" into tizen

4 years agoMerge "Use dbus method 'GetConnectedService' to get connected AP" into tizen
Jaehyun Kim [Fri, 28 May 2021 08:47:54 +0000 (08:47 +0000)]
Merge "Use dbus method 'GetConnectedService' to get connected AP" into tizen

4 years ago[tools] Fix build warnings 34/258834/1
Nishant Chaprana [Wed, 26 May 2021 09:38:48 +0000 (15:08 +0530)]
[tools] Fix build warnings

Change-Id: I1d6b3802e80dd21687dfad4d611a3ba453c63f49
Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
4 years ago[Fix build warnings] Declaration of 'rv' shadows a previous local 33/258833/1
Nishant Chaprana [Wed, 26 May 2021 09:08:20 +0000 (14:38 +0530)]
[Fix build warnings] Declaration of 'rv' shadows a previous local

Change-Id: Ie6ae3ef465eb005e4c52be906fbd930dee7125a9
Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
4 years ago[Fix build warnings] Missing initializer of 'network_tech_state_info_s' 32/258832/1
Nishant Chaprana [Wed, 26 May 2021 09:02:29 +0000 (14:32 +0530)]
[Fix build warnings] Missing initializer of 'network_tech_state_info_s'

Change-Id: I7c60ba833c763227edb34737775b43e76d820848
Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>