瀏覽代碼

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 年之前
父節點
當前提交
f0ef8b8018
共有 2 個文件被更改,包括 1 次插入10 次删除
  1. 0 9
      core/mac/inc/sir_api.h
  2. 1 1
      core/mac/src/pe/lim/lim_process_probe_req_frame.c

+ 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,