瀏覽代碼

qcacld-3.0: Replace typedef connection_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 connection_info_t typedef does
not meet any of those criteria, so replace it with a well named
struct.

Change-Id: I414f8d1949807f1bc0cda72971fab5696d1d1860
CRs-Fixed: 2092786
Jeff Johnson 7 年之前
父節點
當前提交
e4bad25921
共有 2 個文件被更改,包括 4 次插入4 次删除
  1. 3 3
      core/hdd/inc/wlan_hdd_assoc.h
  2. 1 1
      core/hdd/inc/wlan_hdd_main.h

+ 3 - 3
core/hdd/inc/wlan_hdd_assoc.h

@@ -145,7 +145,7 @@ struct hdd_conn_flag {
 #define ANTENNA_SEL_INFO_RSVD			0x80
 
 /**
- * typedef connection_info_t - structure to store connection information
+ * struct hdd_connection_info - structure to store connection information
  * @connState: connection state of the NIC
  * @bssId: BSSID
  * @SSID: SSID Info
@@ -175,7 +175,7 @@ struct hdd_conn_flag {
  * @assoc_status_code: holds assoc fail reason
  * @congestion: holds congestion percentage
  */
-typedef struct connection_info_s {
+struct hdd_connection_info {
 	eConnectionState connState;
 	struct qdf_mac_addr bssId;
 	tCsrSSIDInfo SSID;
@@ -206,7 +206,7 @@ typedef struct connection_info_s {
 	int8_t signal;
 	int32_t assoc_status_code;
 	uint32_t cca;
-} connection_info_t;
+};
 
 /* Forward declarations */
 typedef struct hdd_adapter hdd_adapter_t;

+ 1 - 1
core/hdd/inc/wlan_hdd_main.h

@@ -670,7 +670,7 @@ struct hdd_station_ctx {
 #endif
 
 	/* Connection information*/
-	connection_info_t conn_info;
+	struct hdd_connection_info conn_info;
 
 	roaming_info_t roam_info;