summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2014-04-01packaging: Add systemd service require for nfc-manager-neardtizen_3.0.m14.3_ivi_releasetizen_3.0.m14.2_ivi_releasetizen_3.0.2014.q3_common_releasesubmit/tizen/20140402.032734accepted/tizen/ivi/panda/20140402.033626accepted/tizen/ivi/20140409.181955accepted/tizen/generic/20140402.151726tizen_3.0.m14.3_ivitizen_3.0.m14.2_ivitizen_3.0.2014.q3_commonaccepted/tizen_ivi_pandaaccepted/tizen_genericaccepted/tizen_3.0.m14.3_iviaccepted/tizen_3.0.2014.q3_commonArron Wang1-1/+2
Change-Id: I0bd42085aaafc646677c8b4d1e21615b20a70966
2014-03-10bluez: Adjust BT handover scriptSebastian Chlad2-1/+93
Since blueZ 5.X switched to the ObjectManager API bt-handover cannot be used with the bt-handover test script provided by neard lower than 0.14. Patch adds bt-interim-handover script which uses ObjectManager and therefore allows bt-handover testing with neard 0-12 and BlueZ 5.X. Change-Id: I83e4dc8c44d8dac50ad2866f7482fffd750b8e9e Signed-off-by: Sebastian Chlad <sebastianx.chlad@intel.com>
2013-11-29Revert "Fixed issue: TIVI-1665 [3.0] The neard serviceChengyi Zhao1-3/+0
is not enabled by default" Use the udev rule instead of the default startup This reverts commit 98c95b675a8fb39ae817bd1938f8bc2465c15f19. Change-Id: Ief6a61198f343062dba0728beafc616fd42a7bc7 Signed-off-by: Chengyi Zhao <chengyi1.zhao@archermind.com>
2013-10-29Fixed issue: TIVI-1665 [3.0] The neard service is not enabled by defaultsubmit/tizen/20131127.022931accepted/tizen/20131205.214601accepted/tizen/mobileChengyi Zhao1-0/+3
For starting neard, link neard.service to multi-user.target.wants Change-Id: I9a2342cb1711bb7dfdf9550fe8c280df64f0f5d4 Signed-off-by: Chengyi Zhao <chengyi1.zhao@archermind.com>
2013-10-23Fixed issue: TIVI-1665 [3.0] The neard service is not enabled by defaultsubmit/tizen/20131023.094723accepted/tizen/20131112.015218accepted/tizen/20131105.192002accepted/tizen/20131023.171356accepted/tizen/ivi/stableChengyi Zhao1-1/+2
Change-Id: Ic9e95e5fceca4fd0d768411651607e332cbdecf1 Signed-off-by: Chengyi Zhao <chengyi1.zhao@archermind.com>
2013-10-07Revert "Fix issue TIVI-1665: [3.0] The neard service is not enabled by default"Mikko Ylinen2-6/+1
NFC chips are not present on all systems. Trying to run neard on such a system causes neard to fail. This unnecessarily adds boot time. This reverts commit ab3f78af5bc38ad8f47ff1a17b4c4d29813299de. Change-Id: I7ce3a29626af40a3b352fbd3347d52d52b185cc3 Signed-off-by: Mikko Ylinen <mikko.ylinen@intel.com>
2013-09-18Install main.conf file in %{_sysconfdir}/neard and make DefaultPowered truesubmit/tizen_ivi_release/20131120.032317submit/tizen_ivi_genivi/20140131.030358submit/tizen/20130923.012832ivi_oct_m2accepted/tizen_ivi_release/20131120.050200accepted/tizen/ivi/genivi/20140131.034722accepted/tizen/20130923.214004accepted/tizen/20130923.194822accepted/tizen/20130923.194228accepted/tizen/20130923.030139tizen_ivi_releasetizen_ivi_geniviaccepted/tizen/ivi/releaseaccepted/tizen/ivi/geniviGeoffroy Van Cutsem2-1/+5
Fix TIVI-1825: [3.0] NFC adapters are not enabled by default Change-Id: Ia55f32058cdcbc31ae4beadd9d9be0067ff84f37 Signed-off-by: Geoffroy Van Cutsem <geoffroy.vancutsem@intel.com>
2013-09-16Merge "ndef: Add support for WiFi Handover through MIME/x-nfctl" into tizensubmit/tizen/20130917.191928accepted/tizen/20130918.161657accepted/tizen/20130917.224223accepted/tizen/20130917.195843accepted/tizen/20130917.194238Samuel Ortiz4-1/+223
2013-09-14Fix issue TIVI-1665: [3.0] The neard service is not enabled by defaultsubmit/tizen/20130916.063851accepted/tizen/20130916.212238accepted/tizen/20130916.211458accepted/tizen/20130916.192937accepted/tizen/20130916.112603Chengyi Zhao2-1/+6
Change-Id: I779d522155e2bcf9cffd8cd57d2a1859017e3087
2013-09-13ndef: Add support for WiFi Handover through MIME/x-nfctlSamuel Ortiz4-1/+223
The NFC task launcher Android application reads NFC tags formatted with a proprietary MIME/x-nfctl NDEF containing an SSID and a passphrase. By pushing the same kind of NDEF through SNEP, a WiFi association with the neard WiFi handover agent can be triggered. Change-Id: I11a64dfbf05b9db3e444e2ee4df09a843244f6c2 Signed-off-by: Geoffroy Van Cutsem <geoffroy.vancutsem@intel.com>
2013-07-11adding default manifestsubmit/tizen/20130912.090452submit/tizen/20130912.080145submit/tizen/20130710.100345accepted/tizen/20130912.195238accepted/tizen/20130912.191046accepted/tizen/20130912.153231accepted/tizen/20130912.103233accepted/tizen/20130912.103225accepted/tizen/20130711.164616Alexandru Cornea2-0/+10
2013-07-09Add packaging directorysubmit/tizen/20130709.002946accepted/tizen/20130709.021931Arron Wang3-0/+130
Change-Id: I5704e7f54c2162b644eaa12aa508d4bf127145eb
2013-07-09Add raw NDEF support for P2PArron Wang2-0/+42
Change-Id: I516232587f196eebabebe44af12d777f960429d4
2013-07-09Add adapter powered signalArron Wang1-0/+10
Change-Id: I7bf650500d907d3cdfbb2df1d8aa5fa5ae77bb26
2013-07-09tag: Remove space from the raw NDEF D-Bus ragument nameSamuel Ortiz1-1/+1
Spaces create unsupported introspection XML files.
2013-07-09tag: Implement a raw NDEF accessorSamuel Ortiz3-2/+38
2013-07-09ndef: Support RAW ndef writesSamuel Ortiz3-0/+74
Change-Id: I21a341b2482556458e381b4a3033ef3e9313194c
2013-06-25Release 0.12upstream/0.120.12Samuel Ortiz2-1/+14
2013-06-21device: Pass the NDEF push cb status back to the callerSamuel Ortiz1-1/+1
Instead of hard coding it to EINVAL.
2013-06-21error: Add I/O error routineSamuel Ortiz2-0/+9
2013-06-21ndef: Support receiving empty Handover select framesSamuel Ortiz2-0/+12
Empty handover select frames are received when the peer notifies us about not supporting any of the carrier sent in the handover request frame. In that case there is nothing to do but disconnecting from the handover service.
2013-06-20ndef: Send empty WiFi carrier in Hr message when running as a STARavi kumar Veeramally1-3/+43
When running as a 802.11 STA, the Hr should contain an empty WiFi carrier as we're just asking for WiFi availability from the peer. Also when running in AP mode, an Hr is not a valid frame to send as an AP will not be able to initiate the association.
2013-06-20ndef: Implement static handoverSamuel Ortiz3-0/+11
static handover is going through a different D-Bus path as it would not make sense to handle both static and dynamic handover from the same code path. Static handover means an application explicitely requires to send a handover select without having previously received a handover request. This could typically be used for handling WiFi handover through configuration token from the registrar perspective. The registrar (a.k.a. the Access Point) would send a configuration token via Handover and expects the Enrolle (a.k.a. the WiFi STA) to initiate the WiFi association.
2013-06-20ndef: Generalize near_ndef_prepare_hr_message()Samuel Ortiz1-34/+68
near_ndef_prepare_hr_message can be used for building Hr frames but also Hs ones for static handover. So generalize and factorize it and also rename it to near_ndef_prepare_ho_message().
2013-06-20test: Check for dump-* scripts argumentSamuel Ortiz3-0/+12
Check that there at least is one argument and dump a usage example otherwise.
2013-06-20test: Explicitely unregister the NDEF agent when being interruptedSamuel Ortiz1-1/+5
2013-06-19ndef: Rename near_ndef_prepare_hs_messageSamuel Ortiz1-2/+2
near_ndef_prepare_hs_message() does not prepare a generic handover select message but rather a reply to a handover request. Those 2 have to be differentiated in order to implement static handover where a handover select frame is sent without having first seen a handover request.
2013-06-19ndef: Rename build_ho_recordSamuel Ortiz1-5/+5
build_ho_record is used for initiating negotiated handover, so it will only send handover requests. As such, rename build_ho_record to build_hr_record.
2013-06-19nfctool: sniffer: Dump unknown WSC data elementsSamuel Ortiz1-0/+5
Don't drop them silently.
2013-06-19gdbus: Remove proxies when client disconnectsHenrique Dante de Almeida1-0/+4
Remove proxies and generate proxy_removed callbacks even when there are no corresponding InterfaceRemoved signals. This patch fixes having zombie gdbus proxy object when a server disconnects without sending InterfaceRemoved signals. These objects may interact with new server instances, for example, making InterfaceAdded signals of new objects with the same name be filtered out as duplicated, or staying allocated, but unused, if the new server doesn't reuse the object paths. Note that as a side-effect, the lifetime of a gdbus proxy becomes stricter: it lives at most for the duration of a single connection to a single instance of a server process.
2013-06-18nfctool: sniffer: Decode application/vnd.wfa.wsc MIME recordsSamuel Ortiz1-0/+55
2013-06-18test: Add MIME type to the Device pushing optionsSamuel Ortiz2-0/+10
Only wifi_wsc is supported for now, i.e. one can only push WSC configuration tokens over SNEP.
2013-06-18ndef: Fallback to the WiFi agent when missing an SSIDSamuel Ortiz1-2/+34
When the D-Bus message does not contain an SSID (and optionalyy a passphrase) then we fallback to the WiFi WSC agent. If it's running in tethering mode then it will reply with an already built WSC TLV array. This is needed to push WiFi WSC configuration token over SNEP. Android is going to support that as a simplified WiFi Handover.
2013-06-18nfctype4: Fix segmentation fault on invalid access keyOlivier Guiter1-1/+1
If length is < 0, further access to the resp buffer will cause neard to seg fault.
2013-06-14bluetooth: Fix memory leaks on error or when not pairingGuillem Jover1-1/+4
Warned-by: cppcheck
2013-06-14npp: Fix memory leak on allocation errorGuillem Jover1-3/+4
The pointer to a realloc() function does not get touched on error, so we need to check if the function failed and either free or update the pointer. Warned-by: cppcheck
2013-06-14p2p: Coding style violation fixesOlivier Guiter1-6/+6
2013-06-14p2p: Check for an already existing p2p driver from near_p2p_registerOlivier Guiter1-1/+11
If there already is a driver handling this service name, -EALREADY is returned.
2013-06-14nfctool: sniffer: Print Handover I frames as NDEFSamuel Ortiz1-0/+9
Handover information frames are actually pure NDEFs, so decode them as such since it is now possible to detect Handover specific traffic.
2013-06-14nfctool: sniffer: CONNECT and CC frames trackingSamuel Ortiz2-0/+62
In order to map an SAP with the righ service name, CONNECT and CC frames need to be tracked along with their dsap/ssap. When finding an SN, it means a CONNECT frame has been monitored. The SN string is then associated with the SSAP. Upon CC sniffing, the DSAP is fetched and if a pending SN for this DSAP is found, the service name lookup is done. With this mechanism it is now possible to know the e.g. the Handover SAP and decode its I frames as pure NDEF ones. This tracking will only work with connection by name (Which is what the vast majority of platforms do). An enhancement would be to track SNL packets as well.
2013-06-14nfctool: sniffer: Handle Bluetooth Handover recordsSamuel Ortiz1-4/+105
If the MIME string is "application/vnd.bluetooth.ep.oob" then the Bluetooth OOB data is parsed and output appropriately. AC and CR records are not parsed yet.
2013-06-13nfctool: sniffer: Output the MIME type valueSamuel Ortiz1-5/+30
This is needed for handover sniffing.
2013-06-13nfctool: sniffer: A record's TNF is not a booleanSamuel Ortiz1-1/+1
A record TNF (Type Name Format) is on 3 bits and thus should not be the result of a boolean comparison.
2013-06-13nfctool: sniffer: Support multiple records per NDEFSamuel Ortiz1-18/+21
Two offsets are needed to track the record current pointer and the NDEF one.
2013-06-12agent: Do not call NDEF agent Release when agent leavesSamuel Ortiz1-7/+16
The Release method should only be called when neard leaves. neard doesn't need to notify an agent that's explicitly leaving.
2013-06-12test: Fix Text NDEF representationSamuel Ortiz2-3/+9
The Text NDEF representation could be non ASCII strings (UTF-8 or UTF-16) and the dumping scripts need to know about that. Fixes #NFC-48
2013-06-12ndef: Do not fail if NDEF record MIME type is not a handover oneSamuel Ortiz1-5/+6
NDEFs with MIME type records that are not WSC or Bluetooth ones are not wrong. Their payload won't be processed but the record is kept and linked to the discovered tag. NDEF agents will get the binary payload. Fixes #NFC-45
2013-06-10adapter: Pass the right adapter index when auto powering adaptersSamuel Ortiz1-1/+1
When calling __near_netlink_adapter_enable(), adapter->idx is not yet set. The right adapter index to pass is the __near_adapter_create() argument.
2013-06-10validation: Add MIUX supportOlivier Guiter2-13/+36
The MIUX value is now read from the socket options, allowing for a dynamic SDU buffer allocation.
2013-06-08snep: Fix fragmented GETSamuel Ortiz1-0/+12
When receiving a CONTINUE while nfc_data_length is set to 0, it must be a CONTINUE for a fragmented GET. The headers are thus read in order to modify snep_data->request and then process the right request. This fixes the GET fragmented unit test.