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>
Fri, 4 Nov 2016 18:51:03 +0000 (18:51 +0000)
commit83a376cdc46388cd9af47eb8d8a810f7b194b8aa
tree0fbedfbc255875b3de2a563f46c5bc8503815a9a
parentd14ee8b81854452b713b0c04da5c2194411e5238
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
bta/ag/bta_ag_at.c
bta/ag/bta_ag_at.h
bta/ag/bta_ag_cmd.c
bta/ag/bta_ag_int.h