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
This commit is contained in:
Jeff Johnson
2017-08-14 14:09:28 -07:00
committed by snandini
parent 745880cfba
commit e4bad25921
2 changed files with 4 additions and 4 deletions

View File

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

View File

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