Prechádzať zdrojové kódy

qcacld-3.0: Remove tSirSmeProbeReq

The current version of the driver does not used tSirSmeProbeReq,
except for one reference in LIM which is actually referencing the
wrong typedef, so fix the bad reference and remove the obsolete
typedef.

Change-Id: I314df685eb5da110021da2aafb6eab46e2f07d42
CRs-Fixed: 2370030
Jeff Johnson 6 rokov pred
rodič
commit
f0ef8b8018

+ 0 - 9
core/mac/inc/sir_api.h

@@ -1130,15 +1130,6 @@ typedef struct sSirSmeJoinRsp {
 	uint8_t frames[1];
 } tSirSmeJoinRsp, *tpSirSmeJoinRsp;
 
-/* / probereq from peer, when wsc is enabled */
-typedef struct sSirSmeProbereq {
-	uint16_t messageType;
-	uint16_t length;
-	uint8_t sessionId;
-	struct qdf_mac_addr peer_macaddr;
-	uint16_t devicePasswdId;
-} tSirSmeProbeReq, *tpSirSmeProbeReq;
-
 typedef struct sSirSmeChanInfo {
 	uint8_t chan_id;
 	uint32_t mhz;

+ 1 - 1
core/mac/src/pe/lim/lim_process_probe_req_frame.c

@@ -640,7 +640,7 @@ lim_send_sme_probe_req_ind(struct mac_context *mac,
 	msgQ.bodyptr = pSirSmeProbeReqInd;
 
 	pSirSmeProbeReqInd->messageType = eWNI_SME_WPS_PBC_PROBE_REQ_IND;
-	pSirSmeProbeReqInd->length = sizeof(tSirSmeProbeReq);
+	pSirSmeProbeReqInd->length = sizeof(*pSirSmeProbeReqInd);
 	pSirSmeProbeReqInd->sessionId = pe_session->smeSessionId;
 
 	qdf_mem_copy(pSirSmeProbeReqInd->bssid.bytes, pe_session->bssId,