OSDN Git Service

Add max tx levels to radio_stats
authorRoshan Pius <rpius@google.com>
Tue, 22 Mar 2016 16:18:37 +0000 (09:18 -0700)
committerRoshan Pius <rpius@google.com>
Tue, 22 Mar 2016 17:04:29 +0000 (10:04 -0700)
Add a max tx level which the framework uses to limit the array and is
needed to guard against unitialized value in |num_tx_levels|.

BUG: 27227497
Change-Id: I2438bc1536c65a2c6230bfd6e1267532d9653c8b

include/hardware_legacy/link_layer_stats.h

index 281e6e5..a75804d 100644 (file)
@@ -82,6 +82,9 @@ typedef struct {
    u32 cca_busy_time;          // msecs the CCA register is busy (32 bits number accruing over time)\r
 } wifi_channel_stat;\r
 \r
+// Max number of tx power levels. The actual number vary per device and is specified by |num_tx_levels|\r
+#define RADIO_STAT_MAX_TX_LEVELS 64\r
+\r
 /* radio statistics */\r
 typedef struct {\r
    wifi_radio radio;                      // wifi radio (if multiple radio supported)\r