Browse Source

qcacld-3.0: Replace typedef tSirWifiRadio

The Linux Coding Style enumerates a few special cases where typedefs
are useful, but stresses "NEVER EVER use a typedef unless you can
clearly match one of those rules." The tSirWifiRadio typedef does not
meet any of those criteria, so replace it with uint32_t.

Change-Id: I5f733f4a4aa07803c3719108169e6aeb98293c5e
CRs-Fixed: 2427175
Jeff Johnson 6 years ago
parent
commit
48b1eb05ef
1 changed files with 1 additions and 3 deletions
  1. 1 3
      core/mac/inc/sir_api.h

+ 1 - 3
core/mac/inc/sir_api.h

@@ -3479,8 +3479,6 @@ typedef struct {
 
 /******************************LINK LAYER Statistics**********************/
 
-typedef int tSirWifiRadio;
-
 typedef struct {
 	uint32_t reqId;
 	uint8_t staId;
@@ -3629,7 +3627,7 @@ struct wifi_channel_stats {
  * @channels: per-channel statistics
  */
 struct wifi_radio_stats {
-	tSirWifiRadio radio;
+	uint32_t radio;
 	uint32_t on_time;
 	uint32_t tx_time;
 	uint32_t rx_time;