Commit 81952f38 authored by Shiva Kerdel's avatar Shiva Kerdel Committed by Greg Kroah-Hartman

Staging: ks7010: ks_hostif.*: Use preferred 'u16' kernel type over 'uint16_t'

Fix prefer kernel type 'u16' over 'uint16_t' checks.
Signed-off-by: default avatarShiva Kerdel <shiva@exdev.nl>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 184eb0c5
...@@ -509,8 +509,8 @@ void hostif_mib_get_confirm(struct ks_wlan_private *priv) ...@@ -509,8 +509,8 @@ void hostif_mib_get_confirm(struct ks_wlan_private *priv)
struct net_device *dev = priv->net_dev; struct net_device *dev = priv->net_dev;
uint32_t mib_status; uint32_t mib_status;
uint32_t mib_attribute; uint32_t mib_attribute;
uint16_t mib_val_size; u16 mib_val_size;
uint16_t mib_val_type; u16 mib_val_type;
DPRINTK(3, "\n"); DPRINTK(3, "\n");
...@@ -901,7 +901,7 @@ void hostif_ps_adhoc_set_confirm(struct ks_wlan_private *priv) ...@@ -901,7 +901,7 @@ void hostif_ps_adhoc_set_confirm(struct ks_wlan_private *priv)
static static
void hostif_infrastructure_set_confirm(struct ks_wlan_private *priv) void hostif_infrastructure_set_confirm(struct ks_wlan_private *priv)
{ {
uint16_t result_code; u16 result_code;
DPRINTK(3, "\n"); DPRINTK(3, "\n");
result_code = get_WORD(priv); result_code = get_WORD(priv);
...@@ -1364,7 +1364,7 @@ static ...@@ -1364,7 +1364,7 @@ static
void hostif_ps_adhoc_set_request(struct ks_wlan_private *priv) void hostif_ps_adhoc_set_request(struct ks_wlan_private *priv)
{ {
struct hostif_ps_adhoc_set_request_t *pp; struct hostif_ps_adhoc_set_request_t *pp;
uint16_t capability; u16 capability;
DPRINTK(3, "\n"); DPRINTK(3, "\n");
...@@ -1407,7 +1407,7 @@ static ...@@ -1407,7 +1407,7 @@ static
void hostif_infrastructure_set_request(struct ks_wlan_private *priv) void hostif_infrastructure_set_request(struct ks_wlan_private *priv)
{ {
struct hostif_infrastructure_set_request_t *pp; struct hostif_infrastructure_set_request_t *pp;
uint16_t capability; u16 capability;
DPRINTK(3, "ssid.size=%d\n", priv->reg.ssid.size); DPRINTK(3, "ssid.size=%d\n", priv->reg.ssid.size);
...@@ -1473,7 +1473,7 @@ void hostif_infrastructure_set_request(struct ks_wlan_private *priv) ...@@ -1473,7 +1473,7 @@ void hostif_infrastructure_set_request(struct ks_wlan_private *priv)
static void hostif_infrastructure_set2_request(struct ks_wlan_private *priv) static void hostif_infrastructure_set2_request(struct ks_wlan_private *priv)
{ {
struct hostif_infrastructure_set2_request_t *pp; struct hostif_infrastructure_set2_request_t *pp;
uint16_t capability; u16 capability;
DPRINTK(2, "ssid.size=%d\n", priv->reg.ssid.size); DPRINTK(2, "ssid.size=%d\n", priv->reg.ssid.size);
...@@ -1542,7 +1542,7 @@ static ...@@ -1542,7 +1542,7 @@ static
void hostif_adhoc_set_request(struct ks_wlan_private *priv) void hostif_adhoc_set_request(struct ks_wlan_private *priv)
{ {
struct hostif_adhoc_set_request_t *pp; struct hostif_adhoc_set_request_t *pp;
uint16_t capability; u16 capability;
DPRINTK(3, "\n"); DPRINTK(3, "\n");
...@@ -1587,7 +1587,7 @@ static ...@@ -1587,7 +1587,7 @@ static
void hostif_adhoc_set2_request(struct ks_wlan_private *priv) void hostif_adhoc_set2_request(struct ks_wlan_private *priv)
{ {
struct hostif_adhoc_set2_request_t *pp; struct hostif_adhoc_set2_request_t *pp;
uint16_t capability; u16 capability;
DPRINTK(3, "\n"); DPRINTK(3, "\n");
...@@ -1919,7 +1919,7 @@ struct wpa_suite_t { ...@@ -1919,7 +1919,7 @@ struct wpa_suite_t {
struct rsn_mode_t { struct rsn_mode_t {
uint32_t rsn_mode; uint32_t rsn_mode;
uint16_t rsn_capability; u16 rsn_capability;
} __packed; } __packed;
static static
...@@ -2382,7 +2382,7 @@ static ...@@ -2382,7 +2382,7 @@ static
void hostif_sme_set_pmksa(struct ks_wlan_private *priv) void hostif_sme_set_pmksa(struct ks_wlan_private *priv)
{ {
struct pmk_cache_t { struct pmk_cache_t {
uint16_t size; u16 size;
struct { struct {
u8 bssid[ETH_ALEN]; u8 bssid[ETH_ALEN];
u8 pmkid[IW_PMKID_LEN]; u8 pmkid[IW_PMKID_LEN];
......
...@@ -62,27 +62,27 @@ ...@@ -62,27 +62,27 @@
*/ */
struct hostif_hdr { struct hostif_hdr {
uint16_t size; u16 size;
uint16_t event; u16 event;
} __packed; } __packed;
struct hostif_data_request_t { struct hostif_data_request_t {
struct hostif_hdr header; struct hostif_hdr header;
uint16_t auth_type; u16 auth_type;
#define TYPE_DATA 0x0000 #define TYPE_DATA 0x0000
#define TYPE_AUTH 0x0001 #define TYPE_AUTH 0x0001
uint16_t reserved; u16 reserved;
u8 data[0]; u8 data[0];
} __packed; } __packed;
struct hostif_data_indication_t { struct hostif_data_indication_t {
struct hostif_hdr header; struct hostif_hdr header;
uint16_t auth_type; u16 auth_type;
/* #define TYPE_DATA 0x0000 */ /* #define TYPE_DATA 0x0000 */
#define TYPE_PMK1 0x0001 #define TYPE_PMK1 0x0001
#define TYPE_GMK1 0x0002 #define TYPE_GMK1 0x0002
#define TYPE_GMK2 0x0003 #define TYPE_GMK2 0x0003
uint16_t reserved; u16 reserved;
u8 data[0]; u8 data[0];
} __packed; } __packed;
...@@ -147,8 +147,8 @@ struct hostif_mib_get_request_t { ...@@ -147,8 +147,8 @@ struct hostif_mib_get_request_t {
} __packed; } __packed;
struct hostif_mib_value_t { struct hostif_mib_value_t {
uint16_t size; u16 size;
uint16_t type; u16 type;
#define MIB_VALUE_TYPE_NULL 0 #define MIB_VALUE_TYPE_NULL 0
#define MIB_VALUE_TYPE_INT 1 #define MIB_VALUE_TYPE_INT 1
#define MIB_VALUE_TYPE_BOOL 2 #define MIB_VALUE_TYPE_BOOL 2
...@@ -208,12 +208,12 @@ enum { ...@@ -208,12 +208,12 @@ enum {
struct hostif_power_mngmt_confirm_t { struct hostif_power_mngmt_confirm_t {
struct hostif_hdr header; struct hostif_hdr header;
uint16_t result_code; u16 result_code;
} __packed; } __packed;
struct hostif_start_request_t { struct hostif_start_request_t {
struct hostif_hdr header; struct hostif_hdr header;
uint16_t mode; u16 mode;
#define MODE_PSEUDO_ADHOC 0 #define MODE_PSEUDO_ADHOC 0
#define MODE_INFRASTRUCTURE 1 #define MODE_INFRASTRUCTURE 1
#define MODE_AP 2 /* not used */ #define MODE_AP 2 /* not used */
...@@ -222,7 +222,7 @@ struct hostif_start_request_t { ...@@ -222,7 +222,7 @@ struct hostif_start_request_t {
struct hostif_start_confirm_t { struct hostif_start_confirm_t {
struct hostif_hdr header; struct hostif_hdr header;
uint16_t result_code; u16 result_code;
} __packed; } __packed;
#define SSID_MAX_SIZE 32 #define SSID_MAX_SIZE 32
...@@ -240,7 +240,7 @@ struct rate_set8_t { ...@@ -240,7 +240,7 @@ struct rate_set8_t {
} __packed; } __packed;
struct FhParms_t { struct FhParms_t {
uint16_t dwellTime; u16 dwellTime;
u8 hopSet; u8 hopSet;
u8 hopPattern; u8 hopPattern;
u8 hopIndex; u8 hopIndex;
...@@ -253,12 +253,12 @@ struct DsParms_t { ...@@ -253,12 +253,12 @@ struct DsParms_t {
struct CfParms_t { struct CfParms_t {
u8 count; u8 count;
u8 period; u8 period;
uint16_t maxDuration; u16 maxDuration;
uint16_t durRemaining; u16 durRemaining;
} __packed; } __packed;
struct IbssParms_t { struct IbssParms_t {
uint16_t atimWindow; u16 atimWindow;
} __packed; } __packed;
struct rsn_t { struct rsn_t {
...@@ -283,8 +283,8 @@ struct ap_info_t { ...@@ -283,8 +283,8 @@ struct ap_info_t {
u8 sq; /* +07 */ u8 sq; /* +07 */
u8 noise; /* +08 */ u8 noise; /* +08 */
u8 pad0; /* +09 */ u8 pad0; /* +09 */
uint16_t beacon_period; /* +10 */ u16 beacon_period; /* +10 */
uint16_t capability; /* +12 */ u16 capability; /* +12 */
#define BSS_CAP_ESS BIT(0) #define BSS_CAP_ESS BIT(0)
#define BSS_CAP_IBSS BIT(1) #define BSS_CAP_IBSS BIT(1)
#define BSS_CAP_CF_POLABLE BIT(2) #define BSS_CAP_CF_POLABLE BIT(2)
...@@ -299,7 +299,7 @@ struct ap_info_t { ...@@ -299,7 +299,7 @@ struct ap_info_t {
u8 ch_info; /* +15 */ u8 ch_info; /* +15 */
#define FRAME_TYPE_BEACON 0x80 #define FRAME_TYPE_BEACON 0x80
#define FRAME_TYPE_PROBE_RESP 0x50 #define FRAME_TYPE_PROBE_RESP 0x50
uint16_t body_size; /* +16 */ u16 body_size; /* +16 */
u8 body[1024]; /* +18 */ u8 body[1024]; /* +18 */
/* +1032 */ /* +1032 */
} __packed; } __packed;
...@@ -310,8 +310,8 @@ struct link_ap_info_t { ...@@ -310,8 +310,8 @@ struct link_ap_info_t {
u8 sq; /* +07 */ u8 sq; /* +07 */
u8 noise; /* +08 */ u8 noise; /* +08 */
u8 pad0; /* +09 */ u8 pad0; /* +09 */
uint16_t beacon_period; /* +10 */ u16 beacon_period; /* +10 */
uint16_t capability; /* +12 */ u16 capability; /* +12 */
struct rate_set8_t rate_set; /* +14 */ struct rate_set8_t rate_set; /* +14 */
struct FhParms_t fh_parameter; /* +24 */ struct FhParms_t fh_parameter; /* +24 */
struct DsParms_t ds_parameter; /* +29 */ struct DsParms_t ds_parameter; /* +29 */
...@@ -333,7 +333,7 @@ struct link_ap_info_t { ...@@ -333,7 +333,7 @@ struct link_ap_info_t {
struct hostif_connect_indication_t { struct hostif_connect_indication_t {
struct hostif_hdr header; struct hostif_hdr header;
uint16_t connect_code; u16 connect_code;
#define RESULT_CONNECT 0 #define RESULT_CONNECT 0
#define RESULT_DISCONNECT 1 #define RESULT_DISCONNECT 1
struct link_ap_info_t link_ap_info; struct link_ap_info_t link_ap_info;
...@@ -345,98 +345,98 @@ struct hostif_stop_request_t { ...@@ -345,98 +345,98 @@ struct hostif_stop_request_t {
struct hostif_stop_confirm_t { struct hostif_stop_confirm_t {
struct hostif_hdr header; struct hostif_hdr header;
uint16_t result_code; u16 result_code;
} __packed; } __packed;
struct hostif_ps_adhoc_set_request_t { struct hostif_ps_adhoc_set_request_t {
struct hostif_hdr header; struct hostif_hdr header;
uint16_t phy_type; u16 phy_type;
#define D_11B_ONLY_MODE 0 #define D_11B_ONLY_MODE 0
#define D_11G_ONLY_MODE 1 #define D_11G_ONLY_MODE 1
#define D_11BG_COMPATIBLE_MODE 2 #define D_11BG_COMPATIBLE_MODE 2
#define D_11A_ONLY_MODE 3 #define D_11A_ONLY_MODE 3
uint16_t cts_mode; u16 cts_mode;
#define CTS_MODE_FALSE 0 #define CTS_MODE_FALSE 0
#define CTS_MODE_TRUE 1 #define CTS_MODE_TRUE 1
uint16_t channel; u16 channel;
struct rate_set16_t rate_set; struct rate_set16_t rate_set;
uint16_t capability; /* bit5:preamble bit6:pbcc pbcc not supported always 0 u16 capability; /* bit5:preamble bit6:pbcc pbcc not supported always 0
* bit10:ShortSlotTime bit13:DSSS-OFDM DSSS-OFDM not supported always 0 */ * bit10:ShortSlotTime bit13:DSSS-OFDM DSSS-OFDM not supported always 0 */
uint16_t scan_type; u16 scan_type;
} __packed; } __packed;
struct hostif_ps_adhoc_set_confirm_t { struct hostif_ps_adhoc_set_confirm_t {
struct hostif_hdr header; struct hostif_hdr header;
uint16_t result_code; u16 result_code;
} __packed; } __packed;
struct hostif_infrastructure_set_request_t { struct hostif_infrastructure_set_request_t {
struct hostif_hdr header; struct hostif_hdr header;
uint16_t phy_type; u16 phy_type;
uint16_t cts_mode; u16 cts_mode;
struct rate_set16_t rate_set; struct rate_set16_t rate_set;
struct ssid_t ssid; struct ssid_t ssid;
uint16_t capability; /* bit5:preamble bit6:pbcc pbcc not supported always 0 u16 capability; /* bit5:preamble bit6:pbcc pbcc not supported always 0
* bit10:ShortSlotTime bit13:DSSS-OFDM DSSS-OFDM not supported always 0 */ * bit10:ShortSlotTime bit13:DSSS-OFDM DSSS-OFDM not supported always 0 */
uint16_t beacon_lost_count; u16 beacon_lost_count;
uint16_t auth_type; u16 auth_type;
#define AUTH_TYPE_OPEN_SYSTEM 0 #define AUTH_TYPE_OPEN_SYSTEM 0
#define AUTH_TYPE_SHARED_KEY 1 #define AUTH_TYPE_SHARED_KEY 1
struct channel_list_t channel_list; struct channel_list_t channel_list;
uint16_t scan_type; u16 scan_type;
} __packed; } __packed;
struct hostif_infrastructure_set2_request_t { struct hostif_infrastructure_set2_request_t {
struct hostif_hdr header; struct hostif_hdr header;
uint16_t phy_type; u16 phy_type;
uint16_t cts_mode; u16 cts_mode;
struct rate_set16_t rate_set; struct rate_set16_t rate_set;
struct ssid_t ssid; struct ssid_t ssid;
uint16_t capability; /* bit5:preamble bit6:pbcc pbcc not supported always 0 u16 capability; /* bit5:preamble bit6:pbcc pbcc not supported always 0
* bit10:ShortSlotTime bit13:DSSS-OFDM DSSS-OFDM not supported always 0 */ * bit10:ShortSlotTime bit13:DSSS-OFDM DSSS-OFDM not supported always 0 */
uint16_t beacon_lost_count; u16 beacon_lost_count;
uint16_t auth_type; u16 auth_type;
#define AUTH_TYPE_OPEN_SYSTEM 0 #define AUTH_TYPE_OPEN_SYSTEM 0
#define AUTH_TYPE_SHARED_KEY 1 #define AUTH_TYPE_SHARED_KEY 1
struct channel_list_t channel_list; struct channel_list_t channel_list;
uint16_t scan_type; u16 scan_type;
u8 bssid[ETH_ALEN]; u8 bssid[ETH_ALEN];
} __packed; } __packed;
struct hostif_infrastructure_set_confirm_t { struct hostif_infrastructure_set_confirm_t {
struct hostif_hdr header; struct hostif_hdr header;
uint16_t result_code; u16 result_code;
} __packed; } __packed;
struct hostif_adhoc_set_request_t { struct hostif_adhoc_set_request_t {
struct hostif_hdr header; struct hostif_hdr header;
uint16_t phy_type; u16 phy_type;
uint16_t cts_mode; u16 cts_mode;
uint16_t channel; u16 channel;
struct rate_set16_t rate_set; struct rate_set16_t rate_set;
struct ssid_t ssid; struct ssid_t ssid;
uint16_t capability; /* bit5:preamble bit6:pbcc pbcc not supported always 0 u16 capability; /* bit5:preamble bit6:pbcc pbcc not supported always 0
* bit10:ShortSlotTime bit13:DSSS-OFDM DSSS-OFDM not supported always 0 */ * bit10:ShortSlotTime bit13:DSSS-OFDM DSSS-OFDM not supported always 0 */
uint16_t scan_type; u16 scan_type;
} __packed; } __packed;
struct hostif_adhoc_set2_request_t { struct hostif_adhoc_set2_request_t {
struct hostif_hdr header; struct hostif_hdr header;
uint16_t phy_type; u16 phy_type;
uint16_t cts_mode; u16 cts_mode;
uint16_t reserved; u16 reserved;
struct rate_set16_t rate_set; struct rate_set16_t rate_set;
struct ssid_t ssid; struct ssid_t ssid;
uint16_t capability; /* bit5:preamble bit6:pbcc pbcc not supported always 0 u16 capability; /* bit5:preamble bit6:pbcc pbcc not supported always 0
* bit10:ShortSlotTime bit13:DSSS-OFDM DSSS-OFDM not supported always 0 */ * bit10:ShortSlotTime bit13:DSSS-OFDM DSSS-OFDM not supported always 0 */
uint16_t scan_type; u16 scan_type;
struct channel_list_t channel_list; struct channel_list_t channel_list;
u8 bssid[ETH_ALEN]; u8 bssid[ETH_ALEN];
} __packed; } __packed;
struct hostif_adhoc_set_confirm_t { struct hostif_adhoc_set_confirm_t {
struct hostif_hdr header; struct hostif_hdr header;
uint16_t result_code; u16 result_code;
} __packed; } __packed;
struct last_associate_t { struct last_associate_t {
...@@ -449,10 +449,10 @@ struct association_request_t { ...@@ -449,10 +449,10 @@ struct association_request_t {
#define FRAME_TYPE_ASSOC_REQ 0x00 #define FRAME_TYPE_ASSOC_REQ 0x00
#define FRAME_TYPE_REASSOC_REQ 0x20 #define FRAME_TYPE_REASSOC_REQ 0x20
u8 pad; u8 pad;
uint16_t capability; u16 capability;
uint16_t listen_interval; u16 listen_interval;
u8 ap_address[6]; u8 ap_address[6];
uint16_t reqIEs_size; u16 reqIEs_size;
} __packed; } __packed;
struct association_response_t { struct association_response_t {
...@@ -460,10 +460,10 @@ struct association_response_t { ...@@ -460,10 +460,10 @@ struct association_response_t {
#define FRAME_TYPE_ASSOC_RESP 0x10 #define FRAME_TYPE_ASSOC_RESP 0x10
#define FRAME_TYPE_REASSOC_RESP 0x30 #define FRAME_TYPE_REASSOC_RESP 0x30
u8 pad; u8 pad;
uint16_t capability; u16 capability;
uint16_t status; u16 status;
uint16_t association_id; u16 association_id;
uint16_t respIEs_size; u16 respIEs_size;
} __packed; } __packed;
struct hostif_associate_indication_t { struct hostif_associate_indication_t {
...@@ -488,16 +488,16 @@ struct hostif_bss_scan_request_t { ...@@ -488,16 +488,16 @@ struct hostif_bss_scan_request_t {
struct hostif_bss_scan_confirm_t { struct hostif_bss_scan_confirm_t {
struct hostif_hdr header; struct hostif_hdr header;
uint16_t result_code; u16 result_code;
uint16_t reserved; u16 reserved;
} __packed; } __packed;
struct hostif_phy_information_request_t { struct hostif_phy_information_request_t {
struct hostif_hdr header; struct hostif_hdr header;
uint16_t type; u16 type;
#define NORMAL_TYPE 0 #define NORMAL_TYPE 0
#define TIME_TYPE 1 #define TIME_TYPE 1
uint16_t time; /* unit 100ms */ u16 time; /* unit 100ms */
} __packed; } __packed;
struct hostif_phy_information_confirm_t { struct hostif_phy_information_confirm_t {
...@@ -521,18 +521,18 @@ struct hostif_sleep_request_t { ...@@ -521,18 +521,18 @@ struct hostif_sleep_request_t {
struct hostif_sleep_confirm_t { struct hostif_sleep_confirm_t {
struct hostif_hdr header; struct hostif_hdr header;
uint16_t result_code; u16 result_code;
} __packed; } __packed;
struct hostif_mic_failure_request_t { struct hostif_mic_failure_request_t {
struct hostif_hdr header; struct hostif_hdr header;
uint16_t failure_count; u16 failure_count;
uint16_t timer; u16 timer;
} __packed; } __packed;
struct hostif_mic_failure_confirm_t { struct hostif_mic_failure_confirm_t {
struct hostif_hdr header; struct hostif_hdr header;
uint16_t result_code; u16 result_code;
} __packed; } __packed;
#define BASIC_RATE 0x80 #define BASIC_RATE 0x80
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment