platform/upstream/neard.git
12 years agondef: API provided to prepare smartposter ndef record
Ravikumar Veeramally [Thu, 8 Dec 2011 09:52:27 +0000 (11:52 +0200)]
ndef: API provided to prepare smartposter ndef record

API provided to prepare smartposter ndef record with mandatory uri fields,
which is useful to write ndef data on tags.

12 years agotype1: Add support for dynamic mode on type 1 tag
Olivier Guiter [Fri, 16 Dec 2011 09:32:59 +0000 (10:32 +0100)]
type1: Add support for dynamic mode on type 1 tag

12 years agotlv: fix byte ordering issue on "long" TLV length
Olivier Guiter [Thu, 15 Dec 2011 10:53:25 +0000 (11:53 +0100)]
tlv: fix byte ordering issue on "long" TLV length

12 years agop2p: Protect the AF_NFC ugliness
Samuel Ortiz [Thu, 15 Dec 2011 18:19:53 +0000 (19:19 +0100)]
p2p: Protect the AF_NFC ugliness

12 years agotarget: Export records for device targets as well
Samuel Ortiz [Thu, 15 Dec 2011 18:15:57 +0000 (19:15 +0100)]
target: Export records for device targets as well

12 years agop2p: Initial NPP implementation
Samuel Ortiz [Thu, 15 Dec 2011 17:53:02 +0000 (18:53 +0100)]
p2p: Initial NPP implementation

NPP is Android's NDEF Push Protocol, running on top of LLCP.
This code allows us to fetch exported information from Adroid NFC enabled
devices.

12 years agonetlink: Implement DEP related messages and events
Samuel Ortiz [Thu, 15 Dec 2011 17:33:08 +0000 (18:33 +0100)]
netlink: Implement DEP related messages and events

12 years agoadapter: At least protect the AF_NFC hack ;)
Marcel Holtmann [Thu, 15 Dec 2011 17:23:02 +0000 (18:23 +0100)]
adapter: At least protect the AF_NFC hack ;)

12 years agondef: Fix mime type memory leak
Olivier Guiter [Thu, 8 Dec 2011 15:52:06 +0000 (16:52 +0100)]
ndef: Fix mime type memory leak

12 years agondef: fix small bug on memory release
Olivier Guiter [Thu, 1 Dec 2011 12:30:41 +0000 (13:30 +0100)]
ndef: fix small bug on memory release

12 years agoplugin: Add code to check target subtype on type 2
Olivier Guiter [Thu, 24 Nov 2011 19:20:55 +0000 (20:20 +0100)]
plugin: Add code to check target subtype on type 2

12 years agotarget: Check and store NFC Type 2 target subtype
Olivier Guiter [Thu, 24 Nov 2011 19:20:54 +0000 (20:20 +0100)]
target: Check and store NFC Type 2 target subtype

12 years agondef: Switch tnf definitions to an enum
Samuel Ortiz [Mon, 21 Nov 2011 17:04:03 +0000 (18:04 +0100)]
ndef: Switch tnf definitions to an enum

12 years agondef: Initial MIME type record parsing
Samuel Ortiz [Mon, 21 Nov 2011 15:16:42 +0000 (16:16 +0100)]
ndef: Initial MIME type record parsing

12 years agondef: Fix memory leak
Samuel Ortiz [Mon, 21 Nov 2011 14:59:50 +0000 (15:59 +0100)]
ndef: Fix memory leak

The type array as leaking.

12 years agondef: Save record type
Samuel Ortiz [Mon, 21 Nov 2011 16:51:40 +0000 (17:51 +0100)]
ndef: Save record type

12 years agonear-ui: Monitor records and targets addition/removal signals
Olivier Guiter [Tue, 15 Nov 2011 14:24:07 +0000 (15:24 +0100)]
near-ui: Monitor records and targets addition/removal signals

12 years agoadapter: Remove all targets when starting a poll
Samuel Ortiz [Tue, 15 Nov 2011 11:59:15 +0000 (12:59 +0100)]
adapter: Remove all targets when starting a poll

12 years agotest: Identation fixes for neard-ui
Samuel Ortiz [Tue, 15 Nov 2011 11:32:20 +0000 (12:32 +0100)]
test: Identation fixes for neard-ui

12 years agoneard-ui: very simple neard UI
Olivier Guiter [Tue, 15 Nov 2011 10:28:08 +0000 (11:28 +0100)]
neard-ui: very simple neard UI

12 years agop2p: Initial plugin implementation
Samuel Ortiz [Mon, 14 Nov 2011 10:52:15 +0000 (11:52 +0100)]
p2p: Initial plugin implementation

A skeleton for now.

12 years agodoc: Add Readonly flag support documentation
Olivier Guiter [Tue, 8 Nov 2011 10:21:15 +0000 (11:21 +0100)]
doc: Add Readonly flag support documentation

12 years agotype4: Add Readonly flag support
Olivier Guiter [Tue, 8 Nov 2011 10:21:14 +0000 (11:21 +0100)]
type4: Add Readonly flag support

12 years agotype3: Add Readonly flag support
Olivier Guiter [Tue, 8 Nov 2011 10:21:13 +0000 (11:21 +0100)]
type3: Add Readonly flag support

12 years agotype2: Add Readonly flag support
Olivier Guiter [Tue, 8 Nov 2011 10:21:12 +0000 (11:21 +0100)]
type2: Add Readonly flag support

12 years agotype1: Add Readonly flag support
Olivier Guiter [Tue, 8 Nov 2011 10:21:11 +0000 (11:21 +0100)]
type1: Add Readonly flag support

12 years agoneard: Add dbus Getproperty for read only flag
Olivier Guiter [Tue, 8 Nov 2011 10:21:10 +0000 (11:21 +0100)]
neard: Add dbus Getproperty for read only flag

12 years agonfctype4: Fix crash on exit
Olivier Guiter [Tue, 25 Oct 2011 14:01:42 +0000 (16:01 +0200)]
nfctype4: Fix crash on exit

Tag is freed by free_target().

12 years agonetlink: Add compat functions for libnl-1 usage
Marcel Holtmann [Fri, 21 Oct 2011 06:49:39 +0000 (23:49 -0700)]
netlink: Add compat functions for libnl-1 usage

12 years agobuild: Check for libnl-1 if libnl-2.0 is not present
Marcel Holtmann [Fri, 21 Oct 2011 06:49:15 +0000 (23:49 -0700)]
build: Check for libnl-1 if libnl-2.0 is not present

12 years agobuild: Add .gitignore file
Marcel Holtmann [Fri, 21 Oct 2011 06:34:28 +0000 (23:34 -0700)]
build: Add .gitignore file

12 years agofeatures: Update type 4 support status
Samuel Ortiz [Fri, 14 Oct 2011 15:01:12 +0000 (17:01 +0200)]
features: Update type 4 support status

12 years agofeatures: Fix typo
Samuel Ortiz [Fri, 5 Aug 2011 14:30:42 +0000 (16:30 +0200)]
features: Fix typo

12 years agofeatures: Initial document
Samuel Ortiz [Fri, 5 Aug 2011 14:09:57 +0000 (16:09 +0200)]
features: Initial document

12 years agoAUTHORS: Mention Ravi's contributions
Marcel Holtmann [Fri, 21 Oct 2011 06:06:34 +0000 (23:06 -0700)]
AUTHORS: Mention Ravi's contributions

12 years agoAUTHORS: Mention Olivier's contributions
Marcel Holtmann [Fri, 21 Oct 2011 06:06:05 +0000 (23:06 -0700)]
AUTHORS: Mention Olivier's contributions

12 years agonfctype4: NFC type 4 (V1 and V2) support
Olivier Guiter [Fri, 14 Oct 2011 09:39:46 +0000 (11:39 +0200)]
nfctype4: NFC type 4 (V1 and V2) support

12 years agondef.c: Fix bug on 4 bytes payload size
Olivier Guiter [Thu, 13 Oct 2011 14:39:13 +0000 (16:39 +0200)]
ndef.c: Fix bug on 4 bytes payload size

The NDEF specs specify that the transmission order is a BE one.

12 years agotarget: Set target type according to its protocol
Samuel Ortiz [Thu, 13 Oct 2011 15:08:30 +0000 (17:08 +0200)]
target: Set target type according to its protocol

A target showing NFC-DEP support is a p2p device.

12 years agonfctype1: Fix unconsistency in file's rights
Olivier Guiter [Thu, 13 Oct 2011 10:31:41 +0000 (12:31 +0200)]
nfctype1: Fix unconsistency in file's rights

12 years agondef: API provided to prepare uri ndef record
Ravikumar Veeramally [Tue, 11 Oct 2011 12:35:46 +0000 (15:35 +0300)]
ndef: API provided to prepare uri ndef record

API provided to prepare uri ndef record which is useful to
write ndef data on tags.

12 years agondef: API provided to prepare text ndef record
Ravikumar Veeramally [Tue, 11 Oct 2011 12:35:45 +0000 (15:35 +0300)]
ndef: API provided to prepare text ndef record

API provided to prepare text ndef record which is useful to
write ndef data on tags.

12 years agotag: Add a readonly setting routine
Samuel Ortiz [Tue, 11 Oct 2011 10:31:25 +0000 (12:31 +0200)]
tag: Add a readonly setting routine

12 years agoTODO: Add writer mode, permissions, and UID tasks
Samuel Ortiz [Tue, 11 Oct 2011 10:15:06 +0000 (12:15 +0200)]
TODO: Add writer mode, permissions, and UID tasks

12 years agodoc: Change the AddRecord argument to a dictionary
Samuel Ortiz [Wed, 5 Oct 2011 15:51:40 +0000 (17:51 +0200)]
doc: Change the AddRecord argument to a dictionary

12 years agodoc: Record addition and deletion to the target API
Samuel Ortiz [Tue, 4 Oct 2011 19:02:32 +0000 (21:02 +0200)]
doc: Record addition and deletion to the target API

12 years agotest: Fix dump-target and dump-record print format
Ravikumar Veeramally [Mon, 3 Oct 2011 13:32:44 +0000 (16:32 +0300)]
test: Fix dump-target and dump-record print format

12 years agonfctype1: Rename offset to addr
Samuel Ortiz [Wed, 28 Sep 2011 13:24:03 +0000 (15:24 +0200)]
nfctype1: Rename offset to addr

12 years agotest: Fix dump-target indentation
Samuel Ortiz [Tue, 27 Sep 2011 12:52:39 +0000 (14:52 +0200)]
test: Fix dump-target indentation

12 years agondef: Move the action property to a string
Samuel Ortiz [Tue, 27 Sep 2011 11:16:01 +0000 (13:16 +0200)]
ndef: Move the action property to a string

12 years agondef: Fix t_cf variable related warning
Samuel Ortiz [Tue, 27 Sep 2011 09:55:12 +0000 (11:55 +0200)]
ndef: Fix t_cf variable related warning

12 years agodoc: Fix target API documentation
Samuel Ortiz [Tue, 27 Sep 2011 09:53:14 +0000 (11:53 +0200)]
doc: Fix target API documentation

12 years agondef: Preparation of smart poster record D-Bus reply
Ravikumar Veeramally [Fri, 23 Sep 2011 13:01:53 +0000 (16:01 +0300)]
ndef: Preparation of smart poster record D-Bus reply

Preparation of D-Bus reply with cached ndef smart poster record
properites.

12 years agondef: Parsing ndef smartposter record
Ravikumar Veeramally [Fri, 23 Sep 2011 13:01:52 +0000 (16:01 +0300)]
ndef: Parsing ndef smartposter record

Parsing ndef smartposter record and caching its properties
for D-Bus replies. Validating language indentifier in smartposter
title records.

12 years agondef: Preparation of uri record D-Bus reply
Ravikumar Veeramally [Fri, 23 Sep 2011 13:01:51 +0000 (16:01 +0300)]
ndef: Preparation of uri record D-Bus reply

Preparation of D-Bus reply with cached ndef uri record
properites.

12 years agondef: Parsing ndef uri record
Ravikumar Veeramally [Fri, 23 Sep 2011 13:01:50 +0000 (16:01 +0300)]
ndef: Parsing ndef uri record

Parsing ndef uri record and caching its properties for D-Bus
replies.

12 years agondef: Preparation of text record D-Bus reply
Ravikumar Veeramally [Fri, 23 Sep 2011 13:01:49 +0000 (16:01 +0300)]
ndef: Preparation of text record D-Bus reply

Preparation of D-Bus reply with cached ndef text record
properites.

12 years agondef: Parsing ndef text record
Ravikumar Veeramally [Fri, 23 Sep 2011 13:01:48 +0000 (16:01 +0300)]
ndef: Parsing ndef text record

Parsing ndef text record and caching its properties for D-Bus
replies.

12 years agondef: Message begin and end bits validation
Ravikumar Veeramally [Fri, 23 Sep 2011 13:01:47 +0000 (16:01 +0300)]
ndef: Message begin and end bits validation

Validation of message begin and end bits to sort out malformed messages.

12 years agondef: Parsing and preparaton of caching ndef message for dbus replies
Ravikumar Veeramally [Fri, 23 Sep 2011 13:01:46 +0000 (16:01 +0300)]
ndef: Parsing and preparaton of caching ndef message for dbus replies

Couple of changes in ndef parsing and ndef data caching
for D-Bus replies. Caching ndef properties are efficient
and faster in retrieval for D-Bus replies.

12 years agonfctype1: Small identation fix
Samuel Ortiz [Fri, 26 Aug 2011 18:21:32 +0000 (20:21 +0200)]
nfctype1: Small identation fix

12 years agonfctype2: Free cookie _after_ using dereferencing it
Samuel Ortiz [Wed, 24 Aug 2011 14:19:57 +0000 (16:19 +0200)]
nfctype2: Free cookie _after_ using dereferencing it

Thanks to Olivier Guiter for spotting this one.

12 years agodoc: Add coding style document
Samuel Ortiz [Thu, 11 Aug 2011 10:26:27 +0000 (12:26 +0200)]
doc: Add coding style document

Mostly copied from oFono.

12 years agoTODO: Add p2p description
Samuel Ortiz [Fri, 5 Aug 2011 13:57:51 +0000 (15:57 +0200)]
TODO: Add p2p description

12 years agoTODO: Initial commit
Samuel Ortiz [Fri, 5 Aug 2011 09:18:57 +0000 (11:18 +0200)]
TODO: Initial commit

12 years agonfctyp3: NFC type 3 tag initial read support
Olivier Guiter [Fri, 29 Jul 2011 18:39:00 +0000 (20:39 +0200)]
nfctyp3: NFC type 3 tag initial read support

12 years agonfctype1: Slight coding style fixes
Samuel Ortiz [Tue, 5 Jul 2011 16:24:32 +0000 (18:24 +0200)]
nfctype1: Slight coding style fixes

12 years agonfctype1: NFC type 1 tag initial support
Olivier Guiter [Tue, 5 Jul 2011 09:10:53 +0000 (11:10 +0200)]
nfctype1: NFC type 1 tag initial support

Only the static memory model is supported.

12 years agotarget: Initial type 3 detection
Samuel Ortiz [Tue, 5 Jul 2011 16:17:18 +0000 (18:17 +0200)]
target: Initial type 3 detection

12 years agoadapter: Support for multiple targets
Samuel Ortiz [Sat, 2 Jul 2011 01:22:14 +0000 (03:22 +0200)]
adapter: Support for multiple targets

12 years agomanager: Coding style fix
Samuel Ortiz [Sat, 2 Jul 2011 00:59:48 +0000 (02:59 +0200)]
manager: Coding style fix

12 years agoadapter: Call target add instead of the other way around
Samuel Ortiz [Sat, 2 Jul 2011 00:46:22 +0000 (02:46 +0200)]
adapter: Call target add instead of the other way around

This is needed for cleaning all targets when a new poll starts.

12 years agotarget: Target hash table key should be the target path
Samuel Ortiz [Sat, 2 Jul 2011 00:00:09 +0000 (02:00 +0200)]
target: Target hash table key should be the target path

12 years agotlv: Add tlv parsing routine
Samuel Ortiz [Fri, 1 Jul 2011 20:34:31 +0000 (22:34 +0200)]
tlv: Add tlv parsing routine

12 years agonfctype2: Use TLV utilities
Samuel Ortiz [Fri, 1 Jul 2011 20:27:41 +0000 (22:27 +0200)]
nfctype2: Use TLV utilities

12 years agotlv: TLV utilities API
Samuel Ortiz [Fri, 1 Jul 2011 20:24:44 +0000 (22:24 +0200)]
tlv: TLV utilities API

12 years agonetlink: Use latest kernel API
Samuel Ortiz [Tue, 28 Jun 2011 19:39:55 +0000 (21:39 +0200)]
netlink: Use latest kernel API

When receiving a targets found netlink event, we call GET_TARGET and get a
target dump.

12 years agoadapter: Disconnect in case of IO error
Samuel Ortiz [Fri, 17 Jun 2011 01:52:33 +0000 (03:52 +0200)]
adapter: Disconnect in case of IO error

12 years agondef: Set URI prefix to NULL in the default case
Samuel Ortiz [Fri, 17 Jun 2011 01:41:03 +0000 (03:41 +0200)]
ndef: Set URI prefix to NULL in the default case

12 years agondef: Fix size_t formatting
Samuel Ortiz [Fri, 17 Jun 2011 01:38:54 +0000 (03:38 +0200)]
ndef: Fix size_t formatting

12 years agondef: Remove unused tnf variable
Samuel Ortiz [Fri, 17 Jun 2011 01:38:04 +0000 (03:38 +0200)]
ndef: Remove unused tnf variable

12 years agonetlink: Fix warning
Samuel Ortiz [Fri, 17 Jun 2011 01:37:23 +0000 (03:37 +0200)]
netlink: Fix warning

12 years agotag: Fix build error size_t incorrect formatting
Samuel Ortiz [Fri, 17 Jun 2011 01:24:52 +0000 (03:24 +0200)]
tag: Fix build error size_t incorrect formatting

12 years agoadapter: Fix compilation errors
Samuel Ortiz [Fri, 17 Jun 2011 01:23:33 +0000 (03:23 +0200)]
adapter: Fix compilation errors

12 years agotarget: NFC type 1 tag detection
Samuel Ortiz [Wed, 15 Jun 2011 18:06:41 +0000 (20:06 +0200)]
target: NFC type 1 tag detection

12 years agondef: org.neard.Record export
Samuel Ortiz [Thu, 9 Jun 2011 17:56:11 +0000 (19:56 +0200)]
ndef: org.neard.Record export

Each record will be accesible through that interface, and each tag tracks
its own record list.

12 years agotag: Add reader callback support
Samuel Ortiz [Wed, 8 Jun 2011 14:09:13 +0000 (16:09 +0200)]
tag: Add reader callback support

12 years agonfctype2: Fix cookie memory leak
Samuel Ortiz [Tue, 7 Jun 2011 19:31:20 +0000 (21:31 +0200)]
nfctype2: Fix cookie memory leak

12 years agondef: Initial NDEF parsing
Samuel Ortiz [Tue, 7 Jun 2011 16:03:13 +0000 (18:03 +0200)]
ndef: Initial NDEF parsing

12 years agonfctype2: No need to be that verbose
Samuel Ortiz [Tue, 7 Jun 2011 15:39:45 +0000 (17:39 +0200)]
nfctype2: No need to be that verbose

12 years agonfctype2: Fix memcpy offset
Samuel Ortiz [Tue, 7 Jun 2011 13:26:38 +0000 (15:26 +0200)]
nfctype2: Fix memcpy offset

The NFC header needs to be skipped.

12 years agotarget: Add missing header
Samuel Ortiz [Mon, 6 Jun 2011 14:04:58 +0000 (16:04 +0200)]
target: Add missing header

12 years agonfctype2: TLV parsing and NDEF tag adding
Samuel Ortiz [Tue, 31 May 2011 15:01:53 +0000 (17:01 +0200)]
nfctype2: TLV parsing and NDEF tag adding

12 years agotag: Extend the tag API
Samuel Ortiz [Tue, 31 May 2011 13:54:25 +0000 (15:54 +0200)]
tag: Extend the tag API

Plugins will have to use the tag API for getting the tag's data buffer and
filling it.

12 years agotag: Add tag creating/deleting API
Samuel Ortiz [Tue, 31 May 2011 13:00:58 +0000 (15:00 +0200)]
tag: Add tag creating/deleting API

12 years agoadapter: Only support one target
Samuel Ortiz [Sun, 29 May 2011 02:23:48 +0000 (04:23 +0200)]
adapter: Only support one target

There is realistically no use cases for an NFC adapter handling several
targets at the same time. Also, it makes even less sense from a card
emulation point of view.

12 years agonfctype2: Fix type 2 tag reading
Samuel Ortiz [Thu, 12 May 2011 17:28:19 +0000 (19:28 +0200)]
nfctype2: Fix type 2 tag reading

12 years agoadapter: Add receiver callback to the idle loop
Samuel Ortiz [Thu, 12 May 2011 17:27:53 +0000 (19:27 +0200)]
adapter: Add receiver callback to the idle loop

12 years agonfctype2: Typo fix
Samuel Ortiz [Thu, 12 May 2011 15:20:17 +0000 (17:20 +0200)]
nfctype2: Typo fix

12 years agonfctype2: Do not read data if CC indicates a zero length
Samuel Ortiz [Thu, 12 May 2011 15:17:50 +0000 (17:17 +0200)]
nfctype2: Do not read data if CC indicates a zero length