summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
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.
2013-06-08snep: Fix SNEP fragmentationSamuel Ortiz4-20/+41
The intial request is kept through the snep_data and snep_core_process_request no longer relies on the last read frame to build an answer but only on the snep_data pointer. Without this fix, each fragment from a fragmented PUT was handled as a complete SNEP frame (header included) which caused process_request to get completely confused about how to handle fragments. Now that snep_core_read is fixed, the fragmentation SNEP unit test can be fixed as well.
2013-06-03validation: Fix memory leak from llcp_send_dataOlivier Guiter1-7/+4
When send or sendto fails the SDU still needs to be freed.
2013-05-31doc: Fix NDEF agent GetNDEF prototypeSamuel Ortiz1-1/+1
GetNDEF does not return any dictionary, it takes one as a parameter.
2013-05-30nfctype4: Add support for type4 B tagsSamuel Ortiz1-3/+19
4a and 4b tags follow the same specs: the type 4 one from the NFC Forum.
2013-05-30tag: Set type B tag type properlySamuel Ortiz1-0/+4
When receiving a 14443-B protocol mask, we should set the tag type to NFC-B.
2013-05-30nfctool: sniffer: Fix fragmented SNEP outputSamuel Ortiz1-5/+8
Display the right string depending ont the direction.