浏览代码

qcacld-3.0: Clean up struct sSirKeys

Currently struct sSirKeys has at least 3 unused members: keyDirection,
keyRsc, and paeRole. Since they are unused, remove them. Also remove
the tpSirKeys typedef since it is also unused.

Change-Id: Ie237aecb2c8ce3f4675580f718882106828f02fa
CRs-Fixed: 3429912
Jeff Johnson 2 年之前
父节点
当前提交
e112b7bd36
共有 1 个文件被更改,包括 2 次插入6 次删除
  1. 2 6
      core/mac/inc/ani_system_defs.h

+ 2 - 6
core/mac/inc/ani_system_defs.h

@@ -1,6 +1,6 @@
 /*
 /*
  * Copyright (c) 2011-2019, 2021 The Linux Foundation. All rights reserved.
  * Copyright (c) 2011-2019, 2021 The Linux Foundation. All rights reserved.
- * Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved.
+ * Copyright (c) 2022-2023 Qualcomm Innovation Center, Inc. All rights reserved.
  *
  *
  * Permission to use, copy, modify, and/or distribute this software for
  * Permission to use, copy, modify, and/or distribute this software for
  * any purpose with or without fee is hereby granted, provided that the
  * any purpose with or without fee is hereby granted, provided that the
@@ -153,13 +153,9 @@ typedef struct sSirAddie {
 typedef struct sSirKeys {
 typedef struct sSirKeys {
 	uint8_t keyId;
 	uint8_t keyId;
 	uint8_t unicast;        /* 0 for multicast */
 	uint8_t unicast;        /* 0 for multicast */
-	tAniKeyDirection keyDirection;
-	uint8_t keyRsc[WLAN_CRYPTO_RSC_SIZE];   /* Usage is unknown */
-	uint8_t paeRole;        /* =1 for authenticator, */
-	/* =0 for supplicant */
 	uint16_t keyLength;
 	uint16_t keyLength;
 	uint8_t key[SIR_MAC_MAX_KEY_LENGTH];
 	uint8_t key[SIR_MAC_MAX_KEY_LENGTH];
-} tSirKeys, *tpSirKeys;
+} tSirKeys;
 
 
 /* / Definition for Keying material */
 /* / Definition for Keying material */
 typedef struct sSirKeyMaterial {
 typedef struct sSirKeyMaterial {