OSDN Git Service

Remove position dependent lookup tables in AT command parser
authorAndre Eisenbach <eisenbach@google.com>
Sat, 23 Jul 2016 06:15:11 +0000 (23:15 -0700)
committerAndre Eisenbach <eisenbach@google.com>
Mon, 31 Oct 2016 17:46:51 +0000 (17:46 +0000)
commitb7fa415540ef53bfc07fac7f0676a2ce70f9d52e
tree385012ef7aded0bede1b139bf94447dac401a583
parent4584c3ae8a2ed5c2bd7f630b1cf9156f05c4f70f
Remove position dependent lookup tables in AT command parser

The various position dependent lookup tables in the AT command parser
were out of sync, causing invalid responses to the AT+CBPS command for
example.

This patch gets rid of positionally dependent enums for simple lookup
tables that correlate all the values for easier, less error prone
maintenance of the related tables.

This re-instates a previously reverted patch after fixing incorrect
field order in tBTA_AG_INDICATOR_MAP.

Change-Id: I7f8a052e78706c8c72c5102b38cfe9ce200ae0d9
Fixes: 29978908
(cherry picked from commit b5cc24fcdaeb32f1f44bc39b65f6b0c035e47d5f)
bta/ag/bta_ag_at.cc
bta/ag/bta_ag_at.h
bta/ag/bta_ag_cmd.cc
bta/ag/bta_ag_int.h