Yu Jiung [Fri, 2 Sep 2016 10:23:25 +0000 (19:23 +0900)]
Add support for ASP service information
Change-Id: I02f91f88d1601f664485fc004f9952ef088f803c
Signed-off-by: Yu jiung <jiung.yu@samsung.com>
Milind Ramesh Murhekar [Tue, 23 Aug 2016 04:57:18 +0000 (10:27 +0530)]
[wifi-direct-manager] Added patch to handle on demand call for wfd-manager
Description: This patch handles demand on call for Dbus services
from wfd-manager for the application, and will terminate
if no application is using the services and state is deactivated
wfd-manager records the sender id on wifi_direct_initialise() call
Change-Id: Ia74c1e457e452fbfe05ce858e7d875fa4527a142
Signed-off-by: Milind Ramesh Murhekar <m.murhekar@samsung.com>
Yu Jiung [Fri, 26 Aug 2016 08:50:03 +0000 (17:50 +0900)]
Add SessionPeerIPAssigned signal on ASP interface
Change-Id: I681b655cb838bd50276894cdedaf94e292fc6114
Signed-off-by: Yu jiung <jiung.yu@samsung.com>
Yu Jiung [Fri, 26 Aug 2016 00:58:13 +0000 (09:58 +0900)]
Add handler for AdvertiseASPService property
Change-Id: I5063bff7276604f8b922325f8bee141f39698de8
Signed-off-by: Yu jiung <jiung.yu@samsung.com>
Jiung Yu [Thu, 25 Aug 2016 01:34:33 +0000 (18:34 -0700)]
Merge "[ASP2.0]: Add "service_instance" attribute in "ServiceDiscoveryRequest" Method" into tizen
Maneesh Jain [Wed, 24 Aug 2016 09:33:58 +0000 (15:03 +0530)]
[ASP2.0]: Add "service_instance" attribute in "ServiceDiscoveryRequest" Method
"Description: To sync-up with supplicant & ASP2.0, add Service
Instance Attribute in "ServiceDiscoveryRequest" method
Change-Id: I93bbf812a5410a1dbe3166586a67d4da84014ab3
Signed-off-by: Maneesh Jain <maneesh.jain@samsung.com>
Yu Jiung [Wed, 24 Aug 2016 07:55:19 +0000 (16:55 +0900)]
Add support for ASP session request/response
Change-Id: I6ab1b3f29497ed8d90fb896bef63e9e184e76748
Signed-off-by: Yu jiung <jiung.yu@samsung.com>
Maneesh Jain [Wed, 24 Aug 2016 04:49:57 +0000 (10:19 +0530)]
[ASP2.0]: Add "service_instance" attribute in "AddService" Method
Description: To sync-up with supplicant & ASP2.0, add Service
Instance Attribute in "AddService" method
Change-Id: Ibdfd1bd056303a7029dbd80156215be2400234bf
Signed-off-by: Maneesh Jain <maneesh.jain@samsung.com>
Nishant Chaprana [Wed, 24 Aug 2016 06:29:23 +0000 (11:59 +0530)]
Fixed Build issue for Mobile profile.
Change-Id: Ia08c6c05bfb65ba21c38a00594d9c4f47eae17d7
Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
Nishant Chaprana [Wed, 10 Aug 2016 07:40:19 +0000 (13:10 +0530)]
[P2PCommonFramework] Added concept of prd plugin for OEM to add product specific code.
Description: This patch adds concept of prd plugin, so that any OEM can add
product specific code and merge profile specific code easily.
1. oem/wifi-direct-prd.c :-
This file will have product specific code for manager layer.
This will override and define new event handlers.
2. prd-plugin :-
This will have product specific plugin code(event handlers and methods).
This will override profile methods and define new prd specific methods.
Change-Id: Iea5d5c6a888521d516a26d718a7a9845e269c6e6
Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
Nishant Chaprana [Tue, 16 Aug 2016 07:25:24 +0000 (12:55 +0530)]
[dbus-plugin] Upgrading signal subscription logic.
This patch upgrades signal subscription logic of dbus plugin.
Currently there is a common signal handler which checks received
signal name and based on that it callss signals handler funciton.
This process is dnoe for every received signal.
If we register signals seperately then we will same extra processing
of for loop to find handler function of signal, dbus will directly call
handler function of the subscribed signal.
Change-Id: I3fa6b02bc2b215515d2caee0109f0ee43e2c3182
Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
Nishant Chaprana [Tue, 16 Aug 2016 07:13:09 +0000 (12:43 +0530)]
Added getters for primary and secondary device type.
This patch adds below method calls:-
1. GetPrimaryDevType - To get own device's Primary Device Type.
2. GetSecondaryDevType - To get own device's Secondary Device Type.
Change-Id: I4cbc0e5d11fe2593212deb9ba6f5c98814df68dd
Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
Nishant Chaprana [Tue, 16 Aug 2016 07:12:28 +0000 (12:42 +0530)]
[dbus-plugin] Using proper seperator in strtok_r ", " => ","
Change-Id: Ia172a8aeb9cc238f825387a640a5ade42ac44e64
Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
Nishant Chaprana [Tue, 16 Aug 2016 07:11:42 +0000 (12:41 +0530)]
Fix coding rule issues.
This patch fixes coding rule issues generated by checkpatchinit_tizen.sh.
./plugin/wpasupplicant/ctrl_iface_dbus/wfd-plugin-wpasupplicant.c:161: ERROR: [SPC_M_KWD] space required before the open parenthesis '('
./plugin/wpasupplicant/ctrl_iface_dbus/wfd-plugin-wpasupplicant.c:1644: ERROR: [SPC_M_OPR] space required after that ',' (ctx:VxV)
Change-Id: Id88f1edd29bca4256d858d4ea7e7b8db04e90eb1
Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
Nishant Chaprana [Tue, 16 Aug 2016 06:46:03 +0000 (12:16 +0530)]
Updated MACROS as per build option naming rule
This patch updates MACROS as per build option naming rule
(http://suprem.sec.samsung.net/confluence/display/SE/Build+Option+Naming+Rule)
TIZEN_MOBILE => TIZEN_PROFILE_MOBILE
TIZEN_TV => TIZEN_PROFILE_TV
TIZEN_WEARABLE => TIZEN_PROFILE_WEARABLE
TIZEN_COMMON => TIZEN_PROFILE_COMMON
Change-Id: I627b6d9ebb03522133ca2b2ebbea091d4d4d6831
Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
Nishant Chaprana [Tue, 16 Aug 2016 06:41:41 +0000 (12:11 +0530)]
Changed File permissions 755 => 644.
Change-Id: Ib32f8c67591617458f6e7a7146aaf5d0990cf397
Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
Yu Jiung [Fri, 5 Aug 2016 07:26:58 +0000 (16:26 +0900)]
Fix logic for comparing peer in session with peer from user
Change-Id: Ic5f3a480c1cd65d3725f5634affbb26320582c85
Signed-off-by: Yu jiung <jiung.yu@samsung.com>
Yu Jiung [Thu, 21 Jul 2016 04:33:08 +0000 (13:33 +0900)]
Fix warnings from static analyzer
Change-Id: I36ee42d3cc470fa755e93a7b145117eebd34b52c
Signed-off-by: Yu jiung <jiung.yu@samsung.com>
Yu Jiung [Thu, 21 Jul 2016 02:31:47 +0000 (11:31 +0900)]
Set SmackProcessLabel to System
Change-Id: I687ac706e7183e7088007cc0c23de9454f141956
Signed-off-by: Yu jiung <jiung.yu@samsung.com>
Nishant Chaprana [Tue, 19 Jul 2016 06:57:59 +0000 (12:27 +0530)]
Fixed autonomous group create issue in supplicant socket plugin
This patch fixes below issues in supplicant socket plugin:
1. Autonomous group creation issue.
2. when GROUP_IFACE_NAME is same as COMMON_IFACE_NAME then we should not
connect to supplicant socket again as there is no new interface created
when group is created.
Change-Id: I5d5c8ca21c4e475e081bcbe5c361b6deac9fd2d0
Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
Nishant Chaprana [Fri, 8 Jul 2016 07:27:25 +0000 (12:57 +0530)]
Fixed Build warning "File Listed twice"
This patch fixes below warning:
[ 19s] warning: File listed twice: /etc/dbus-1/system.d/wfd-manager.conf
[ 19s] warning: File listed twice: /etc/wifi-direct/ccode.conf
[ 19s] warning: File listed twice: /etc/wifi-direct/dhcpd.conf
[ 19s] warning: File listed twice: /etc/wifi-direct/p2p_supp.conf
[ 19s] warning: File listed twice: /etc/wifi-direct/udhcp_script.non-autoip
[ 19s] warning: File listed twice: /etc/wifi-direct/udhcp_script.non-autoip
[ 19s] warning: File listed twice: /usr/bin/dhcpd-notify.sh
[ 19s] warning: File listed twice: /usr/bin/wifi-direct-dhcp.sh
[ 19s] warning: File listed twice: /usr/bin/wifi-direct-server.sh
[ 19s] warning: File listed twice: /usr/sbin/p2p_supp.sh
Change-Id: I8a742c9d55cc4877966a8250cf01f90a3c14c385
Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
Nishant Chaprana [Fri, 8 Jul 2016 06:10:54 +0000 (11:40 +0530)]
Replaced many macro check for TIZEN_DEBUG_DBUS_VALUE with single check.
This patch replaces many macro check for TIZEN_DEBUG_DBUS_VALUE with single check.
Also this patch modifies name of DEBUG_PARAMS => DEBUG_G_VARIANT
for better name clarity.
Change-Id: If509b559f6239772f320010c586a22c774c81577
Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
Nishant Chaprana [Fri, 8 Jul 2016 05:29:56 +0000 (10:59 +0530)]
[Supplicant-Plugin] Perform NULL check before calling g_pd->callback()
Change-Id: I8d85b0f478e07cf57ea2d69e5980bf4b96f1bbec
Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
Nishant Chaprana [Thu, 7 Jul 2016 12:02:13 +0000 (17:32 +0530)]
Removed dead code from dbus plugin, break after return
Change-Id: If239f1fcbf3751278f1b91ee6657de20159db682
Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
Nishant Chaprana [Thu, 7 Jul 2016 11:43:44 +0000 (17:13 +0530)]
[wifi-direct-manager] Remove group only when wfd_util_is_remove_group_allowed() returns TRUE.
At time of removing group, the check should be for members and
wfd_util_is_remove_group_allowed() only.
Checking [wfd_group_is_autonomous(group) == FALSE ] would be wrong
because all profile need to remove group when all peers disconnect.
Change-Id: I8cc272b51e3d77ca2d980fcda2558a2540894802
Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
Nishant Chaprana [Thu, 7 Jul 2016 10:42:01 +0000 (16:12 +0530)]
[wifi-direct-manager] Fixed various memory leaks.
Change-Id: I24103f3a294143b5000ecaa9039ba46773e90f57
Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
Nishant Chaprana [Wed, 29 Jun 2016 09:52:19 +0000 (15:22 +0530)]
Validate peer with session peer before accepting connection.
Change-Id: I48a31722562660552ead5d505cf66abc71588b91
Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
Nishant Chaprana [Wed, 29 Jun 2016 09:13:44 +0000 (14:43 +0530)]
Added state validity check and update vconf only when state is changed.
Change-Id: Iacd876937a047aab7af3668ef4c9cbb0a09319f0
Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
Yu Jiung [Wed, 29 Jun 2016 06:14:58 +0000 (15:14 +0900)]
Add PATH environment variable to shell scripts2
Change-Id: I2723d4c6a9995ea3e2718057e89a616d056394d2
Signed-off-by: Yu jiung <jiung.yu@samsung.com>
Yu Jiung [Wed, 29 Jun 2016 02:25:16 +0000 (11:25 +0900)]
Add PATH environment variable to shell scripts
Change-Id: I9413782ef949af9ae9058920c6d2b0a029999440
Signed-off-by: Yu jiung <jiung.yu@samsung.com>
Nishant Chaprana [Mon, 27 Jun 2016 03:44:36 +0000 (09:14 +0530)]
Using DeviceFoundProperties instead of DeviceFound event.
This patch will increase wifi-direct scan timing because
DeviceFound sends only peer object path and wifi-direct-manager used
to call GetAll method for peer object path which was increasing scan time.
By using DeviceFoundProperties event wifi-direct-manager will be
able to extract peer properties from the event only.
This will handle the cases when there are many peers in the scan range.
Change-Id: I5f49e23a9ccf9932630c33b236f4ba8564effbde
Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
chleun.moon [Thu, 23 Jun 2016 02:46:12 +0000 (11:46 +0900)]
Fixed memory leak issue
Change-Id: I072d338ba7e421ae1404fa406171dc56b9bdf8fd
Signed-off-by: cheoleun <chleun.moon@samsung.com>
Yu Jiung [Tue, 21 Jun 2016 05:26:11 +0000 (14:26 +0900)]
Fix SVACE 68159, 68200
Change-Id: I25d2e47eb0dd3424cdc0231a9792b7f39c2ce96c
Signed-off-by: Yu jiung <jiung.yu@samsung.com>
Yu Jiung [Fri, 17 Jun 2016 02:37:17 +0000 (11:37 +0900)]
Fix SVACE issue 98800
Change-Id: I4f01f47475bdb95c8be5f84d0cfaf9c0e784b20b
Signed-off-by: Yu jiung <jiung.yu@samsung.com>
Nishant Chaprana [Wed, 15 Jun 2016 12:31:08 +0000 (18:01 +0530)]
[wifi-direct-manager] This patch fixes below items.
1. Remove unused function parameters from wfd_destroy_group()
2. Remove GROUP_IFNAME hardcoding as group structure contains ifname in it.
3. Populate group->pending to identify whether group is created or not.
4. Call supplicant method to Destroy group only when group->pending is FALSE.
5. Check only group variable for validating whether group exists or not.
Change-Id: I61edc2b6e00c9614e36d082fa051ac90c2054c77
Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
Yu Jiung [Wed, 15 Jun 2016 11:01:48 +0000 (20:01 +0900)]
Fix SVACE issue 100113
Change-Id: If8a458ac84f92783f9c99781dba1d5139588364f
Signed-off-by: Yu jiung <jiung.yu@samsung.com>
taesub kim [Wed, 15 Jun 2016 10:54:10 +0000 (03:54 -0700)]
Merge "[wifi-direct-manager] Replaced is_legacy->is_p2p in peer data structure." into tizen
taesub kim [Wed, 15 Jun 2016 10:53:54 +0000 (03:53 -0700)]
Merge "[wifi-direct-manager] Store signal subscription id in proper variable." into tizen
Nishant Chaprana [Tue, 14 Jun 2016 11:38:27 +0000 (17:08 +0530)]
[wifi-direct-manager] Replaced is_legacy->is_p2p in peer data structure.
This patch will enable applicaiton to check whether a connected
peer is a p2p supported device or not.
A peer will not be having p2p support when it is a legacy wifi device.
Change-Id: Ib70043e0c8cce2168aec12b3abf467a5bf8e54b6
Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
chleun.moon [Mon, 13 Jun 2016 08:43:03 +0000 (17:43 +0900)]
[Svace] 66555 68159 68200
Change-Id: I73842f55895def1444d30eb5edf9b2623dd77409
Signed-off-by: cheoleun <chleun.moon@samsung.com>
Nishant Chaprana [Mon, 13 Jun 2016 05:19:53 +0000 (10:49 +0530)]
[wifi-direct-manager] Store signal subscription id in proper variable.
This patch stores signal subcription id returned for Interface iface
in proper variable so that it can be properly unsubscribed from dbus.
Earlier Interface iface was not getting unsubscribed from gdbus.
Change-Id: I190c21a78408714d711f3e90fe343fcc986c218f
Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
Yu Jiung [Fri, 10 Jun 2016 06:13:34 +0000 (15:13 +0900)]
Fix SVACE issues [84118, 84119, 84130, 84132, 84140]
Change-Id: Ibf376c81f01855c5a51345c10b3805d9ad9589fd
Signed-off-by: Yu jiung <jiung.yu@samsung.com>
Yu Jiung [Fri, 10 Jun 2016 01:05:49 +0000 (10:05 +0900)]
Remove smack capability
Change-Id: I41d09253c5c78d67a99f197ce6d311694f2e775a
Signed-off-by: Yu jiung <jiung.yu@samsung.com>
Yu Jiung [Fri, 10 Jun 2016 01:02:08 +0000 (10:02 +0900)]
Replace vconf key with the value defined by vconf-internal-keys package
Change-Id: Ibc7c8ca24af0a876567250c46356641d4755b92d
Signed-off-by: Yu jiung <jiung.yu@samsung.com>
Yu Jiung [Fri, 10 Jun 2016 00:55:09 +0000 (09:55 +0900)]
Modify the logic to add peer to group
Description : When a P2P peer device join the group as GC
after group negotiation, sometimes Connected event is occured
several times. To prevent this, cease to add peer to group when
there's any problem
Change-Id: Ibb814a5090855b8ff3c729a5ff7cc4b9556b0da8
Signed-off-by: Yu jiung <jiung.yu@samsung.com>
Nishant Chaprana [Thu, 9 Jun 2016 05:23:42 +0000 (10:53 +0530)]
[Support Legacy Connection] Update peer disconnection logic.
This patch adds disconnection logic for legacy peer.
This patch also updates peer disconnection logic as per
latest release supplicant.
1. Dbus interface : RemoveClient method call is used to disconnect.
2. CTRL interface : P2P_REMOVE_CLIENT call is used to disconnect.
Change-Id: I58146bb04e32707a7bf27b78d734ed6375f58f96
Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
Yu Jiung [Fri, 3 Jun 2016 05:57:15 +0000 (14:57 +0900)]
Apply TIZEN coding rules
Change-Id: I71656908776ef0f55282426f20b412af1878272f
Signed-off-by: Yu jiung <jiung.yu@samsung.com>
Nishant Chaprana [Fri, 3 Jun 2016 05:34:45 +0000 (11:04 +0530)]
[Fix] DHCP server launching issue, when device becomes GO.
Change-Id: I275abf66660259b9faef000a7a41118730a58380
Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
Nishant Chaprana [Mon, 30 May 2016 12:13:09 +0000 (17:43 +0530)]
[wifi-direct-manager] Using Firmware start stop logic from wifi-direct-manager.
Description: This patch removes dependency over net-config to start/stop
firmware for p2p interface.
Change-Id: I1935c9b0c72edaa95a62949e18cdd2e5697ef3d8
Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
Nishant Chaprana [Mon, 30 May 2016 11:01:12 +0000 (16:31 +0530)]
[Support Legacy Connection] Process legacy connection.
This patch processes legacy connection and shares legacy peer info
with application.
Only peer interface address and Assigned IP address are available
So only these information are provided to applicaiton.
"LEGACY-PEER" is sent in Device Name if peer is a legacy peer.
Change-Id: I0501ef91f7b4a9b718a62bc1a850ab6eff3d122d
Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
Nishant Chaprana [Fri, 27 May 2016 13:37:59 +0000 (19:07 +0530)]
[wifi-direct-manager] Use @SBIN_DIR@/ifconfig when @SBIN_DIR@/ip is unavailable.
This patch uses @SBIN_DIR@/ifconfig when @SBIN_DIR@/ip is not available.
because when @SBIN_DIR@/ip is missing then TV GO will fail to start dhcpd.
Change-Id: I7565e7a770aa3c58070d605f094dd68518589b19
Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
Nishant Chaprana [Fri, 27 May 2016 07:09:58 +0000 (12:39 +0530)]
[Support Persistent Group] Identify whether created group is persistent or not.
Change-Id: I454a4ab86d1815c56ec213413707877490afb4cb
Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
Nishant Chaprana [Fri, 27 May 2016 04:49:23 +0000 (10:19 +0530)]
[Support Legacy Connection] Identify legacy peer connection.
1. This patch identifies whether a legacy peer connection/disconnection
2. This patch also allows legacy peer to connect to Tizen device.
Change-Id: I9b7148dd60bc96796b3a27373020fbffd0d06d0e
Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
Nishant Chaprana [Tue, 24 May 2016 11:12:39 +0000 (16:42 +0530)]
[wifi-direct-manager] when peer already connected/connecting, ignore provision discovery request
Change-Id: I7fb6c12ae8abab3282fc34ab8d9dcea54f353609
Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
Nishant Chaprana [Mon, 23 May 2016 14:03:46 +0000 (19:33 +0530)]
[wifi-direct-manager] Start session at GONegotiationRequest.
Description: This patch starts session for PBC and KEYPAD connection
request at GONegotiationRequest reception.
Currently connection session is started at ProvisionDiscoveryRequest event.
But it should be started when Peer send GoNegotiationRequest event because
until peer donot sends GONegotiationRequest we are not sure whether it wants
to initiate connection with us or not.
Change-Id: Ic27ad1f612f70932ae2f131f3342fd6cef1e37b8
Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
Yu Jiung [Thu, 26 May 2016 12:11:29 +0000 (21:11 +0900)]
Add ASP provision discovery request for wpasupplicant plugin
Change-Id: Idc92589a977f834647f51861060cba9b5b0cfcca
Signed-off-by: Yu jiung <jiung.yu@samsung.com>
Yu Jiung [Tue, 24 May 2016 06:43:47 +0000 (15:43 +0900)]
Emit SearchResult when advertised service found
Change-Id: I3652ecfbcc6a84f309c29d58f432fad9c2fd298a
Signed-off-by: Yu jiung <jiung.yu@samsung.com>
taesub kim [Mon, 23 May 2016 04:51:26 +0000 (21:51 -0700)]
Merge "[wifi-direct-manager] dev_role should only be updated when session is available at go-neg-success reception." into tizen
taesub kim [Mon, 23 May 2016 04:51:08 +0000 (21:51 -0700)]
Merge "[wfd-manager]: Add support of wifi_direct_set_auto_group_removal() API" into tizen
taesub kim [Mon, 23 May 2016 04:50:55 +0000 (21:50 -0700)]
Merge "[wfd-manager]: Add support of Session Timers CAPI's" into tizen
Maneesh Jain [Thu, 19 May 2016 12:42:39 +0000 (18:12 +0530)]
[wfd-manager]: Add support of wifi_direct_set_auto_group_removal() API
Change-Id: Idff482f807e12faf45bf56b1da5614025c504a38
Signed-off-by: Maneesh Jain <maneesh.jain@samsung.com>
Nishant Chaprana [Thu, 19 May 2016 13:15:42 +0000 (18:45 +0530)]
[wifi-direct-manager] dev_role should only be updated when session is available at go-neg-success reception.
Change-Id: Id061109f701f04e6f50aa83e47a40ab05d49c219
Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
Maneesh Jain [Thu, 19 May 2016 04:39:24 +0000 (10:09 +0530)]
[wfd-manager]: Add support of Session Timers CAPI's
Description: This patch added the support of following
CAPI in WFD manager Daemon.
\1. wifi_direct_get_session_timer()
\2.wifi_direct_set_session_timer()
Change-Id: I2f906d19d01561119d7acd2119aa8cf95a530cc0
Signed-off-by: Maneesh Jain <maneesh.jain@samsung.com>
Yu Jiung [Tue, 17 May 2016 11:50:36 +0000 (20:50 +0900)]
Add feature for Application Service Platfrom (ASP)
Description : Add service discovery part for ASP method
of p2p technology. AdvertiseService, CancelAdvertiseService,
SeekService and CancelSeekService. Add wpa_supplicant plugin
usage to use additional method.
Change-Id: Iff490a5db0825d0136444a1742e76fee08a21c37
Signed-off-by: Yu jiung <jiung.yu@samsung.com>
Yu Jiung [Tue, 17 May 2016 01:07:30 +0000 (10:07 +0900)]
Enable concurrent mode for common profile
Description : Concurrent mode was enabled only for mobile profile.
Remove MOBILE define and make codes work when concurrent is defined.
Change-Id: If96c232a20b3e06204c2bac038aaf9adf9f250b9
Signed-off-by: Yu jiung <jiung.yu@samsung.com>
Maneesh Jain [Fri, 13 May 2016 09:43:34 +0000 (15:13 +0530)]
[wfd-manager]: Added method to get the WPA status
Change-Id: Ibccbee12646e0de38e3aff8281c069caa0486e3e
Signed-off-by: Maneesh Jain <maneesh.jain@samsung.com>
Maneesh Jain [Fri, 13 May 2016 08:52:29 +0000 (14:22 +0530)]
[wfd-manager]: Remove the extra "StopFind" method while start the connection
Description: Supplicant does stop the P2P discovery while process
the P2P Connection request. There is no point to issue
a separate "StopFind" command from the M/W.
Change-Id: I062c78f27dcc70ed6991466bedfe3cd3c869da75
Signed-off-by: Maneesh Jain <maneesh.jain@samsung.com>
Maneesh Jain [Fri, 13 May 2016 06:15:12 +0000 (11:45 +0530)]
[wfd-manager]: Added support of "RemoveAllNetworks" Method
Description: This method is used to Remove all configured networks
in supplicant
Change-Id: I9de372b001e52f5a746f08c680296f7e48efe053
Signed-off-by: Maneesh Jain <maneesh.jain@samsung.com>
Maneesh Jain [Fri, 13 May 2016 05:57:00 +0000 (11:27 +0530)]
[wfd-manager]: Feature: Added support of "OperChannel" Method
Description: "OperChannel": This method is used to configure
the operating channel in Supplicant.
Change-Id: If0fe4dc2ac14331d9eb366d078ac08ec3a4b7d73
Signed-off-by: Maneesh Jain <maneesh.jain@samsung.com>
Maneesh Jain [Thu, 12 May 2016 13:39:29 +0000 (19:09 +0530)]
[wfd-manager]:@Fix: Process the "DisconnectEvent" in Discovering State also.
Change-Id: Ic01ce16cdc890ff97d553bcd0983d735a03abca9
Signed-off-by: Maneesh Jain <maneesh.jain@samsung.com>
Maneesh Jain [Thu, 12 May 2016 13:12:14 +0000 (18:42 +0530)]
[wfd-manager]: Fix the P2P Connection Issue with Windows OS based devices
Change-Id: I1806f45be386f69702cf84c9b657e8cfbd78e5d2
Signed-off-by: Maneesh Jain <maneesh.jain@samsung.com>
Maneesh Jain [Thu, 12 May 2016 12:43:52 +0000 (18:13 +0530)]
[wfd-manager]: Fix: Syn-up issue with supplicant
Description: Call "Flush" method after "RejectPeer" method call
to remove syncup issue in supplicant
Change-Id: Ibbfe0c626116146b6e603bd4d598e4dfcb9366b8
Signed-off-by: Maneesh Jain <maneesh.jain@samsung.com>
Maneesh Jain [Thu, 12 May 2016 11:40:48 +0000 (17:10 +0530)]
[wfd-manager]: Add support of new method called "SaveConfig"
Description: "SaveConfig" method is used to save configuration to
supplicant configuration file.
Change-Id: Icf6652126b935c8ce1b662a7f40bef96f7a92f50
Signed-off-by: Maneesh Jain <maneesh.jain@samsung.com>
Maneesh Jain [Thu, 12 May 2016 10:39:18 +0000 (16:09 +0530)]
[wfd-manager]: Add support of "InvitationReceived" Signal
Change-Id: I3e4a8614343d8af7b6529fbd446599ab99984032
Signed-off-by: Maneesh Jain <maneesh.jain@samsung.com>
Yu Jiung [Wed, 27 Apr 2016 08:26:50 +0000 (17:26 +0900)]
Add build configuration for common profile
Change-Id: Ia48db6617d10804ed39b4deec56ed33bb61d3a72
Signed-off-by: Yu jiung <jiung.yu@samsung.com>
Yu Jiung [Tue, 12 Apr 2016 08:55:56 +0000 (17:55 +0900)]
Enable wifi-direct connection popup for mobile profile
Change-Id: Ie9dc7fd4b68309f2c54953fb50262b8dc50c704b
Signed-off-by: Yu jiung <jiung.yu@samsung.com>
Nishant Chaprana [Thu, 31 Mar 2016 11:35:49 +0000 (17:05 +0530)]
While fetching persistent group info corrected p2p_client_list extraction
This patch also updates some log levels from error log to debug log.
Change-Id: Idf30ed631740e53946a5e7af39ab847defdf75c4
Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
Nishant Chaprana [Tue, 29 Mar 2016 06:25:20 +0000 (11:55 +0530)]
Removed unused cynara-* package dependency
Change-Id: I784865a3a5fa0fb5b46a5c168dcf3f3f765b2f16
Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
Nishant Chaprana [Wed, 23 Mar 2016 10:31:36 +0000 (16:01 +0530)]
Enabled wifi display API when device is connected.
This patch enables use of below APIs when device is connected.
1. wifi_direct_init_display
2. wifi_direct_deinit_display
3. wifi_direct_set_display
4. wifi_direct_set_display_availability
By doing so applicaitons can switch wifi_display roles in runtime.
Change-Id: Id5bf34daea47a3a68745a4eab9152374ff79f813
Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
Nishant Chaprana [Wed, 23 Mar 2016 09:38:26 +0000 (15:08 +0530)]
In __ws_segment_to_service, max len can be 255
This patch fixes the false comparision statement
because __ws_hex_to_num(ptr, 2) can return max 0xff which is 255.
and comparision was made between
return of __ws_hex_to_num(ptr, 2) with 0xffff which is wrong.
This comparision should be with 0xff.
Change-Id: Iaadbfa7ce002de382fd7e0356d53e89454eac9a6
Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
Taesoo Jun [Sat, 26 Mar 2016 03:03:01 +0000 (12:03 +0900)]
Fix dbus conf file syntax error
Change-Id: Iaa1ecd62f4eee447d3ce56f57cf4d119c2717bf0
Signed-off-by: Taesoo Jun <steve.jun@samsung.com>
Yu Jiung [Thu, 24 Mar 2016 06:03:01 +0000 (15:03 +0900)]
Use GError to indicate Wi-Fi Direct error
Change-Id: I4edc9b48495607a15d93d6de5321d1cf0dac0976
Signed-off-by: Yu jiung <jiung.yu@samsung.com>
Maneesh Jain [Sat, 19 Mar 2016 12:24:57 +0000 (08:24 -0400)]
[wifi-direct-manager] Fix memory leak when using g_variant_print()
As per g_variant_print() documentation, it returns newly allocated memory.
so this memory should be freed using g_free() after use.
Change-Id: I81ea003fb39319b85a144dfffc965f9509c6c53e
Signed-off-by: Maneesh Jain <maneesh.jain@samsung.com>
Yu Jiung [Tue, 15 Mar 2016 09:28:07 +0000 (18:28 +0900)]
Use AUL launcher instead of app_control
Description :
app_control functions can't be used by root user daemon.
So, We should use AUL launcher function.
Change-Id: Ia59a95cb4e25ec606d7b9af2546a671f567d2d5b
Signed-off-by: Yu jiung <jiung.yu@samsung.com>
Nishant Chaprana [Tue, 15 Mar 2016 07:13:51 +0000 (12:43 +0530)]
Dbus interfaces should be registered on bus name acquired callback.
When registering dbus events on name acquired callback,
first dbus call always fail.
So now changed interface info registeration logic to register interface
at bus name acquired callback, by doing this we ensure that when first
dbus call comes interfaces are registered properly and we donot get
Unkonwn method error at library.
Change-Id: Iee93b8ea222bf0109115333b6bf1b6a6e9bdbeca
Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
Yu Jiung [Mon, 14 Mar 2016 06:49:51 +0000 (15:49 +0900)]
Correct the privilege name on DBus configuration file
Change-Id: I42e9164c79c0aebe1ef0238409208b0251d91971
Signed-off-by: Yu jiung <jiung.yu@samsung.com>
Yu Jiung [Mon, 14 Mar 2016 06:48:29 +0000 (15:48 +0900)]
Fix socket build error
Change-Id: Ifcb1777831633f89e029c41178d24688ca514588
Signed-off-by: Yu jiung <jiung.yu@samsung.com>
Yu Jiung [Mon, 14 Mar 2016 01:53:36 +0000 (10:53 +0900)]
Tizen directory path migration
Change-Id: I48d830b6a77c6afc5314fbab40f0c923713089c6
Signed-off-by: Yu jiung <jiung.yu@samsung.com>
Yu Jiung [Wed, 9 Mar 2016 09:28:19 +0000 (18:28 +0900)]
Remove DHCP operation files which are dependent on interface name
Description: We can put the group inteface name into the dhcpd daemon
in runtime because dhcpd in toybox provides the -i option. Also, dhcp
which plays the DHCP client role already has same one. So, we can use
this to remove additional files for each profile.
Change-Id: I484ad68653991f4790c5aae6279372efdcc89f0b
igned-off-by: Yu jiung <jiung.yu@samsung.com>
Yu Jiung [Wed, 9 Mar 2016 09:07:17 +0000 (18:07 +0900)]
Add modification to make wifi-direct pass current test cases
Description:
Make some function provide interal vconf data
Change some functions from synchronous to asynchronous
Add DBus auto-activation
Fix some issues pointed by static analysis tool
Change-Id: Ic0af862ae029c4bc54ebd90ba24b6cf63fc9b8e7
Signed-off-by: Yu jiung <jiung.yu@samsung.com>
Nishant Chaprana [Fri, 4 Mar 2016 12:30:01 +0000 (18:00 +0530)]
[wifi-direct-manager] Replaced Socket IPC with DBUS IPC between Library<->Manager
Change-Id: Icc3ce443ad74655584a7bb35d8713d94fcc9c10d
Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
taesub kim [Mon, 7 Mar 2016 04:21:09 +0000 (20:21 -0800)]
Merge "[wfd-plugin: Fixed Typo in Macro" into tizen
taesub kim [Mon, 7 Mar 2016 04:20:57 +0000 (20:20 -0800)]
Merge "[wfd-manager]: Implement: Handling of "GroupFormationFailure" event" into tizen
Nishant Chaprana [Thu, 18 Feb 2016 07:32:10 +0000 (13:02 +0530)]
Fixed wrong device mac address issue.
In this issue device mac was not extracted properly
wifi_direct_get_mac_addr() API call using test-application -->
cmd=[47]
wifi_direct_get_mac_addr() result=[0]
MAC [7e:dd:90:52:19:43]
result of ifconfig-->
wlan0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
ether 7c:dd:90:52:19:43 txqueuelen 1000 (Ethernet)
Change-Id: I564843158969e281b5805dd447c5f04794d3403f
Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
Nishant Chaprana [Thu, 18 Feb 2016 07:18:51 +0000 (12:48 +0530)]
If device was a Persistent GO, then recreate same persistent group
Change-Id: Iadedbc8ff85c45fbd664320e117ffcfcd9e4d7df
Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
Maneesh Jain [Mon, 22 Feb 2016 09:12:18 +0000 (14:42 +0530)]
[wfd-plugin: Fixed Typo in Macro
Change-Id: I0e9a0c0759b5cce9888aaef67350b8963f81332a
Signed-off-by: Maneesh Jain <maneesh.jain@samsung.com>
Nishant Chaprana [Tue, 16 Feb 2016 12:53:50 +0000 (18:23 +0530)]
[TIZEN_WIFI_MODULE_BUNDLE] updated p2p_supp.conf and CONF_FILE_PATH -> "/opt/etc/p2p_supp.conf"
Change-Id: I77ca81100c54574826bb9148d7565b1fbb83a736
Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
Nishant Chaprana [Tue, 16 Feb 2016 12:06:02 +0000 (17:36 +0530)]
Removing group when no peer connected to GO for Tizen TV.
Change-Id: I27376a6a6c235d6d64c143603d6a08ee320dda30
Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
Nishant Chaprana [Tue, 16 Feb 2016 12:00:03 +0000 (17:30 +0530)]
Using wlan0 in wifi-direct-dhcp.sh when TIZEN_WIFI_MODULE_BUNDLE=1
In odriod board, interface name fetched after using below command is wlan0:
it should be wlan0 for proper functioning of wifi-direct-dhcp.sh
cmd -> interface=`/sbin/ifconfig|/bin/grep ^${INTERFACE_NAME}|/usr/bin/cut -d" " -f1`
result -> wlan0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
Due to this when "wifi-direct-dhcp.sh stop" is called ip is not reset from wlan0 interface.
Change-Id: I601b263d4d5c11385460d053ac3602bb077d1c4c
Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
Nishant Chaprana [Tue, 16 Feb 2016 10:16:33 +0000 (15:46 +0530)]
Removed TIZEN_TV_BOARD_PRD, this can be catered with TIZEN_WIFI_MODULE_BUNDLE.
If TIZEN_TV_BOARD_PRD is not defined and TIZEN_WIFI_MODULE_BUNDLE is also
not defined, then there was build failure, So removed TIZEN_TV_BOARD_PRD
and handled TIZEN_TV_BOARD_PRD when TIZEN_WIFI_MODULE_BUNDLE is not defined
because both flags are mutually exclusive.
Change-Id: I5fe7628ffb9bdb770685598306b57bb84d4682f6
Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>