Bug 860696 - 1/4: mux bt [<bd_addr>]
Bug 860696 - 2/4: bt list [<bd_addr>]
Bug 860696 - 3/4: bt property [<bd_addr> [<name> [<value>]]]
Bug 860696 - 4/4: bt remote add, bt remote remove <bd_addr>
Bug 850996 - B2G Emulator: Add LTE signal report function. r=vicamo.

1. Add LTE signal strength (ie: rxlev, rsrp and rssnr) on emulator.
2. Fix range check for rssi/ber at handleSignalStrength@android_modem.c.
3. print rssi/ber if no argument for "gsm signal" command,
   print rxlev/rsrp/rssnr if no argument for "gsm lte_signal" command.

Ex:
1. "gsm signal" will print the current rssi/ber on console.
2. "gsm lte_signal" will print the current rxlev/rsrp/rssnr on console.
3. "gsm lte_signal <rxlev> <rsrp> <rssnr>" will be used to set the
   LTE siganl strength on emulator, and report RIL_UNSOL_SIGNAL_STRENGTH
   to upper layer.
Merge pull request #58 from chenghuk/850996

Bug 850996 - B2G Emulator: Add LTE signal report function.
Bug 984318 - [B2G] [Emulator] correct MAX_CALLS (on gsm) r=vicamo
Bug 935776: fix type SimFileRec, SimFile redefined.
Merge pull request #67 from tdz/bug-985415

Bug 985415: Improve console commands for NFC notifications
Merge pull request #57 from vicamo/bugzilla/860696/bt-test-commands

Bug 860696: add bt test commands. r=echou
Merge pull request #65 from vicamo/bugzilla/935776/ics_fix-type-redefined

Bug 935776: fix type SimFileRec, SimFile redefined. r=hsinyi
Merge remote-tracking branch 'b2g/master' into b2g-jellybean
Merge remote-tracking branch 'b2g/master' into b2g-jellybean
Bug 995202: Pass NCI payload size to callback functions

The NCI payload buffer is limited to 256 bytes, so it can easily
overflow. The callback function for creating NCI payload now
receives a parameter that contains the remaining buffer size.

Signed-off-by: Thomas Zimmermann <tdz@users.sourceforge.net>
Bug 995202: Remove NFC data command from console

This patch removes the command 'data' for reading and writing NFC
data. The command is broken, unused, and probably won't ever be
used. If we need to read or write data, it needs to be done in a
way specific to the involved protocols.

Signed-off-by: Thomas Zimmermann <tdz@users.sourceforge.net>
Bug 995202: Rename LLCP packets to PDUs

The LLCP specification calls individual LLCP messages 'PDUs', so
we should too.

Signed-off-by: Thomas Zimmermann <tdz@users.sourceforge.net>
Bug 995202: Added LLCP SAP constants to NFC emulation

The SAP constants contain magic numbers for the Service Access
Points of LLCP, as defined by the NFC forum.

Signed-off-by: Thomas Zimmermann <tdz@users.sourceforge.net>
Bug 995202: Cleanup NFC buffer reading/writing

This patch adds a nice API around NFC-internal buffers.

Signed-off-by: Thomas Zimmermann <tdz@users.sourceforge.net>
Introduce LLCP data links

According to the LLCP specification, data links transfer data between
two Service Access Points; either in a connected or unconnected mode.

This patch introduces the data structure llcp_data_link to represent
data links. It replaces the llcp_connection_state structure, which had
a similar purpose, but could incorrectly named and could not deal with
LLCP conncetions.
Added infrastructure for sending LLCP PDUs in NCI packets

LLCP peers mutually pass send permission, and LLCP requires PDUs
to be sent at specific points when the peer has the permission to
do so. If no PDUs are available for transmission, a SYMM PDU has
to be sent for passing permissions to the other peer.

This patch adds the necessary infrastructure to inject LLCP PDUs
into the stream of SYMM PDUs. If the user creates a new LLCP PDU
it is either

  - send immediatelly if the peer has permisison to do so, or
  - queued up to be sent when permission has been received.

Just as before, if no PDUs are queued up, a SYMM PDU will be sent
after a timeout has been reached. Sending a PDU also passes send
permission to the peer.

Signed-off-by: Thomas Zimmermann <tdz@users.sourceforge.net>