Yu [Mon, 18 Feb 2019 07:58:58 +0000 (16:58 +0900)]
Remove IsGroupOwner call when application initialize capi
Description : The IsGroupOnwer method call was used to check
privilege at wifi_direct_initialize. But AddClient method
call checks privilege also. So, that became unnecessary
overhead.
Change-Id: Ibea141920a9f703644ece0dd483d945cc0059e12
Signed-off-by: Yu jiung <jiung.yu@samsung.com>
Yu [Wed, 16 Jan 2019 07:42:17 +0000 (16:42 +0900)]
Fix typo in public header
Change-Id: Iee89db5a278b9e6bbfc6469c9429580c6bf67519
Signed-off-by: Yu jiung <jiung.yu@samsung.com>
Shagun Garg [Fri, 21 Dec 2018 05:39:32 +0000 (11:09 +0530)]
[Multithread support] Maintain ref_count for Dbus signal registration/deregistration
Maintain ref_count for Dbus signal registration/deregistration.
Register for DBus signals only once for a process, irrespective of multiple threads.
Deregiter Dbus signals when ref_count becomes zero.
This patch also handles the case when duplicated signals are being sent to main thread because of multiple threads signal registrations.
Change-Id: I33b1b53f69538e39fdef183fc7f06122e16c324f
Signed-off-by: Shagun Garg <shagun1.garg@samsung.com>
Shagun Garg [Wed, 26 Sep 2018 09:18:37 +0000 (14:48 +0530)]
Support for MultiThreaded Applications
This Patch makes the variable "wifi_direct_dbus_signal_map[]" thread specific.
As a result, mutilple threads in a single application can maintain subscription/unsubscription for signals.
Signed-off-by: Shagun Garg <shagun1.garg@samsung.com>
Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
Change-Id: If6a1cfa2563e47c54e61db5bf61dba46660f0869
chleun.moon [Tue, 28 Aug 2018 04:25:43 +0000 (13:25 +0900)]
Fix typo
Change-Id: Ib01123d4ee5c5a818d8a50233953b31230174725
Signed-off-by: Cheoleun Moon <chleun.moon@samsung.com>
Shagun Garg [Thu, 16 Aug 2018 05:25:52 +0000 (10:55 +0530)]
Fix invalid syntax for g_variant_get()
This patch fixes the error in usage of g_variant_get()
Signed-off-by: Shagun Garg <shagun1.garg@samsung.com>
Change-Id: I9da02346cdfa1eb2557f1b5ba70ed923c9c96d88
taesub kim [Tue, 31 Jul 2018 07:28:18 +0000 (07:28 +0000)]
Merge "Implemented wifi_direct_get_display() and wifi_direct_get_display_availability()" into tizen
taesub.kim [Sun, 29 Jul 2018 23:28:01 +0000 (08:28 +0900)]
[Prototype] Add APIs to fetch Wi-Fi Display information of own device #2
Change-Id: I49e306ace655c748b50d3a8ae77be5942e087c4b
Signed-off-by: Taesub Kim <taesub.kim@samsung.com>
Nishant Chaprana [Mon, 30 Jul 2018 06:36:46 +0000 (12:06 +0530)]
Implemented wifi_direct_get_display() and wifi_direct_get_display_availability()
Change-Id: I4571e8ec0ff98ed6524aefbc7861663a9dfb37d3
Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
Nishant Chaprana [Thu, 26 Jul 2018 06:18:14 +0000 (11:48 +0530)]
Fixed doxygen documentation issues in wifi-direct.h
Change-Id: Iadda688708081fede3cf4ba3b3a904cfe312d71c
Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
Nishant Chaprana [Wed, 25 Jul 2018 11:49:43 +0000 (17:19 +0530)]
[Prototype] Add APIs to fetch Wi-Fi Display information of own device.
Change-Id: I940d1fe08477a41ac95f22a57a084f1dc3fb00b0
Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
Nishant Chaprana [Tue, 24 Jul 2018 10:42:45 +0000 (16:12 +0530)]
[Fix][stack-buffer-overflow] Use gboolean when using g_variant_get for boolean.
Description: g_variant_get API expects reference of gboolean variable
in third parameter, and we arepassing reference of bool variable.
As per Glib's documentation, gboolean is typecast of int.
=================================================================
(Reference: https://people.gnome.org/~desrt/glib-docs/glib-Basic-Types.html#gboolean)
gboolean
typedef gint gboolean;
A standard boolean type. Variables of this type should only contain the value TRUE or FALSE.
=================================================================
Change-Id: I89ee1d9e367efec6355d31837d3efbcb13d0fabb
Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
Milind Murhekar [Mon, 21 May 2018 13:39:18 +0000 (19:09 +0530)]
Fix: Call connection callback at reception of "DisconectionInd" event
Description: This patch fixes the scenario in which connection callback
is never called when wfd-manager sends DisconnectionInd event.
Change-Id: Ic06835b5e51ea3779b56848d3691b25938139165
Signed-off-by: Milind Murhekar <m.murhekar@samsung.com>
Jiung [Tue, 24 Apr 2018 04:47:52 +0000 (13:47 +0900)]
Add Not supported error for some CAPIs
Change-Id: I763ddef7aa718ae7fa9d00631e69c429a2922984
Signed-off-by: Yu jiung <jiung.yu@samsung.com>
Jiung [Mon, 23 Apr 2018 23:56:01 +0000 (08:56 +0900)]
Add CAPI description about returning error
Change-Id: I3e340c9f0828c8c827a18a044c2048bb7b3face6
Signed-off-by: Yu jiung <jiung.yu@samsung.com>
Milind Murhekar [Thu, 29 Mar 2018 09:59:31 +0000 (15:29 +0530)]
Add new APIs for Wi-Fi Direct
Decription: This patch adds the new API's
for below functionalities for Wi-Fi Direct Applications.
a) create Group with SSID
b) set/get go intent based on device type
c) set/unset notification for peer device info connection state
d) set/get WPS config method
e) remove persistent device based on BSSID
f) remove all persistent device
Change-Id: Ib0b2fe539737de038f5430cd64ebda33e238ef1b
Signed-off-by: Milind Murhekar <m.murhekar@samsung.com>
taesub kim [Fri, 16 Mar 2018 00:02:06 +0000 (00:02 +0000)]
Merge "Fix various bugs from static analysis in a test file" into tizen
Taesoo Jun [Tue, 13 Mar 2018 10:22:41 +0000 (19:22 +0900)]
Fix various bugs from static analysis in a test file
Change-Id: Ic134afb2d20215b8a9826fbb804facbdc5c9be81
Jiung [Mon, 12 Mar 2018 23:56:49 +0000 (08:56 +0900)]
Fix resource leak
Change-Id: Ia675d3ff4f55ac2ec1a242a140e40d04558e4ef0
Signed-off-by: Yu jiung <jiung.yu@samsung.com>
Nishant Chaprana [Tue, 13 Feb 2018 11:42:55 +0000 (17:12 +0530)]
Implemented wifi_direct_get_peer_vsie()
Change-Id: Ida380a49e368ffd5a8d4b95491d1a08a9ea2e9af
Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
Jiung [Tue, 30 Jan 2018 05:29:35 +0000 (14:29 +0900)]
Deprecated wifi_display_type_e as it is no more used by library.
Instead of wifi_display_type_e library uses wifi_direct_display_type_e
Change-Id: I500e8f6569ce116c3a28640e575648bffa3a65da
Signed-off-by: Yu jiung <jiung.yu@samsung.com>
Jiung [Tue, 30 Jan 2018 05:27:34 +0000 (14:27 +0900)]
Deprecated vsie_info from discovered peer infor structure
Change-Id: I0b1d4504b6e92ecd56057ac8831470f9adb0d5c1
Signed-off-by: Yu jiung <jiung.yu@samsung.com>
Jiung [Tue, 30 Jan 2018 05:24:46 +0000 (14:24 +0900)]
Add wifi_direct_get_peer_vsie() API
Change-Id: I63ea17a7f8981bf9b1d03212eb7d0f8dc4937316
Signed-off-by: Yu jiung <jiung.yu@samsung.com>
taesub kim [Thu, 25 Jan 2018 07:39:32 +0000 (16:39 +0900)]
Added test rpm
Change-Id: If1d548ddbc7774288aeb3545f99a8db0ba4e0a6f
Signed-off-by: Taesub Kim <taesub.kim@samsung.com>
Milind Ramesh Murhekar [Thu, 31 Aug 2017 07:09:10 +0000 (12:39 +0530)]
Add API usage guide in doxygen report
Decription: This patch adds the API usage code
snippet to demonstrate the functionality of all API's
in doxygen report of Wi-Fi Direct.
Change-Id: Id7cd139d9524efd1f585a4de1e328d1d78bffaff
Signed-off-by: Milind Ramesh Murhekar <m.murhekar@samsung.com>
Jiung [Thu, 31 Aug 2017 06:34:59 +0000 (15:34 +0900)]
Remove unused RPM
Change-Id: I5efa67548422f7da6e3c0509bb0661ab59008c00
Signed-off-by: Yu jiung <jiung.yu@samsung.com>
Jiung Yu [Tue, 18 Jul 2017 04:05:34 +0000 (13:05 +0900)]
Remove the TIZEN_FEATURE_WIFI_DIRECT_ON_DEMAND build flag
Description: We'll handle this feature only in wfd-manager and
it's configuration file.
Change-Id: Icbdb2a87edbdad21e4c50d99774aef08c897776f
Signed-off-by: Yu jiung <jiung.yu@samsung.com>
Jiung Yu [Wed, 12 Jul 2017 05:02:35 +0000 (14:02 +0900)]
Remove TIZEN_FEATURE_SERVICE_DISCOVERY build flag
Description: Remove this flag and manage it at run time.
If "http://tizen.org/feature/network.wifi.direct.service_discovery"
is disabled in model configuration, we won't handle related part.
Change-Id: I8c75dbd1db0456bc87de480827d296769d9f000f
Signed-off-by: Yu jiung <jiung.yu@samsung.com>
Jiung Yu [Tue, 11 Jul 2017 05:25:29 +0000 (14:25 +0900)]
Remove build flag TIZEN_FEATURE_WIFI_DISPLAY
Description: We have added new features with build flags.
But it makes spec file complicated. So we'll manage this feature
at run time not compile time.
Change-Id: Ia419ba5d7051caa1cf8a1216c83b73e30af95a1f
Signed-off-by: Yu jiung <jiung.yu@samsung.com>
Nishant Chaprana [Tue, 4 Jul 2017 09:24:36 +0000 (14:54 +0530)]
Corrected the memory allocation for [out] variables as per CAPI description.
Change-Id: Ic8daca49ecae954389ce3ead827b12c4b5dce4a8
Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
Nishant Chaprana [Tue, 4 Jul 2017 05:11:22 +0000 (10:41 +0530)]
Corrected formatting issues and missing references in Header file.
Change-Id: Iacbf37d0bf56a492285955eb64b4dda7eb5de072
Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
Nishant Chaprana [Wed, 31 May 2017 11:27:25 +0000 (16:57 +0530)]
Append empty dictionary entry a{sv} as param in CreateGroup call.
Patch is in conjunction with https://review.tizen.org/gerrit/#/c/130525/.
Change-Id: I174366725c9df78ca17921e6278cf36434703752
Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
Nishant Chaprana [Wed, 31 May 2017 11:22:13 +0000 (16:52 +0530)]
[test] Use proper input message in CMD_SET_AUTO_GROUP_REMOVAL
Change-Id: I40fb1f545f3a25e261d04b0069f6918c8d6e7a70
Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
chleun.moon [Fri, 26 May 2017 00:33:17 +0000 (09:33 +0900)]
Remove .so file from binary package
Change-Id: I59913e6743dc57bcc2b76e2622b14d4b4df76d8c
Signed-off-by: cheoleun <chleun.moon@samsung.com>
taesub kim [Mon, 22 May 2017 07:07:21 +0000 (16:07 +0900)]
Modified API reference feature link
Change-Id: I302c9a2fbe80ac6f6b6588f2ddcee00fa247a9c7
Signed-off-by: Taesub Kim <taesub.kim@samsung.com>
Jiung Yu [Fri, 28 Apr 2017 05:19:52 +0000 (14:19 +0900)]
Rearrange the header format
Change-Id: I429e5f90387d30f66017dbedc116237a7fe536a3
Signed-off-by: Yu jiung <jiung.yu@samsung.com>
Nishant Chaprana [Wed, 26 Apr 2017 10:23:17 +0000 (15:53 +0530)]
Added implementation for new APIs.
Description: Implementation for below APIs are added:-
1. wifi_direct_add_vsie
2. wifi_direct_get_vsie
3. wifi_direct_remove_vsie
4. wifi_direct_get_connecting_peer_info
5. wifi_direct_start_discovery_specific_freq
Change-Id: I0f361ff70dd8cd1171e1599e987291d618884f42
Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
taesub kim [Wed, 26 Apr 2017 08:40:03 +0000 (08:40 +0000)]
Merge "Add CAPIs to control VSIE, set freq. for scan and get connecting peers" into tizen
Nishant Chaprana [Mon, 10 Apr 2017 05:01:58 +0000 (10:31 +0530)]
Fixed static analysis errors from cppcheck.
wifi-direct$ cppcheck --enable=all --force ./ | grep error
[src/wifi-direct-client-proxy.c:1160] -> [src/wifi-direct-client-proxy.c:1164]: (performance) Variable 'ret' is reassigned a value before the old one has been used.
[src/wifi-direct-client-proxy.c:2425]: (style) Variable 'result' is assigned a value that is never used.
[test/test-wifi-direct.c:892] -> [test/test-wifi-direct.c:878]: (warning) Possible null pointer dereference: ad - otherwise it is redundant to check it against null.
[test/test-wifi-direct.c:893] -> [test/test-wifi-direct.c:878]: (warning) Possible null pointer dereference: ad - otherwise it is redundant to check it against null.
[test/test-wifi-direct.c:2514]: (warning) Array index -1 is out of bounds. Otherwise there is useless condition at line 2515.
[test/test-wifi-direct.c:2464]: (portability) scanf without field width limits can crash with huge input data on some versions of libc.
[test/test-wifi-direct.c:891]: (error) Uninitialized variable: result
[src/wifi-direct-client-proxy.c:682]: (style) The function '__wfd_client_print_connected_peer_info' is never used.
[src/wifi-direct-client-proxy.c:665]: (style) The function '__wfd_client_print_entry_list' is never used.
[src/wifi-direct-client-proxy.c:698]: (style) The function '__wfd_client_print_persistent_group_info' is never used.
[test/test-wifi-direct.c:304]: (style) The function 'get_appdata' is never used.
[test/test-wifi-direct.c:341]: (style) The function 'usage' is never used.
[src/wifi-direct-dbus.c:151]: (style) The function 'wifi_direct_dbus_method_call_sync_debug' is never used.
[src/wifi-direct-client-proxy.c:1110]: (style) The function 'wifi_direct_unset_client_ip_address_assigned_cb' is never used.
(information) Cppcheck cannot find all the include files (use --check-config for details)
Change-Id: Ic9931366bb562a0f73d29ce24f67a65bfdd499eb
Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
Yu Jiung [Fri, 7 Apr 2017 10:22:15 +0000 (19:22 +0900)]
Add CAPIs to control VSIE, set freq. for scan and get connecting peers
Change-Id: I353369f53620c2b5c4721f8cb265cdbcd26118a3
Signed-off-by: Yu jiung <jiung.yu@samsung.com>
Milind Ramesh Murhekar [Tue, 18 Apr 2017 15:06:29 +0000 (20:36 +0530)]
Bug Fix and code cleaup
Description: This change includes the
VD tizen 3.0 product changes which merged as a bug fixes
and code clean up
Change-Id: Ic9a8ab65c347eccc5028e457ced95c14e5bbddc8
Signed-off-by: Milind Ramesh Murhekar <m.murhekar@samsung.com>
taesub kim [Thu, 9 Mar 2017 05:47:57 +0000 (14:47 +0900)]
Added NOTICE file
Change-Id: Ic1b3f1cecbd403ac705ce3b44f4824f962daa1df
Signed-off-by: Taesub Kim <taesub.kim@samsung.com>
taesub kim [Thu, 9 Feb 2017 01:29:33 +0000 (17:29 -0800)]
Merge "Provides libwifi-direct.so.0 explicitly" into tizen
Yu Jiung [Wed, 8 Feb 2017 09:18:19 +0000 (18:18 +0900)]
Provides libwifi-direct.so.0 explicitly
Change-Id: I553b36cb6b4f60a3c8219943b28f6bcbe3b97cda
Signed-off-by: Yu jiung <jiung.yu@samsung.com>
chleun.moon [Thu, 26 Jan 2017 01:22:09 +0000 (10:22 +0900)]
Correct doxygen
Change-Id: I359ffe3f289edd40fd4e7e3d4fce1158b3a96b95
Signed-off-by: cheoleun <chleun.moon@samsung.com>
Yu Jiung [Fri, 13 Jan 2017 01:29:59 +0000 (10:29 +0900)]
Merge branch 'tizen_3.0' into tizen
Conflicts:
include/wifi-direct.h
packaging/capi-network-wifi-direct.spec
Change-Id: Id2326863999ddbd500a71f961a7513ed800c2c22
Signed-off-by: Yu jiung <jiung.yu@samsung.com>
Yu Jiung [Mon, 9 Jan 2017 06:01:04 +0000 (15:01 +0900)]
Fix warnings when generating 3.0 API reference
Change-Id: I6c2d05301cff086b62f496293e3e2c9930fde0d3
Signed-off-by: Yu jiung <jiung.yu@samsung.com>
cheoleun moon [Fri, 30 Dec 2016 01:48:00 +0000 (17:48 -0800)]
Merge "Remove Profile Build Dependency (m/t/c)" into tizen
Yu Jiung [Mon, 19 Dec 2016 04:50:22 +0000 (13:50 +0900)]
Modify the header and documentation
Change-Id: I9dd40954ab2f67cb3eb59de28c6d88befdbafac5
Signed-off-by: Yu jiung <jiung.yu@samsung.com>
Yu Jiung [Mon, 19 Dec 2016 04:50:22 +0000 (13:50 +0900)]
Modify the header and documentation
Change-Id: I9dd40954ab2f67cb3eb59de28c6d88befdbafac5
Signed-off-by: Yu jiung <jiung.yu@samsung.com>
MyungJoo Ham [Fri, 11 Nov 2016 07:13:26 +0000 (16:13 +0900)]
Remove Profile Build Dependency (m/t/c)
- This is for Tizen 4.0.
- When this gets SR, the maintainer needs to create a JIRA-TRE issue of:
Add capi-network-wifi-direct-profile_common for common profile
Add capi-network-wifi-direct-profile_mobile for mobile profile
Add capi-network-wifi-direct-profile_tv for tv profile
- It'd be better to distinguish such features at runtime using CAPI(system-info)
or VCONF/BUXTON; however, such refactoring can be done later and this modification
is enough for Tizen 4.0 Configurability & Building Blocks.
Change-Id: Id5ccb8856f58d5f8096ba7d3f76e7594d7d1cf0f
Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
chleun.moon [Thu, 10 Nov 2016 00:33:13 +0000 (09:33 +0900)]
Merge branch 'tizen' into tizen_3.0
Fix formatting issues in wifi-direct.h and coding rule issue in
test-wifi-direct.c
Change-Id: I52dd703cb80219341dcf2a12bd552f8732e0edbc
Signed-off-by: cheoleun <chleun.moon@samsung.com>
chleun.moon [Wed, 2 Nov 2016 05:12:33 +0000 (14:12 +0900)]
Merge branch 'tizen' into tizen_3.0
Change-Id: Ibf05506b3c13b195d687132a2c3494fbf68e9126
Signed-off-by: cheoleun <chleun.moon@samsung.com>
Nishant Chaprana [Wed, 2 Nov 2016 04:27:11 +0000 (09:57 +0530)]
Fix formatting issues in wifi-direct.h and coding rule issue in test-wifi-direct.c
Change-Id: I8ddec5a05365c6e9ed36fcef7c9aaf441a9b8671
Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
Nishant Chaprana [Wed, 26 Oct 2016 11:43:27 +0000 (17:13 +0530)]
Removed redundant NULL check for pin in wifi_direct_get_wps_pin()
Change-Id: Id3797e2f0844eff5a5d22e50ea617fe2707f5fd0
Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
Yu Jiung [Mon, 17 Oct 2016 04:39:40 +0000 (13:39 +0900)]
Modify the logic for WPS PIN connection
Change-Id: If019597fa2a4bc7b7c8a81f21182731f3d122317
Signed-off-by: Yu jiung <jiung.yu@samsung.com>
Yu Jiung [Fri, 7 Oct 2016 07:05:22 +0000 (16:05 +0900)]
Add parsing for Wi-Fi Direct status vconfkey value
Change-Id: I54b7ba48eea1f573edc7fc9843fc0a650e0645e6
Signed-off-by: Yu jiung <jiung.yu@samsung.com>
Maneesh Jain [Thu, 8 Sep 2016 11:59:24 +0000 (17:29 +0530)]
[wifi-direct]: Added support of "wifi_direct_get_peer_rssi" CAPI
Description: This CAPI is used to extract the signal strength(i.e. RSSI)
of Peer Device.
Change-Id: Ief91065b8128b29390ff45dc97b4db5969439c92
Signed-off-by: Maneesh Jain <maneesh.jain@samsung.com>
Maneesh Jain [Wed, 7 Sep 2016 08:36:00 +0000 (14:06 +0530)]
[wifi-direct]: Add prototype of "wifi_direct_get_peer_rssi" CAPI
Change-Id: I24159b8f264477c304b1646e5c1052b90ef0126f
Signed-off-by: Maneesh Jain <maneesh.jain@samsung.com>
chleun.moon [Fri, 23 Sep 2016 02:03:35 +0000 (11:03 +0900)]
Remove reference warning
Change-Id: Iec9b6be8c6dc10047a7ceb57bb7e33ea070a9735
Signed-off-by: cheoleun <chleun.moon@samsung.com>
Milind Ramesh Murhekar [Thu, 25 Aug 2016 12:03:56 +0000 (17:33 +0530)]
Added Handling of ON DEMAND Services for wfd-manager in intialise call
Description: Added dbus method call to Add active client id
when application calls wifi_direct_initialise().
Change-Id: If15b54fa1fcbc19b067993367d7a765c01d0adeb
Signed-off-by: Milind Ramesh Murhekar <m.murhekar@samsung.com>
Nishant Chaprana [Sat, 20 Aug 2016 05:49:53 +0000 (11:19 +0530)]
Upgrading signal subscription logic.
Currently there is a common signal handler which receives signal
and then checks signal name to call signals handler function.
This process is done for every received signal.
If we register signals seperately then dbus will directly call
signal handler function.
Change-Id: Id3b641a19782da2163f1c3e5aebb63776738f849
Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
Nishant Chaprana [Tue, 16 Aug 2016 07:46:00 +0000 (13:16 +0530)]
Getting primary and secondary device type from wifi-direct-manager.
This patch changes logic to get primary and secondary device type
from wifi-direct-manager and also removes TIZEN_TV macro.
Change-Id: Ia28c9bc08e9bf063c2bdea709e39f3625a733c0f
Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
Nishant Chaprana [Tue, 16 Aug 2016 07:41:17 +0000 (13:11 +0530)]
Remove ambigous mac_address variable in DeviceAddress handling in wifi_direct_get_peer_info().
Change-Id: Ia5e23a8bc20bdafff4e60672ea7ec8244b049f91
Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
Nishant Chaprana [Tue, 16 Aug 2016 07:39:23 +0000 (13:09 +0530)]
Changed File permissions 755 => 644.
Change-Id: Ifd328db5816e53fe7e8b2d2c3de907c40d02bc03
Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
Nishant Chaprana [Tue, 12 Jul 2016 07:01:28 +0000 (12:31 +0530)]
Added support for Multi-threaded Applicaitons.
This patch adds support for multi-threaded applications in wifi-direct
library. This patch also cleans unused variables and 80 character line
length issue in src/wifi-direct-dbus.c file.
Change-Id: I91b59394c79ff6a4f8f57e2ef1cd046407bbed95
Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
Yu Jiung [Tue, 21 Jun 2016 02:36:56 +0000 (11:36 +0900)]
Modify returning status value
Description : There's no group owner state. Wi-Fi Direct
state regarding that as connected.
Change-Id: Ie0bde0944060c1dcecedd2d4f1873ed6dd9db415
Signed-off-by: Yu jiung <jiung.yu@samsung.com>
Yu Jiung [Fri, 17 Jun 2016 02:28:14 +0000 (11:28 +0900)]
Fix WIFI_DIRECT_DISCOVERY_LOST enum value to avoid ABI issue
Change-Id: Idcb6ce7e7b6f4ef93287af6e87c1c9429295ba84
Signed-off-by: Yu jiung <jiung.yu@samsung.com>
taesub kim [Fri, 17 Jun 2016 01:48:33 +0000 (18:48 -0700)]
Merge "Add set callback API to get Wi-Fi Direct state using vconf" into tizen
taesub kim [Fri, 17 Jun 2016 01:48:14 +0000 (18:48 -0700)]
Merge "Make wifi_direct_get_state API work without any precondition" into tizen
taesub kim [Fri, 17 Jun 2016 01:47:59 +0000 (18:47 -0700)]
Merge "Modify the privilege for each APIs" into tizen
taesub kim [Fri, 17 Jun 2016 01:47:34 +0000 (18:47 -0700)]
Merge "[test-wifi-direct] Checking connected peer list when disconnecting peer." into tizen
taesubkim [Thu, 16 Jun 2016 04:26:07 +0000 (13:26 +0900)]
Apply coding rule
Change-Id: I00539f5ec4a90621d22d80bf3d1b84a8e3de8695
Signed-off-by: Taesub Kim <taesub.kim@samsung.com>
Yu Jiung [Mon, 30 May 2016 11:25:50 +0000 (20:25 +0900)]
Add set callback API to get Wi-Fi Direct state using vconf
Description : Add following APIs which don't need to
invoke wfd-manager daemon to get Wi-Fi Direct state
wifi_direct_set_state_changed_cb()
wifi_direct_unset_state_changed_cb()
Change-Id: I74ac2d17b768386a5083cbf9bbba29366fdafdb3
Signed-off-by: Yu jiung <jiung.yu@samsung.com>
Nishant Chaprana [Tue, 14 Jun 2016 11:50:51 +0000 (17:20 +0530)]
[test-wifi-direct] Checking connected peer list when disconnecting peer.
This patch checks connected peer list when disconnecting peer.
Currently discovered peer list is checked for disconnection.
Change-Id: Ibb983b7e663a0cc9042bbf9cabbe708bc4480afc
Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
Yu Jiung [Mon, 30 May 2016 11:21:01 +0000 (20:21 +0900)]
Make wifi_direct_get_state API work without any precondition
Description : wifi_direct_get_state API uses vconf to get
Wi-Fi Direct state. Applications can use this API without
triggering DBUS method or launching wfd-manager daemon
Change-Id: I0ec5eafb8e24dd71791854cfb031426661f55258
Signed-off-by: Yu jiung <jiung.yu@samsung.com>
Yu Jiung [Mon, 30 May 2016 07:13:18 +0000 (16:13 +0900)]
Modify the privilege for each APIs
Description : Some APIs don't need ot return the
WIFI_DIRECT_ERROR_PERMISSION_DENIED error because there's no
privilege check and that API doesn't provide private information
Change-Id: Ic183a7c025cfdfe88cc6fdd2da9c4b7a0e7f1b62
Signed-off-by: Yu jiung <jiung.yu@samsung.com>
taesubkim [Fri, 3 Jun 2016 07:26:45 +0000 (16:26 +0900)]
Remove the gcov flag
Change-Id: I49c56dc93b8738b47c28699b8bdc9b15b7b83d98
Signed-off-by: Taesub Kim <taesub.kim@samsung.com>
Maneesh Jain [Thu, 19 May 2016 12:40:32 +0000 (18:10 +0530)]
[wifi-direct]: Added support of "wifi_direct_set_auto_group_removal()" CAPI
Description: Role of CAPI: :Enables / Disables automatic group
removal feature when all peers are disconnected
Change-Id: I69ed4044d9339429415dfffbdba95802455de036
Signed-off-by: Maneesh Jain <maneesh.jain@samsung.com>
Maneesh Jain [Thu, 19 May 2016 07:32:22 +0000 (13:02 +0530)]
[wifi-direct]: Implement support of following CAPI
\1. wifi_direct_get_session_timer()
\2.wifi_direct_set_session_timer()
Change-Id: I2aa3b5666337e89e99094f3a97a298a2c7a5929d
Signed-off-by: Maneesh Jain <maneesh.jain@samsung.com>
Yu Jiung [Wed, 18 May 2016 07:47:43 +0000 (16:47 +0900)]
Add symbolic link for libwifi-direct named libwifi-direct.0
Description : Unfortunately, Wi-Fi Direct library of Tizen 2.4
had major version 0. So, there's backward compatibility issue
because major version of Tizen 3.0 will be 1. This patch might
solve that issue and make Tizen 2.4 application happy.
Change-Id: I859bb19435ef25085b089d9f62343484accf7384
Signed-off-by: Yu jiung <jiung.yu@samsung.com>
Yu Jiung [Wed, 18 May 2016 06:35:03 +0000 (15:35 +0900)]
Modify the way to copying license file on RPM packages
Change-Id: I87af543bbabd8a2950d437d06b2ea466d9ac867a
Signed-off-by: Yu jiung <jiung.yu@samsung.com>
Maneesh Jain [Thu, 12 May 2016 10:31:59 +0000 (16:01 +0530)]
[wifi-direct][Merged]: Added new CAPI's Prototype in WiFI Direct Header File
a./ wifi_direct_set_session_timer()
b./ wifi_direct_get_session_timer()
c./ wifi_direct_set_auto_group_removal()
Change-Id: I63c1d96cc9bdf11cf8ea1718dbc74f07d1035f85
Signed-off-by: Maneesh Jain <maneesh.jain@samsung.com>
Yu Jiung [Mon, 16 May 2016 07:50:58 +0000 (16:50 +0900)]
Enable Wi-Fi Direct Display and Service Discovery code for common profile
Change-Id: I7b1dc37bf7bc0df9eb068a5b09f1bde88bd2669d
Signed-off-by: Yu jiung <jiung.yu@samsung.com>
Yu Jiung [Wed, 27 Apr 2016 08:24:02 +0000 (17:24 +0900)]
Add build configuration for common profile
Change-Id: Iaac3aa415f1839a1419a3c5796b7381b8673a9c3
Signed-off-by: Yu jiung <jiung.yu@samsung.com>
Yu Jiung [Mon, 18 Apr 2016 06:08:12 +0000 (15:08 +0900)]
Apply Tizen coding rules2
Change-Id: I97c3162266ca32bc0e5c11fc09e82fbb5027fc14
Signed-off-by: Yu jiung <jiung.yu@samsung.com>
Yu Jiung [Fri, 1 Apr 2016 04:34:53 +0000 (13:34 +0900)]
Apply Tizen coding rules
Change-Id: I4cf1df84725683f911f770a377b24bfca7f046f1
Signed-off-by: Yu jiung <jiung.yu@samsung.com>
Yu Jiung [Tue, 29 Mar 2016 00:00:24 +0000 (09:00 +0900)]
Add macros to check line coverage of UTC
Change-Id: Ieb9f813ddcfab73b496490fa4f0e327d6e95d6b9
Signed-off-by: Yu jiung <jiung.yu@samsung.com>
Yu Jiung [Mon, 28 Mar 2016 02:04:27 +0000 (11:04 +0900)]
Fix the return value for privilege error
Change-Id: Ie733a6149b076a317a675e83ca1ec956fe6e07a5
Signed-off-by: Yu jiung <jiung.yu@samsung.com>
Seonah Moon [Fri, 25 Mar 2016 05:13:14 +0000 (14:13 +0900)]
[SVACE][TIZEN_3.0_TV][Critical][WGID-66380] MEMORY_LEAK
Change-Id: I87c52a2048de023cea3fd043155e3c396d20df89
Signed-off-by: Seonah Moon <seonah1.moon@samsung.com>
Yu Jiung [Thu, 24 Mar 2016 06:04:21 +0000 (15:04 +0900)]
Use GError to indicate Wi-Fi Direct error
Change-Id: Idb3cc9b314196605aea48b250434f73693b81b73
Signed-off-by: Yu jiung <jiung.yu@samsung.com>
Maneesh Jain [Sat, 19 Mar 2016 09:48:26 +0000 (05:48 -0400)]
[wifi-direct]:Fixed SVACE Issue
Description: Replace strok() to strok_r()
Change-Id: I7364574b218e9a484e4acc93d474f2b6c468f1a7
Signed-off-by: Maneesh Jain <maneesh.jain@samsung.com>
Yu Jiung [Thu, 17 Mar 2016 01:15:50 +0000 (10:15 +0900)]
Fix SVace issue WGID 40946
Change-Id: Iee149fc50d8ffadab7c5cc46598b7a54b99fed5b
Signed-off-by: Yu jiung <jiung.yu@samsung.com>
Nishant Chaprana [Mon, 14 Mar 2016 07:01:06 +0000 (12:31 +0530)]
Removed "LaunchDirect" call to net-config from wifi_direct_initialize
now wfd-manager starts with dbus auto activation logic, So launching
wfd-manager from net-config is not required anymore.
Also using this code with dbus auto activation leads to conditions
where two wfd-manager instances are running.
Change-Id: I5660fb454302b3955e87ee90244f5d6e7da67e7a
Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
Nishant Chaprana [Thu, 10 Mar 2016 06:25:23 +0000 (11:55 +0530)]
[wifi-direct] Handled error case in wifi_direct_initialize
wifi_direct_dbus_init can return FALSE when it fails to get bus name.
So wifi_direct_initialize API should return error in failure case.
Change-Id: Ie16c1087bfd20f9d778abfcec12f53a1b9dfe3e9
Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
Nishant Chaprana [Thu, 10 Mar 2016 06:21:54 +0000 (11:51 +0530)]
[wifi-direct] wifi_direct_get_wps_pin() should NULL check pin pointer.
Change-Id: I67515e01b28e17a4034ec5e32a2410b0b53cd8c8
Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
Nishant Chaprana [Thu, 10 Mar 2016 06:20:01 +0000 (11:50 +0530)]
[wifi-direct] Fixed memory leak.
Change-Id: I1897e097383c11a0ea7326c301052fcf5a93d783
Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
Yu Jiung [Wed, 9 Mar 2016 08:47:59 +0000 (17:47 +0900)]
Add modification to make wifi-direct pass current test cases
Description : It should make is_registered "FALSE" when wifi-direct
is deinitialized. Prohibit wifi-direct library using vconf key
provided by wfd-manager directly. Add NULL checking for getting
passphrase
Change-Id: I0e71b677deae559f2dbfcd7be415bff6cc40c2c5
Signed-off-by: Yu jiung <jiung.yu@samsung.com>
Nishant Chaprana [Fri, 4 Mar 2016 12:33:28 +0000 (18:03 +0530)]
[wifi-direct] Replaced Socket IPC with DBUS IPC between Library<->Manager
Change-Id: Ie33f61e389d2712e7e0e052a0cc9b31e472a6222
Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
Nishant Chaprana [Wed, 13 Jan 2016 03:48:44 +0000 (09:18 +0530)]
[Fixed] memory allocated using g_try_malloc0_n should be freed using g_free()
Change-Id: Icb9386bc375b583626472ac467adefae1a3ee540
Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>