Bug 946311 - 1/6: don't mix cid with the index to data_context array.

Signed-off-by: You-Sheng Yang (楊有勝) <vicamo@gmail.com>
Bug 946311 - 2/6: fix +CGDCONT/+CGACT

Three things to fix here:

1. From 3GPP TS 27.007 subclause 10.1.10 "PDP context activate or
deactivate +CGACT", "The read command returns the current activation
states for all the defined PDP contexts." but now we return only
active ones.

2. From 3GPP TS 27.007 subclause 10.1.1 "Define PDP context
+CGDCONT", "(about <PDP_addr>) The read form of the command will
continue to return the null string even if an address has been
allocated during the PDP startup procedure." So we should return the
given <PDP_addr> in the response of the read form.

3. Return correct supported cid range <1-MAX_DATA_CONTEXTS> in the
test form of +CGDCONT.

Signed-off-by: You-Sheng Yang (楊有勝) <vicamo@gmail.com>
Bug 946311 - 3/6: intantiate additional rmnet nics.

Create <MAX_NET_CLIENTS> additional NIC instances when radio is
enabled. These NICs will have the name "rmnet<N>".

Signed-off-by: You-Sheng Yang (楊有勝) <vicamo@gmail.com>
Bug 946311 - 4/6: support link down for SMC91C111

Original SMC91C111 doesn't support link up/down reporting (EPHSR).
This patch implement it and one may call |do_set_link| to change the
link status.

Signed-off-by: You-Sheng Yang (楊有勝) <vicamo@gmail.com>
Bug 946311 - 5/6: link up/down in AT+CGACT handler.

Signed-off-by: You-Sheng Yang (楊有勝) <vicamo@gmail.com>
Bug 946311 - 6/6: implement AT+CGCONTRDP.

Signed-off-by: You-Sheng Yang (楊有勝) <vicamo@gmail.com>
Bug 970212 - B2G Emulator: Enhance GSM/UMTS Signal Strength on Emulator. r=Vicamo.

Trigger amodem_unsol_buffered to send RIL_UNSOL_SIGNAL_STRENGTH after
"gsm signal" command to update signal strength on status bar promptly.
Merge pull request #53 from vicamo/bugzilla/946311/emulator-rmnet

Bugzilla/946311/emulator rmnet
Merge pull request #56 from chenghuk/master

Bug 970212 - B2G Emulator: Enhance GSM/UMTS Signal Strength on Emulator.
Revert "Merge pull request #53 from vicamo/bugzilla/946311/emulator-rmnet"

This reverts commit b345aaae0393057d6d3e11f3ce75a18300bf3fe4, reversing
changes made to 87aa8679560ce09f6445621d6f370d9de722cdba.
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 #57 from vicamo/bugzilla/860696/bt-test-commands

Bug 860696: add bt test commands. r=echou
Bug 979134: GSM cell ID mask should be 0xFFFFFFF.