qcacld-3.0: Replace typedef tSirMacESETSRSIE
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 tSirMacESETSRSIE typedef does not meet any of those criteria, so replace it 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: I87fe78a27f14557c9d19a4c9a9f2c7814aef9705 CRs-Fixed: 2394260
Этот коммит содержится в:

коммит произвёл
nshrivas

родитель
1bb07ac487
Коммит
8a5d0ab499
@@ -847,10 +847,12 @@ struct ese_bcn_report_rsp {
|
||||
|
||||
#define TSRS_11AG_RATE_6MBPS 0xC
|
||||
#define TSRS_11B_RATE_5_5MBPS 0xB
|
||||
typedef struct sSirMacESETSRSIE {
|
||||
|
||||
struct ese_tsrs_ie {
|
||||
uint8_t tsid;
|
||||
uint8_t rates[8];
|
||||
} tSirMacESETSRSIE;
|
||||
};
|
||||
|
||||
typedef struct sSirMacESETSMIE {
|
||||
uint8_t tsid;
|
||||
uint8_t state;
|
||||
@@ -1575,7 +1577,7 @@ typedef struct sSirAddtsReqInfo {
|
||||
tSirTclasInfo tclasInfo[SIR_MAC_TCLASIE_MAXNUM];
|
||||
uint8_t tclasProc;
|
||||
#if defined(FEATURE_WLAN_ESE)
|
||||
tSirMacESETSRSIE tsrsIE;
|
||||
struct ese_tsrs_ie tsrsIE;
|
||||
uint8_t tsrsPresent:1;
|
||||
#endif
|
||||
uint8_t wmeTspecPresent:1;
|
||||
|
@@ -891,7 +891,7 @@ QDF_STATUS populate_dot11f_ese_cckm_opaque(struct mac_context *mac,
|
||||
tDot11fIEESECckmOpaque *pDot11f);
|
||||
|
||||
void populate_dot11_tsrsie(struct mac_context *mac,
|
||||
tSirMacESETSRSIE *pOld,
|
||||
struct ese_tsrs_ie *pOld,
|
||||
tDot11fIEESETrafStrmRateSet *pDot11f,
|
||||
uint8_t rate_length);
|
||||
void populate_dot11f_re_assoc_tspec(struct mac_context *mac,
|
||||
|
@@ -267,7 +267,7 @@ void lim_send_reassoc_req_with_ft_ies_mgmt_frame(struct mac_context *mac_ctx,
|
||||
|
||||
if (pe_session->pLimReAssocReq->eseTspecInfo.
|
||||
numTspecs) {
|
||||
tSirMacESETSRSIE tsrs_ie;
|
||||
struct ese_tsrs_ie tsrs_ie;
|
||||
|
||||
tsrs_ie.tsid = 0;
|
||||
tsrs_ie.rates[0] = rate;
|
||||
|
@@ -4745,7 +4745,7 @@ QDF_STATUS populate_dot11f_ese_cckm_opaque(struct mac_context *mac,
|
||||
} /* End populate_dot11f_ese_cckm_opaque. */
|
||||
|
||||
void populate_dot11_tsrsie(struct mac_context *mac,
|
||||
tSirMacESETSRSIE *pOld,
|
||||
struct ese_tsrs_ie *pOld,
|
||||
tDot11fIEESETrafStrmRateSet *pDot11f,
|
||||
uint8_t rate_length)
|
||||
{
|
||||
|
Ссылка в новой задаче
Block a user