platform/core/connectivity/wifi-direct-manager.git
8 years agoFix SVACE 68159, 68200 04/75704/1 accepted/tizen/common/20160621.184453 accepted/tizen/ivi/20160622.093516 accepted/tizen/mobile/20160622.093419 accepted/tizen/tv/20160622.093442 accepted/tizen/wearable/20160622.093458 submit/tizen/20160621.060739 submit/tizen/20160621.235132
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>
8 years agoFix SVACE issue 98800 73/75173/1 accepted/tizen/common/20160617.121927 accepted/tizen/ivi/20160620.024310 accepted/tizen/mobile/20160620.024146 accepted/tizen/tv/20160620.024217 accepted/tizen/wearable/20160620.024242 submit/tizen/20160617.081742
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>
8 years ago[wifi-direct-manager] This patch fixes below items. 82/74782/3
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>
8 years agoFix SVACE issue 100113 51/74751/1 accepted/tizen/common/20160616.151753 accepted/tizen/ivi/20160617.081454 accepted/tizen/mobile/20160617.081127 accepted/tizen/tv/20160617.081230 accepted/tizen/wearable/20160617.081305 submit/tizen/20160615.100519 submit/tizen/20160616.005920
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>
8 years agoMerge "[wifi-direct-manager] Replaced is_legacy->is_p2p in peer data structure."...
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

8 years agoMerge "[wifi-direct-manager] Store signal subscription id in proper variable." into...
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

8 years ago[wifi-direct-manager] Replaced is_legacy->is_p2p in peer data structure. 23/74523/1
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>
8 years ago[Svace] 66555 68159 68200 23/74223/1 accepted/tizen/common/20160614.144110 accepted/tizen/ivi/20160615.070051 accepted/tizen/mobile/20160615.070006 accepted/tizen/tv/20160615.070031 accepted/tizen/wearable/20160615.070019 submit/tizen/20160614.043312 submit/tizen/20160614.070528
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>
8 years ago[wifi-direct-manager] Store signal subscription id in proper variable. 74/74174/1
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>
8 years agoFix SVACE issues [84118, 84119, 84130, 84132, 84140] 36/73936/2 accepted/tizen/common/20160613.144925 accepted/tizen/ivi/20160613.123655 accepted/tizen/mobile/20160613.123812 accepted/tizen/tv/20160613.123641 accepted/tizen/wearable/20160613.123749 submit/tizen/20160613.080206
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>
8 years agoRemove smack capability 72/73872/2
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>
8 years agoReplace vconf key with the value defined by vconf-internal-keys package 71/73871/2
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>
8 years agoModify the logic to add peer to group 70/73870/1
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>
8 years ago[Support Legacy Connection] Update peer disconnection logic. 57/73657/1
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>
8 years agoApply TIZEN coding rules 59/72859/7 accepted/tizen/common/20160608.160923 accepted/tizen/ivi/20160609.090757 accepted/tizen/mobile/20160609.090612 accepted/tizen/tv/20160609.090736 accepted/tizen/wearable/20160609.090712 submit/tizen/20160608.101452
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>
8 years ago[Fix] DHCP server launching issue, when device becomes GO. 23/72923/1 accepted/tizen/common/20160603.151042 accepted/tizen/ivi/20160606.040625 accepted/tizen/mobile/20160606.035232 accepted/tizen/tv/20160606.035921 accepted/tizen/wearable/20160606.040121 submit/tizen/20160603.083223
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>
8 years ago[wifi-direct-manager] Using Firmware start stop logic from wifi-direct-manager. 92/72092/3
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>
8 years ago[Support Legacy Connection] Process legacy connection. 64/72064/2 accepted/tizen/common/20160602.140304 accepted/tizen/ivi/20160602.231004 accepted/tizen/mobile/20160602.231028 accepted/tizen/tv/20160602.230949 accepted/tizen/wearable/20160602.230942 submit/tizen/20160602.082230
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>
8 years ago[wifi-direct-manager] Use @SBIN_DIR@/ifconfig when @SBIN_DIR@/ip is unavailable. 24/71924/2
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>
8 years ago[Support Persistent Group] Identify whether created group is persistent or not. 07/71807/2
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>
8 years ago[Support Legacy Connection] Identify legacy peer connection. 61/71761/2
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>
8 years ago[wifi-direct-manager] when peer already connected/connecting, ignore provision discov... 99/71199/3
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>
8 years ago[wifi-direct-manager] Start session at GONegotiationRequest. 99/70999/3
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>
8 years agoAdd ASP provision discovery request for wpasupplicant plugin 85/71685/3
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>
8 years agoEmit SearchResult when advertised service found 84/71684/2
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>
8 years agoMerge "[wifi-direct-manager] dev_role should only be updated when session is availabl... accepted/tizen/common/20160523.144104 accepted/tizen/ivi/20160523.103008 accepted/tizen/mobile/20160523.103001 accepted/tizen/tv/20160523.102923 accepted/tizen/wearable/20160523.102936 submit/tizen/20160523.071704
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

8 years agoMerge "[wfd-manager]: Add support of wifi_direct_set_auto_group_removal() API" into...
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

8 years agoMerge "[wfd-manager]: Add support of Session Timers CAPI's" 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

8 years ago[wfd-manager]: Add support of wifi_direct_set_auto_group_removal() API 68/70568/3
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>
8 years ago[wifi-direct-manager] dev_role should only be updated when session is available at... 70/70570/1
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>
8 years ago[wfd-manager]: Add support of Session Timers CAPI's 57/70357/1
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>
8 years agoAdd feature for Application Service Platfrom (ASP) 69/69969/2
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>
8 years agoEnable concurrent mode for common profile 93/69793/2 accepted/tizen/common/20160517.174224 accepted/tizen/ivi/20160517.083653 accepted/tizen/mobile/20160517.083816 accepted/tizen/tv/20160517.083638 accepted/tizen/wearable/20160517.083706 submit/tizen/20160517.051644
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>
8 years ago[wfd-manager]: Added method to get the WPA status 74/69474/2
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>
8 years ago[wfd-manager]: Remove the extra "StopFind" method while start the connection 62/69462/2
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>
8 years ago[wfd-manager]: Added support of "RemoveAllNetworks" Method 19/69419/2
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>
8 years ago[wfd-manager]: Feature: Added support of "OperChannel" Method 09/69409/2
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>
8 years ago[wfd-manager]:@Fix: Process the "DisconnectEvent" in Discovering State also. 26/69326/2
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>
8 years ago[wfd-manager]: Fix the P2P Connection Issue with Windows OS based devices 17/69317/2
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>
8 years ago[wfd-manager]: Fix: Syn-up issue with supplicant 03/69303/2
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>
8 years ago[wfd-manager]: Add support of new method called "SaveConfig" 92/69292/2
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>
8 years ago[wfd-manager]: Add support of "InvitationReceived" Signal 73/69273/3
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>
8 years agoAdd build configuration for common profile 64/67564/1 accepted/tizen/common/20160429.170457 accepted/tizen/ivi/20160429.074241 accepted/tizen/mobile/20160429.074154 accepted/tizen/tv/20160429.074207 accepted/tizen/wearable/20160429.074221 submit/tizen/20160429.020129
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>
8 years agoEnable wifi-direct connection popup for mobile profile 40/65740/1 accepted/tizen/common/20160414.142145 accepted/tizen/ivi/20160414.012025 accepted/tizen/mobile/20160414.012127 accepted/tizen/tv/20160414.012012 accepted/tizen/wearable/20160414.012014 submit/tizen/20160413.233817
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>
8 years agoWhile fetching persistent group info corrected p2p_client_list extraction 25/64325/1
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>
8 years agoRemoved unused cynara-* package dependency 74/63974/1
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>
8 years agoEnabled wifi display API when device is connected. 66/63366/2
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>
8 years agoIn __ws_segment_to_service, max len can be 255 59/63359/2
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>
8 years agoFix dbus conf file syntax error 66/63766/2 accepted/tizen/common/20160329.142905 accepted/tizen/ivi/20160326.061105 accepted/tizen/mobile/20160326.061017 accepted/tizen/tv/20160326.061029 accepted/tizen/wearable/20160326.061047 submit/tizen/20160326.044923
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>
8 years agoUse GError to indicate Wi-Fi Direct error 22/63522/2 accepted/tizen/common/20160325.135656 accepted/tizen/ivi/20160325.072344 accepted/tizen/mobile/20160325.072211 accepted/tizen/tv/20160325.072245 accepted/tizen/wearable/20160325.072308 submit/tizen/20160325.042525
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>
8 years ago[wifi-direct-manager] Fix memory leak when using g_variant_print() 60/62860/1
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>
8 years agoUse AUL launcher instead of app_control 07/62307/1 accepted/tizen/common/20160316.160333 accepted/tizen/ivi/20160316.040515 accepted/tizen/mobile/20160316.040423 accepted/tizen/tv/20160316.040438 accepted/tizen/wearable/20160316.040501 submit/tizen/20160316.022156
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>
8 years agoDbus interfaces should be registered on bus name acquired callback. 75/62275/2
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>
8 years agoCorrect the privilege name on DBus configuration file 70/62070/1 accepted/tizen/common/20160315.221131 accepted/tizen/ivi/20160314.112212 accepted/tizen/mobile/20160314.111951 accepted/tizen/tv/20160314.112025 accepted/tizen/wearable/20160314.112126 submit/tizen/20160314.073017
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>
8 years agoFix socket build error 69/62069/1
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>
8 years agoTizen directory path migration 22/62022/1 submit/tizen/20160314.023602
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>
8 years agoRemove DHCP operation files which are dependent on interface name 46/61646/2 accepted/tizen/common/20160311.201806 accepted/tizen/ivi/20160311.061521 accepted/tizen/mobile/20160311.061419 accepted/tizen/tv/20160311.061437 accepted/tizen/wearable/20160311.061455 submit/tizen/20160311.021629
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>

8 years agoAdd modification to make wifi-direct pass current test cases 45/61645/2
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>
8 years ago[wifi-direct-manager] Replaced Socket IPC with DBUS IPC between Library<->Manager 87/61187/2 accepted/tizen/common/20160308.142856 submit/tizen/20160308.040435
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>
8 years agoMerge "[wfd-plugin: Fixed Typo in Macro" into tizen
taesub kim [Mon, 7 Mar 2016 04:21:09 +0000 (20:21 -0800)]
Merge "[wfd-plugin: Fixed Typo in Macro" into tizen

8 years agoMerge "[wfd-manager]: Implement: Handling of "GroupFormationFailure" event" into...
taesub kim [Mon, 7 Mar 2016 04:20:57 +0000 (20:20 -0800)]
Merge "[wfd-manager]: Implement: Handling of "GroupFormationFailure" event" into tizen

8 years agoFixed wrong device mac address issue. 51/59751/3
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>
8 years agoIf device was a Persistent GO, then recreate same persistent group 50/59750/3
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>
8 years ago[wfd-plugin: Fixed Typo in Macro 14/60014/1
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>
8 years ago[TIZEN_WIFI_MODULE_BUNDLE] updated p2p_supp.conf and CONF_FILE_PATH -> "/opt/etc... 91/59591/1
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>
8 years agoRemoving group when no peer connected to GO for Tizen TV. 77/59577/1
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>
8 years agoUsing wlan0 in wifi-direct-dhcp.sh when TIZEN_WIFI_MODULE_BUNDLE=1 75/59575/1
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>
8 years agoRemoved TIZEN_TV_BOARD_PRD, this can be catered with TIZEN_WIFI_MODULE_BUNDLE. 42/59542/2
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>
8 years agoFix wearable profile build error 19/59519/1 accepted/tizen/mobile/20160216.103624 accepted/tizen/tv/20160216.103639 accepted/tizen/wearable/20160216.103658 submit/tizen/20160216.090113 submit/tizen_common/20160218.142243
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>
8 years ago[wfd-manager]: Implement: Handling of "GroupFormationFailure" event 04/59504/1
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>
8 years agoModify parameter name for InvitaionRequest signal 95/59495/3 submit/tizen/20160216.061917
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>
8 years agoRemoved extra g_variant_get operation when GONegotiationRequest is received 94/59394/1
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>
8 years agoNewly created group's memory should be allocated using g_try_malloc0 70/59370/1
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>
8 years ago[wifi-direct-manager] Fix memory leak when using g_variant_print() 90/59290/2
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>
8 years ago[wifi-direct-manager] Fixed build break. 82/59282/1
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>
8 years agoAt PeerDisconnected peer entry should be removed from group member list. 80/58380/2
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>
8 years ago[STA_DISCONNECTED event] state will be ACTIVATED when own device role is not Group... 79/58379/3
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>
8 years agoResetting manager->scan_mode at CANCEL_DISCOVERY operation. 77/58377/2
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>
8 years agoFixed chance of crash when sending notification to client 79/57279/2
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>
8 years agoWhen device is GO, do not start p2p_listen as device will be discoverable in GO mode 81/58381/2
Nishant Chaprana [Sat, 30 Jan 2016 10:15:22 +0000 (15:45 +0530)]
When device is GO, do not start p2p_listen as device will be discoverable in GO mode

Change-Id: I69a1717832ab7e24b447febc5d706c23270e71d0
Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
8 years agoFixed memory leak: iterator should freed using g_variant_iter_free 82/58382/3
Nishant Chaprana [Sat, 30 Jan 2016 10:22:27 +0000 (15:52 +0530)]
Fixed memory leak: iterator should freed using g_variant_iter_free

Change-Id: I70b18a2971bc41c0197b4886cb96a986e2f9f7a3
Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
8 years ago[wfd-plugin]: Add NULL check to avoid potential crash. 00/59000/4
Maneesh Jain [Sun, 7 Feb 2016 18:17:38 +0000 (13:17 -0500)]
[wfd-plugin]: Add NULL check to avoid potential crash.

Description: This patch adds validation check for following
functions.
1. ws_start_service_discovery()
2. ws_cancel_service_discovery()

Change-Id: I4b4b23cfa89647ee6eebe414876145a3e14f2140
Signed-off-by: Maneesh Jain <maneesh.jain@samsung.com>
8 years ago[wfd-plugin]: Add NULL check to avoid potential crash. 99/58999/3
Maneesh Jain [Sun, 7 Feb 2016 17:51:33 +0000 (12:51 -0500)]
[wfd-plugin]: Add NULL check to avoid potential crash.

Description: This patch adds validation check in following
function.
1. ws_create_group()

Change-Id: Iaa1077ad04e6ae547ab62b53744760a8142eb55f
Signed-off-by: Maneesh Jain <maneesh.jain@samsung.com>
8 years ago[wifi-direct-client]:Add missing macro 98/58998/1
Maneesh Jain [Sun, 7 Feb 2016 16:27:24 +0000 (11:27 -0500)]
[wifi-direct-client]:Add missing macro

Change-Id: Ib2ff0c1d26fd9ebb486ecf60fede93ac36fecd6c
Signed-off-by: Maneesh Jain <maneesh.jain@samsung.com>
8 years ago[wifi-direct-manager]Remove CONNECTED/DISCONNECTED event 49/57849/2
Yu Jiung [Mon, 25 Jan 2016 08:06:35 +0000 (17:06 +0900)]
[wifi-direct-manager]Remove CONNECTED/DISCONNECTED event

Description : When device is connected as GC, only event we need to handle is
group related event (GROUP-STARTED and GROUP-REMOVED) Except for the case of
connection failure. Those event tell us everything we need

Change-Id: I7a3621aa7e182307bb904bfdc67896e2562b71fc
Signed-off-by: Yu jiung <jiung.yu@samsung.com>
8 years ago[wifi-direct-manager]Add the logic for keeping peer memory in session 48/57848/2
Yu Jiung [Wed, 20 Jan 2016 07:13:17 +0000 (16:13 +0900)]
[wifi-direct-manager]Add the logic for keeping peer memory in session

Description : During Provision Discovery, there's the case a peer somtimes
lost by PEER-LOST-EVENT from wpasupplicant. If there's a session and the session
has the pointer for that peer, that pointer won't be avaliable.

Change-Id: I5a340f8c29a23db97f4fd1aa8da7bfce75840dd7
Signed-off-by: Yu jiung <jiung.yu@samsung.com>
8 years ago[wifi-direct-manager] Replace group create parameter to improve persist group logic 47/57847/2
Yu Jiung [Wed, 20 Jan 2016 07:08:32 +0000 (16:08 +0900)]
[wifi-direct-manager] Replace group create parameter to improve persist group logic

Change-Id: I0917d8de9eaabb0c9f78e9216b5a55fbae989453
Signed-off-by: Yu jiung <jiung.yu@samsung.com>
8 years ago[wifi-direct-manager]ADD IP over EAPol feature 46/57846/2
Yu Jiung [Wed, 20 Jan 2016 06:54:38 +0000 (15:54 +0900)]
[wifi-direct-manager]ADD IP over EAPol feature

Change-Id: I29e27ee3ccd5c5f0e8fcfd304a4b5d582c300e3e
Signed-off-by: Yu jiung <jiung.yu@samsung.com>
8 years ago[wifi-direct-manager]Parse additional persistent group information 45/57845/1
Yu Jiung [Tue, 19 Jan 2016 09:12:32 +0000 (18:12 +0900)]
[wifi-direct-manager]Parse additional persistent group information

Description : By getting client information of persistent group,
we can manage them in details.

Change-Id: I514af94e8ba04730560401f728b2f9d48c43a65b
Signed-off-by: Yu jiung <jiung.yu@samsung.com>
8 years ago[wifi-direct-manager]Fix the point SVACE static analysis tool ckecked 44/57844/1
Yu Jiung [Tue, 19 Jan 2016 09:08:05 +0000 (18:08 +0900)]
[wifi-direct-manager]Fix the point SVACE static analysis tool ckecked

Change-Id: I710413fde4d3b833b51db38d1a937e98fb423fbe
Signed-off-by: Yu jiung <jiung.yu@samsung.com>
8 years agoReturning WIFI_DIRECT_ERROR_CONNECTION_TIME_OUT when session timeout occurs 35/57035/2
Nishant Chaprana [Thu, 14 Jan 2016 14:00:27 +0000 (19:30 +0530)]
Returning WIFI_DIRECT_ERROR_CONNECTION_TIME_OUT when session timeout occurs

Change-Id: I95c7b8ab0b1864cf659e5b595b435bbe03daa991
Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
8 years agoRemoved redundant g_pd checks in dbus wpasupplicant plugin 34/57034/2
Nishant Chaprana [Thu, 14 Jan 2016 13:55:13 +0000 (19:25 +0530)]
Removed redundant g_pd checks in dbus wpasupplicant plugin

1. Removed redundant g_pd checks in dbus wpasupplicant plugin
2. Also corrected some formatiing errors.

Change-Id: If5d9597b9c40cef4c8bb13a22231ef91cb7e98c3
Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
8 years agoFixed wifi_direct_is_discoverable() issue when own device connected using GO Negotiation 93/56293/1
Nishant Chaprana [Wed, 6 Jan 2016 05:16:24 +0000 (10:46 +0530)]
Fixed wifi_direct_is_discoverable() issue when own device connected using GO Negotiation

This patch fixes the issue in wifi_direct_is_discoverable() API,
The API was not returning proper status when TV was Group Owner
and was connected suing GO Negotiation.

Change-Id: I35d540674d6c41b5935ce75f07f1e534a8f48659
Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
8 years agoFixed memory leak issues when using g_variant_get() and g_variant_iter_loop() 89/56289/1
Nishant Chaprana [Wed, 6 Jan 2016 05:07:59 +0000 (10:37 +0530)]
Fixed memory leak issues when using g_variant_get() and g_variant_iter_loop()

This patch fixes memory leak issues when using g_variant_get() API.
As per GLib documentation:
If we extract string as "&s" or object patch as "&o" then we are not
required to free the memory otherwise we need to free the memory if we
extract string as "s" or object_path as "o".
Also when using g_variant_iter_loop() and if we break from it before loop ends,
then we need to free the variant extracted from it, So changed obejct_path to "&o".

Change-Id: I42845944dea449112f0f2c959464c27ca27af979
Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
8 years agoIgnoring unexpected disconnection event from supplicant when no peer connected and... 87/56287/1
Nishant Chaprana [Wed, 6 Jan 2016 04:52:48 +0000 (10:22 +0530)]
Ignoring unexpected disconnection event from supplicant when no peer connected and event->dev_addr is not for connecting peer.

Change-Id: I8aa6be4175aa401c2d2a4d6c9d68ffdb220d9a16
Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
8 years agoFixed emulator build. 80/56280/1
Nishant Chaprana [Wed, 6 Jan 2016 03:33:15 +0000 (09:03 +0530)]
Fixed emulator build.

This patch fixes emulator build for wifi-direct-manager package.

Change-Id: Ia660f56dd14066180ccfc7778e96cad54dc2db63
Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
8 years agoFixed wrong macro name used in wifi-direct-ipc.h 79/56279/1
Nishant Chaprana [Wed, 6 Jan 2016 03:19:00 +0000 (08:49 +0530)]
Fixed wrong macro name used in wifi-direct-ipc.h

This patch fixed wrong macro name used in wifi-direct-ipc.h
__WIFI_DIRECT_INTERNAL_H_ ==> __WIFI_DIRECT_IPC_H__

Change-Id: I8f0e80ecec1260dc18830567e465f0a87e788dbf
Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
8 years agoRemoved extra log when dbus_property_foreach function gets called 77/56277/2
Nishant Chaprana [Wed, 6 Jan 2016 03:10:37 +0000 (08:40 +0530)]
Removed extra log when dbus_property_foreach function gets called

This patch corrects the extra log which was getting printed always
when dbus_property_foreach function gets called.

Change-Id: I6b2b417a7777000bcd56ce77c82cd2b6e557bf8c
Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
8 years agoFixed memory corrurption issue in wfd_client_process_request() 74/56274/1
Nishant Chaprana [Wed, 6 Jan 2016 03:04:57 +0000 (08:34 +0530)]
Fixed memory corrurption issue in wfd_client_process_request()

Using g_io_channel_unix_get_fd() to get socket fd instead of
using user data passed in wfd_client_process_request() funtion
becasue user_data was a local variable and
chances memory corruption was there.

Change-Id: I3d3fb5045642d74e1d1f746dbd0241473d52792f
Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
8 years agoFixed memory leak when using vconf_get_str API in wifi-direct-util.c 72/56272/2
Nishant Chaprana [Wed, 6 Jan 2016 02:51:33 +0000 (08:21 +0530)]
Fixed memory leak when using vconf_get_str API in wifi-direct-util.c

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