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>
Yu Jiung [Tue, 16 Feb 2016 08:16:52 +0000 (17:16 +0900)]
Fix wearable profile build error
Change-Id: Ic67443dbbd10732327e279543e736906e4775c29
Signed-off-by: Yu jiung <jiung.yu@samsung.com>
Maneesh Jain [Tue, 16 Feb 2016 06:18:47 +0000 (11:48 +0530)]
[wfd-manager]: Implement: Handling of "GroupFormationFailure" event
Description: This patch adds the handling of "GroupFormationFailure"
event received from the supplicant. Also, send the conneciton
error to application.
Change-Id: Iefd054793d16838ccbea693e870e4adbcc1af62e
Signed-off-by: Maneesh Jain <maneesh.jain@samsung.com>
Yu Jiung [Tue, 16 Feb 2016 05:27:54 +0000 (14:27 +0900)]
Modify parameter name for InvitaionRequest signal
Change-Id: I64e2075a01251fa40d2b55998e12466d72ab518f
Signed-off-by: Yu jiung <jiung.yu@samsung.com>
Nishant Chaprana [Mon, 15 Feb 2016 08:51:44 +0000 (14:21 +0530)]
Removed extra g_variant_get operation when GONegotiationRequest is received
Change-Id: I3c051faf180a17552d0ae187cfeee7c658e74d5c
Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
Nishant Chaprana [Mon, 15 Feb 2016 06:26:19 +0000 (11:56 +0530)]
Newly created group's memory should be allocated using g_try_malloc0
This patch allocates newly created group's memory using g_try_malloc0
because the memory for group is freed using g_free() in wfd_destroy_group().
If the allocator and destructor funciton of memory are different
then chances of memory corruption are present because glib maintains its own
memory allocation pool.
Change-Id: I995376f9d1349df06ca3866ac7caab4b25f88bba
Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
Nishant Chaprana [Fri, 12 Feb 2016 07:18:28 +0000 (12:48 +0530)]
[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: Ia882c66b4cd2a1f403fb36eeed7a44cfecfa59c8
Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
Nishant Chaprana [Fri, 12 Feb 2016 06:03:02 +0000 (11:33 +0530)]
[wifi-direct-manager] Fixed build break.
build was getting break because WFD_FREQ_2G was missing when
TIZEN_WLAN_BOARD_SPRD was not defined.
Change-Id: I4936c58af6113eddcd891cef87e97a422a29af04
Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
Nishant Chaprana [Sat, 30 Jan 2016 09:56:36 +0000 (15:26 +0530)]
At PeerDisconnected peer entry should be removed from group member list.
Because peer entry has been updated in group member list at PeerJoined event.
So that entry should be deleted when PeerDisconnected is received.
Change-Id: I0ef3d0ea3d8dbb0554abbe5796bf753dc8ed738d
Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
Nishant Chaprana [Sat, 30 Jan 2016 09:49:11 +0000 (15:19 +0530)]
[STA_DISCONNECTED event] state will be ACTIVATED when own device role is not Group Owner.
Change-Id: I0c1e8b96fcff394623d7ee0019732f7a7ad0e5c2
Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
Nishant Chaprana [Sat, 30 Jan 2016 08:38:29 +0000 (14:08 +0530)]
Resetting manager->scan_mode at CANCEL_DISCOVERY operation.
Change-Id: Id3660c5d5abae1033c95071a22617bea1730e23b
Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
Nishant Chaprana [Mon, 18 Jan 2016 14:12:18 +0000 (19:42 +0530)]
Fixed chance of crash when sending notification to client
Description: notification variable should be local variable,
instead of a pointer because when it is taken as a pointer and
g_try_malloc0() fails to allocate memory, in that case crash
will occur by dereferencing "noti" pointer.
Also if we add a null check for noti allocation failure, then
we would fail to send notification to application, which is not
correct operation.
So noti should a local variable instead of pointer.
Change-Id: I83f29a259e57cafb71779e0485f320a26484ce9d
Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>