OSDN Git Service

Add tx time per level stats in radio_stat
authorSubhani Shaik <subhanis@codeaurora.org>
Thu, 10 Mar 2016 16:30:43 +0000 (08:30 -0800)
committerRoshan Pius <rpius@google.com>
Thu, 17 Mar 2016 20:38:25 +0000 (20:38 +0000)
Modify the existing radio_stat structure to add time spent in each
tranmission power level.

BUG: 27227497
Change-Id: Ifba9f22bc7a404161ae9124c787854ed3431cb8d
cherry-picked from:
https://partner-android-review.googlesource.com/#/c/543388

include/hardware_legacy/link_layer_stats.h

index c6202ad..281e6e5 100644 (file)
@@ -84,18 +84,21 @@ typedef struct {
 \r
 /* radio statistics */\r
 typedef struct {\r
-   wifi_radio radio;               // wifi radio (if multiple radio supported)\r
-   u32 on_time;                    // msecs the radio is awake (32 bits number accruing over time)\r
-   u32 tx_time;                    // msecs the radio is transmitting (32 bits number accruing over time)\r
-   u32 rx_time;                    // msecs the radio is in active receive (32 bits number accruing over time)\r
-   u32 on_time_scan;               // msecs the radio is awake due to all scan (32 bits number accruing over time)\r
-   u32 on_time_nbd;                // msecs the radio is awake due to NAN (32 bits number accruing over time)\r
-   u32 on_time_gscan;              // msecs the radio is awake due to G?scan (32 bits number accruing over time)\r
-   u32 on_time_roam_scan;          // msecs the radio is awake due to roam?scan (32 bits number accruing over time)\r
-   u32 on_time_pno_scan;           // msecs the radio is awake due to PNO scan (32 bits number accruing over time)\r
-   u32 on_time_hs20;               // msecs the radio is awake due to HS2.0 scans and GAS exchange (32 bits number accruing over time)\r
-   u32 num_channels;               // number of channels\r
-   wifi_channel_stat channels[];   // channel statistics\r
+   wifi_radio radio;                      // wifi radio (if multiple radio supported)\r
+   u32 on_time;                           // msecs the radio is awake (32 bits number accruing over time)\r
+   u32 tx_time;                           // msecs the radio is transmitting (32 bits number accruing over time)\r
+   u32 num_tx_levels;                     // number of radio transmit power levels\r
+   u32 *tx_time_per_levels;               // pointer to an array of radio transmit per power levels in\r
+                                          // msecs accured over time\r
+   u32 rx_time;                           // msecs the radio is in active receive (32 bits number accruing over time)\r
+   u32 on_time_scan;                      // msecs the radio is awake due to all scan (32 bits number accruing over time)\r
+   u32 on_time_nbd;                       // msecs the radio is awake due to NAN (32 bits number accruing over time)\r
+   u32 on_time_gscan;                     // msecs the radio is awake due to G?scan (32 bits number accruing over time)\r
+   u32 on_time_roam_scan;                 // msecs the radio is awake due to roam?scan (32 bits number accruing over time)\r
+   u32 on_time_pno_scan;                  // msecs the radio is awake due to PNO scan (32 bits number accruing over time)\r
+   u32 on_time_hs20;                      // msecs the radio is awake due to HS2.0 scans and GAS exchange (32 bits number accruing over time)\r
+   u32 num_channels;                      // number of channels\r
+   wifi_channel_stat channels[];          // channel statistics\r
 } wifi_radio_stat;\r
 \r
 /**\r