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
2017-08-14 14:09:28 -07:00
提交者 snandini
父節點 745880cfba
當前提交 e4bad25921
共有 2 個檔案被更改,包括 4 行新增4 行删除

查看文件

@@ -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;

查看文件

@@ -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;