Преглед изворни кода

qcacld-3.0: Replace typedef hdd_wapi_info_t

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 hdd_wapi_info_t typedef does
not meet any of those criteria, so replace it with a well named
struct.

Change-Id: I3f5d0faf689fac619643c78ca554bba3775bde04
CRs-Fixed: 2094514
Jeff Johnson пре 7 година
родитељ
комит
89798aa132
1 измењених фајлова са 9 додато и 6 уклоњено
  1. 9 6
      core/hdd/inc/wlan_hdd_main.h

+ 9 - 6
core/hdd/inc/wlan_hdd_main.h

@@ -582,14 +582,17 @@ struct _WLAN_BKID_LIST {
 typedef struct _WLAN_BKID_LIST WLAN_BKID_LIST;
 typedef struct _WLAN_BKID_LIST *pWLAN_BKID_LIST;
 
-/* WAPI Information structure definition */
-struct hdd_wapi_info_s {
+/**
+ * struct hdd_wapi_info - WAPI Information structure definition
+ * @nWapiMode: Is WAPI enabled on this adapter?
+ * @fIsWapiSta: Is the STA associated with WAPI?
+ * @wapiAuthMode: WAPI authentication mode used by this adapter
+ */
+struct hdd_wapi_info {
 	uint32_t nWapiMode;
 	bool fIsWapiSta;
-	struct qdf_mac_addr cachedMacAddr;
 	uint8_t wapiAuthMode;
-} __packed;
-typedef struct hdd_wapi_info_s hdd_wapi_info_t;
+};
 #endif /* FEATURE_WLAN_WAPI */
 
 typedef struct hdd_beacon_data {
@@ -1093,7 +1096,7 @@ struct hdd_adapter {
  */
 
 #ifdef FEATURE_WLAN_WAPI
-	hdd_wapi_info_t wapi_info;
+	struct hdd_wapi_info wapi_info;
 #endif
 
 	int8_t rssi;