Prechádzať zdrojové kódy

qcacld-3.0: Replace typedef tSirEseBcnReportBssInfo

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 tSirEseBcnReportBssInfo typedef
does not meet any of those criteria, so replace it (and the "tp"
variant) with a reference to the underlying struct.

Further note the Linux Coding Style frowns upon mixed-case names
and so-called Hungarian notation, so in conjunction rename the
underlying struct to be in compliance.

Change-Id: I241243a7e3313870cf08731775eb5bbf21f2cc62
CRs-Fixed: 2394251
Jeff Johnson 6 rokov pred
rodič
commit
30d3a5d018
1 zmenil súbory, kde vykonal 4 pridanie a 3 odobranie
  1. 4 3
      core/mac/inc/sir_api.h

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

@@ -831,17 +831,18 @@ typedef struct sAniGetTsmStatsRsp {
 	void *tsmStatsReq;      /* tsm stats request backup */
 } tAniGetTsmStatsRsp, *tpAniGetTsmStatsRsp;
 
-typedef struct sSirEseBcnReportBssInfo {
+struct ese_bcn_report_bss_info {
 	tBcnReportFields bcnReportFields;
 	uint8_t ieLen;
 	uint8_t *pBuf;
-} tSirEseBcnReportBssInfo, *tpSirEseBcnReportBssInfo;
+};
 
 typedef struct sSirEseBcnReportRsp {
 	uint16_t measurementToken;
 	uint8_t flag;        /* Flag to report measurement done and more data */
 	uint8_t numBss;
-	tSirEseBcnReportBssInfo bcnRepBssInfo[SIR_BCN_REPORT_MAX_BSS_DESC];
+	struct ese_bcn_report_bss_info
+				bcnRepBssInfo[SIR_BCN_REPORT_MAX_BSS_DESC];
 } tSirEseBcnReportRsp, *tpSirEseBcnReportRsp;
 
 #define TSRS_11AG_RATE_6MBPS   0xC