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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
Yu Jiung [Tue, 5 Jan 2016 02:13:55 +0000 (11:13 +0900)]
[wifi-direct-plugin-wpasupplicant]Fix library path of socket plugin for 64bit build
Change-Id: Ia668d468c1bcb342ad42168c9a107da591e9ec30
Signed-off-by: Yu jiung <jiung.yu@samsung.com>
Yu Jiung [Mon, 4 Jan 2016 02:12:17 +0000 (11:12 +0900)]
[wifi-direct-manager]Fix compile error for 64bit build
Change-Id: I7156791e7f16ec27ebb7081ed7cb83341f35fc9a
taesub kim [Mon, 4 Jan 2016 02:00:08 +0000 (18:00 -0800)]
Merge "[wifi-direct-client]: Add missing Macro" into tizen
Maneesh Jain [Sun, 27 Dec 2015 17:32:36 +0000 (12:32 -0500)]
[wifi-direct-client]: Add missing Macro
Change-Id: I769a7534e246ed62e26c2ff7f2b6e99e97d73774
Signed-off-by: Maneesh Jain <maneesh.jain@samsung.com>
Maneesh Jain [Sun, 27 Dec 2015 06:55:44 +0000 (01:55 -0500)]
[WFD-Plugin]: Fix build Error for Socket Plugin
Change-Id: I568efaf3fdd5f2826062267086bd9b6768b332bd
Signed-off-by: Maneesh Jain <maneesh.jain@samsung.com>
Yu Jiung [Fri, 18 Dec 2015 05:48:46 +0000 (14:48 +0900)]
[wifi-direct-manager]Enables launching wlan.sh
Change-Id: I60d14df369d09407451842f4572ef5f4c61f2ebb
Signed-off-by: Yu jiung <jiung.yu@samsung.com>
Maneesh Jain [Sat, 12 Dec 2015 10:36:46 +0000 (16:06 +0530)]
[wfd-manager]:Add support of Tizen TV WLAN Module
Change-Id: I0f179f17dab26e3c04ca9a83656cac0e7df3fdbf
Signed-off-by: Maneesh Jain <maneesh.jain@samsung.com>
Maneesh Jain [Wed, 9 Dec 2015 05:42:45 +0000 (11:12 +0530)]
[wfd-plugin]: Fix the "wps_cancel" command failed issue
Change-Id: I9dc349f4ba8ebb7b8fea897fa633be0c7a990a47
Signed-off-by: Maneesh Jain <maneesh.jain@samsung.com>
taesub.kim [Thu, 3 Dec 2015 00:21:57 +0000 (09:21 +0900)]
Modified target name
Change-Id: I3657e01365b0a31fff5862af7a0f6f6dd29e06b8
Signed-off-by: Taesub Kim <taesub.kim@samsung.com>
Yu Jiung [Mon, 16 Nov 2015 10:01:22 +0000 (19:01 +0900)]
[wifi-direct-manager]Sync with Tizen 2.4 release and update patches
Description: This patch also adds below fixes,
1. Clear peer list when group is destroyed
2. Ignore PD request and GO negotiation request when in GC
3. Fix parsing service discovery peer device address
4. Send disconnected event when GC gets the group destroy event
5. Fix some service discovery code for DBus interface
6. Add support for TM1 device
Change-Id: I6c15e0ddf0780e9509b3cac8fe9770b3f6caba2e
taesub kim [Mon, 2 Nov 2015 07:42:08 +0000 (23:42 -0800)]
Merge "[Fix] using wlan interface in Odroid XU3 default device" into tizen
taesub kim [Fri, 30 Oct 2015 02:28:45 +0000 (19:28 -0700)]
Merge "[Fixed] Typo error in wifi-direct-manager package" into tizen
Seonah Moon [Thu, 29 Oct 2015 01:23:28 +0000 (10:23 +0900)]
Remove vconftool command to use buxton keys
Change-Id: Ic238a78bd426715f2c5340604bc334ad6a68aecb
Signed-off-by: Seonah Moon <seonah1.moon@samsung.com>
Nishant Chaprana [Fri, 16 Oct 2015 05:52:48 +0000 (11:22 +0530)]
[Fix] using wlan interface in Odroid XU3 default device
Description: This patch fixes the dhcp related issue in odroid XU3.
The interface used for dhcp configuration file was p2p0 but in XU3
default device creates only wlan0 interface.
Change-Id: I25c1eb9ec52ca538e05229610ea801a36603d8c1
Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
Nishant Chaprana [Tue, 6 Oct 2015 09:03:03 +0000 (14:33 +0530)]
[Fixed] Typo error in wifi-direct-manager package
Change-Id: I426c1b519aa4d458801365fd28fe9aa96ccebe06
Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
Yu Jiung [Fri, 11 Sep 2015 09:25:05 +0000 (18:25 +0900)]
[wifi-direct-manager]Add undefined symbol for default case
Change-Id: Ic8c64fc77e0279c20b013da3b3520622dac10555
Signed-off-by: Yu jiung <jiung.yu@samsung.com>
Yu Jiung [Thu, 10 Sep 2015 02:26:08 +0000 (11:26 +0900)]
[wifi-direct-manager]Add cynara check
Change-Id: I8630a7f50619cfd886ccf752fb6d2e8099254e2e
Signed-off-by: Yu jiung <jiung.yu@samsung.com>
Yu Jiung [Thu, 10 Sep 2015 02:10:11 +0000 (11:10 +0900)]
[wifi-direct-manager]Disable p2p0 interface and concurrent mode for default XU3 device
Description : SQE testers use defualt Wi-Fi module. That can't provide
Wi-Fi Direct funcaitonality fully by default. Just make TV profile use
wlan0 interface and XU3 doesn't need the wlan0 enable scripts. So we
need to make other flags if we use the other Wi-Fi module.
Change-Id: Ibf67dadc6ccbf1e9abda61b86abae445812f3ea3
Signed-off-by: Yu jiung <jiung.yu@samsung.com>
Nishant Chaprana [Wed, 2 Sep 2015 13:10:57 +0000 (18:40 +0530)]
[Fix] limited the input taken by sscanf for ip and mac address
Description: This patch also fixes some warinings as below:
1. assigned value of rv was over written in __ws_p2p_supplicant_start
and __ws_p2p_supplicant_stop funtions.
2. In _ws_reset_plugin the name of in variable was conflicting with
global variable g_pd, so replced g_pd in this funtion with f_pd
to differ between global and funtion param.
Change-Id: I29c231bf859736995b9c604bb7088be976406401
Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>