Kaynağa Gözat

qcacld-3.0: Replace typedef tSirChannelList

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 tSirChannelList 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: Ib50b8d82b7ac05a1a32496bb80917e22b4b8ae95
CRs-Fixed: 2394248
Jeff Johnson 6 yıl önce
ebeveyn
işleme
39f94e38aa

+ 2 - 2
core/mac/inc/sir_api.h

@@ -720,10 +720,10 @@ struct start_bss_rsp {
 	tSirBssDescription bssDescription;      /* Peer BSS description */
 };
 
-typedef struct sSirChannelList {
+struct report_channel_list {
 	uint8_t numChannels;
 	uint8_t channelNumber[SIR_ESE_MAX_MEAS_IE_REQS];
-} tSirChannelList, *tpSirChannelList;
+};
 
 #ifdef FEATURE_OEM_DATA_SUPPORT
 struct oem_data_req {

+ 2 - 2
core/mac/src/pe/include/rrm_global.h

@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2011-2012, 2014-2018 The Linux Foundation. All rights reserved.
+ * Copyright (c) 2011-2012, 2014-2019 The Linux Foundation. All rights reserved.
  *
  * Permission to use, copy, modify, and/or distribute this software for
  * any purpose with or without fee is hereby granted, provided that the
@@ -58,7 +58,7 @@ typedef struct sSirBeaconReportReqInd {
 	uint8_t fMeasurementtype[SIR_ESE_MAX_MEAS_IE_REQS];
 	tAniSSID ssId;          /* May be wilcard. */
 	uint16_t uDialogToken;
-	tSirChannelList channelList;    /* From AP channel report. */
+	struct report_channel_list channelList;    /* From AP channel report. */
 	tRrmMsgReqSource msgSource;
 } tSirBeaconReportReqInd, *tpSirBeaconReportReqInd;