qcacld-3.0: Replace typedef roaming_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 roaming_info_t typedef does not
meet any of those criteria, so replace it with a well named struct. In
the process remove the unused roamingEvent that it contains.

Change-Id: I0bf974fcbe0a591973610eef27acc3da07071a57
CRs-Fixed: 2092842
This commit is contained in:
Jeff Johnson 2017-08-14 15:29:42 -07:00 • committed by snandini
commit 41a6496ffe

View file

@ -432,17 +432,25 @@ enum hdd_roam_state {
HDD_ROAM_STATE_SETTING_KEY,
};
typedef struct roaming_info_s {
/**
* struct hdd_roaming_info - HDD Internal Roaming Information
* @roamingState: Current state of roaming
* @bssid: BSSID to which we are connected
* @peerMac: Peer MAC address for IBSS connection
* @roamId: Unique identifier for a roaming instance
* @roamStatus: Current roam command status
* @deferKeyComplete: Should key complete be deferred?
*
*/
struct hdd_roaming_info {
enum hdd_roam_state roamingState;
qdf_event_t roamingEvent;
tSirMacAddr bssid;
tSirMacAddr peerMac;
uint32_t roamId;
eRoamCmdStatus roamStatus;
bool deferKeyComplete;
} roaming_info_t;
};
#ifdef FEATURE_WLAN_WAPI
/* Define WAPI macros for Length, BKID count etc*/
@ -672,7 +680,7 @@ struct hdd_station_ctx {
/* Connection information*/
struct hdd_connection_info conn_info;
roaming_info_t roam_info;
struct hdd_roaming_info roam_info;
int ft_carrier_on;