staging: rtl8712: fixed coding style issues
Fixed some style and format issues with headers. Signed-off-by: Javier M. Mellid <jmunhoz@igalia.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
parent
790c3093c0
commit
0593758e4b
20 changed files with 306 additions and 306 deletions
|
@ -76,7 +76,7 @@ struct ieee_param {
|
|||
u8 reserved[32];
|
||||
u8 data[0];
|
||||
} wpa_ie;
|
||||
struct{
|
||||
struct {
|
||||
int command;
|
||||
int reason_code;
|
||||
} mlme;
|
||||
|
@ -461,7 +461,7 @@ struct ieee80211_stats {
|
|||
uint rx_message_in_bad_msg_fragments;
|
||||
};
|
||||
|
||||
struct ieee80211_softmac_stats{
|
||||
struct ieee80211_softmac_stats {
|
||||
uint rx_ass_ok;
|
||||
uint rx_ass_err;
|
||||
uint rx_probe_rq;
|
||||
|
@ -754,15 +754,17 @@ struct registry_priv;
|
|||
u8 *r8712_set_ie(u8 *pbuf, sint index, uint len, u8 *source, uint *frlen);
|
||||
u8 *r8712_get_ie(u8*pbuf, sint index, sint *len, sint limit);
|
||||
unsigned char *r8712_get_wpa_ie(unsigned char *pie, int *rsn_ie_len, int limit);
|
||||
unsigned char *r8712_get_wpa2_ie(unsigned char *pie, int *rsn_ie_len, int limit);
|
||||
unsigned char *r8712_get_wpa2_ie(unsigned char *pie, int *rsn_ie_len,
|
||||
int limit);
|
||||
int r8712_parse_wpa_ie(u8 *wpa_ie, int wpa_ie_len, int *group_cipher,
|
||||
int *pairwise_cipher);
|
||||
int r8712_parse_wpa2_ie(u8 *wpa_ie, int wpa_ie_len, int *group_cipher,
|
||||
int *pairwise_cipher);
|
||||
int r8712_get_sec_ie(u8 *in_ie, uint in_len, u8 *rsn_ie, u16 *rsn_len, u8 *wpa_ie,
|
||||
u16 *wpa_len);
|
||||
int r8712_get_sec_ie(u8 *in_ie, uint in_len, u8 *rsn_ie, u16 *rsn_len,
|
||||
u8 *wpa_ie, u16 *wpa_len);
|
||||
int r8712_get_wps_ie(u8 *in_ie, uint in_len, u8 *wps_ie, uint *wps_ielen);
|
||||
int r8712_generate_ie(struct registry_priv *pregistrypriv, struct _adapter *padapter);
|
||||
int r8712_generate_ie(struct registry_priv *pregistrypriv,
|
||||
struct _adapter *padapter);
|
||||
uint r8712_is_cckrates_included(u8 *rate);
|
||||
uint r8712_is_cckratesonly_included(u8 *rate);
|
||||
|
||||
|
|
|
@ -98,11 +98,11 @@ struct ip_options {
|
|||
unsigned char is_setbyuser:1, /* Set by setsockopt? */
|
||||
is_data:1, /* Options in __data, rather than skb */
|
||||
is_strictroute:1, /* Strict source route */
|
||||
srr_is_hit:1, /* Packet destination addr was our one */
|
||||
srr_is_hit:1, /* Packet destination addr was our one*/
|
||||
is_changed:1, /* IP checksum more not valid */
|
||||
rr_needaddr:1, /* Need to record addr of outgoing dev */
|
||||
rr_needaddr:1, /* Need to record addr of outgoing dev*/
|
||||
ts_needtime:1, /* Need to record timestamp */
|
||||
ts_needaddr:1; /* Need to record addr of outgoing dev */
|
||||
ts_needaddr:1; /* Need to record addr of outgoing dev*/
|
||||
unsigned char router_alert;
|
||||
unsigned char __pad1;
|
||||
unsigned char __pad2;
|
||||
|
|
|
@ -145,7 +145,8 @@ static inline u32 is_list_empty(struct list_head *phead)
|
|||
return false;
|
||||
}
|
||||
|
||||
static inline void list_insert_tail(struct list_head *plist, struct list_head *phead)
|
||||
static inline void list_insert_tail(struct list_head *plist,
|
||||
struct list_head *phead)
|
||||
{
|
||||
list_add_tail(plist, phead);
|
||||
}
|
||||
|
|
|
@ -12,7 +12,8 @@ s32 r8712_recv_entry(union recv_frame *precv_frame);
|
|||
void r8712_recv_indicatepkt(struct _adapter *adapter,
|
||||
union recv_frame *precv_frame);
|
||||
void r8712_handle_tkip_mic_err(struct _adapter *padapter, u8 bgroup);
|
||||
int r8712_init_recv_priv(struct recv_priv *precvpriv, struct _adapter *padapter);
|
||||
int r8712_init_recv_priv(struct recv_priv *precvpriv,
|
||||
struct _adapter *padapter);
|
||||
void r8712_free_recv_priv(struct recv_priv *precvpriv);
|
||||
int r8712_os_recv_resource_alloc(struct _adapter *padapter,
|
||||
union recv_frame *precvframe);
|
||||
|
@ -24,4 +25,3 @@ void r8712_os_read_port(struct _adapter *padapter, struct recv_buf *precvbuf);
|
|||
void r8712_init_recv_timer(struct recv_reorder_ctrl *preorder_ctrl);
|
||||
|
||||
#endif
|
||||
|
||||
|
|
|
@ -16,10 +16,10 @@ enum rtl8712_c2h_event {
|
|||
GEN_EVT_CODE(_Survey), /*8*/
|
||||
GEN_EVT_CODE(_SurveyDone), /*9*/
|
||||
|
||||
GEN_EVT_CODE(_JoinBss) , /*10*/
|
||||
GEN_EVT_CODE(_JoinBss), /*10*/
|
||||
GEN_EVT_CODE(_AddSTA),
|
||||
GEN_EVT_CODE(_DelSTA),
|
||||
GEN_EVT_CODE(_AtimDone) ,
|
||||
GEN_EVT_CODE(_AtimDone),
|
||||
GEN_EVT_CODE(_TX_Report),
|
||||
GEN_EVT_CODE(_CCX_Report), /*15*/
|
||||
GEN_EVT_CODE(_DTM_Report),
|
||||
|
@ -48,7 +48,8 @@ static struct fwevent wlanevents[] = {
|
|||
{0, NULL},
|
||||
{0, NULL},
|
||||
{0, &r8712_survey_event_callback}, /*8*/
|
||||
{sizeof(struct surveydone_event), &r8712_surveydone_event_callback},/*9*/
|
||||
{sizeof(struct surveydone_event),
|
||||
&r8712_surveydone_event_callback}, /*9*/
|
||||
|
||||
{0, &r8712_joinbss_event_callback}, /*10*/
|
||||
{sizeof(struct stassoc_event), &r8712_stassoc_event_callback},
|
||||
|
|
|
@ -21,13 +21,13 @@ enum RTL871X_HCI_TYPE {
|
|||
RTL8712_USB,
|
||||
};
|
||||
|
||||
enum RTL8712_RF_CONFIG{
|
||||
enum RTL8712_RF_CONFIG {
|
||||
RTL8712_RF_1T1R,
|
||||
RTL8712_RF_1T2R,
|
||||
RTL8712_RF_2T2R
|
||||
};
|
||||
|
||||
enum _RTL8712_HCI_TYPE_{
|
||||
enum _RTL8712_HCI_TYPE_ {
|
||||
RTL8712_HCI_TYPE_PCIE = 0x01,
|
||||
RTL8712_HCI_TYPE_AP_PCIE = 0x81,
|
||||
RTL8712_HCI_TYPE_USB = 0x02,
|
||||
|
@ -74,15 +74,15 @@ struct fw_priv { /*8-bytes alignment required*/
|
|||
unsigned char AMSDU2AMPDU_en; /*1: 4181 convert AMSDU to AMPDU,
|
||||
* 0: disable*/
|
||||
unsigned char AMPDU_en; /*1: 11n AMPDU enable*/
|
||||
unsigned char rate_control_offload; /*1: FW offloads, 0: driver handles*/
|
||||
unsigned char aggregation_offload; /*1: FW offloads, 0: driver handles*/
|
||||
unsigned char rate_control_offload; /*1: FW offloads,0: driver handles*/
|
||||
unsigned char aggregation_offload; /*1: FW offloads,0: driver handles*/
|
||||
unsigned char rsvd030;
|
||||
unsigned char rsvd031;
|
||||
/*--- long word 4 ----*/
|
||||
unsigned char beacon_offload; /* 1. FW offloads, 0: driver handles*/
|
||||
unsigned char MLME_offload; /* 2. FW offloads, 0: driver handles*/
|
||||
unsigned char hwpc_offload; /* 3. FW offloads, 0: driver handles*/
|
||||
unsigned char tcp_checksum_offload; /* 4. FW offloads, 0: driver handles*/
|
||||
unsigned char tcp_checksum_offload; /*4. FW offloads,0: driver handles*/
|
||||
unsigned char tcp_offload; /* 5. FW offloads, 0: driver handles*/
|
||||
unsigned char ps_control_offload; /* 6. FW offloads, 0: driver handles*/
|
||||
unsigned char WWLAN_offload; /* 7. FW offloads, 0: driver handles*/
|
||||
|
|
|
@ -93,7 +93,7 @@ struct recv_buf {
|
|||
end ----->
|
||||
len = (unsigned int )(tail - data);
|
||||
*/
|
||||
struct recv_frame_hdr{
|
||||
struct recv_frame_hdr {
|
||||
struct list_head list;
|
||||
_pkt *pkt;
|
||||
_pkt *pkt_newalloc;
|
||||
|
|
|
@ -59,25 +59,16 @@
|
|||
/*OFFSET 20*/
|
||||
#define DISFB BIT(15)
|
||||
|
||||
struct tx_desc{
|
||||
|
||||
struct tx_desc {
|
||||
/*DWORD 0*/
|
||||
unsigned int txdw0;
|
||||
|
||||
unsigned int txdw1;
|
||||
|
||||
unsigned int txdw2;
|
||||
|
||||
unsigned int txdw3;
|
||||
|
||||
unsigned int txdw4;
|
||||
|
||||
unsigned int txdw5;
|
||||
|
||||
unsigned int txdw6;
|
||||
|
||||
unsigned int txdw7;
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
|
|
@ -562,54 +562,54 @@ struct getratable_rsp {
|
|||
};
|
||||
|
||||
/*to get TX,RX retry count*/
|
||||
struct gettxretrycnt_parm{
|
||||
struct gettxretrycnt_parm {
|
||||
unsigned int rsvd;
|
||||
};
|
||||
|
||||
struct gettxretrycnt_rsp{
|
||||
struct gettxretrycnt_rsp {
|
||||
unsigned long tx_retrycnt;
|
||||
};
|
||||
|
||||
struct getrxretrycnt_parm{
|
||||
struct getrxretrycnt_parm {
|
||||
unsigned int rsvd;
|
||||
};
|
||||
|
||||
struct getrxretrycnt_rsp{
|
||||
struct getrxretrycnt_rsp {
|
||||
unsigned long rx_retrycnt;
|
||||
};
|
||||
|
||||
/*to get BCNOK,BCNERR count*/
|
||||
struct getbcnokcnt_parm{
|
||||
struct getbcnokcnt_parm {
|
||||
unsigned int rsvd;
|
||||
};
|
||||
|
||||
struct getbcnokcnt_rsp{
|
||||
struct getbcnokcnt_rsp {
|
||||
unsigned long bcnokcnt;
|
||||
};
|
||||
|
||||
struct getbcnerrcnt_parm{
|
||||
struct getbcnerrcnt_parm {
|
||||
unsigned int rsvd;
|
||||
};
|
||||
struct getbcnerrcnt_rsp{
|
||||
struct getbcnerrcnt_rsp {
|
||||
unsigned long bcnerrcnt;
|
||||
};
|
||||
|
||||
/* to get current TX power level*/
|
||||
struct getcurtxpwrlevel_parm{
|
||||
struct getcurtxpwrlevel_parm {
|
||||
unsigned int rsvd;
|
||||
};
|
||||
|
||||
struct getcurtxpwrlevel_rsp{
|
||||
struct getcurtxpwrlevel_rsp {
|
||||
unsigned short tx_power;
|
||||
};
|
||||
|
||||
/*dynamic on/off DIG*/
|
||||
struct setdig_parm{
|
||||
struct setdig_parm {
|
||||
unsigned char dig_on; /* 1:on , 0:off */
|
||||
};
|
||||
|
||||
/*dynamic on/off RA*/
|
||||
struct setra_parm{
|
||||
struct setra_parm {
|
||||
unsigned char ra_on; /* 1:on , 0:off */
|
||||
};
|
||||
|
||||
|
|
|
@ -61,7 +61,7 @@ struct fwevent {
|
|||
};
|
||||
|
||||
#define C2HEVENT_SZ 32
|
||||
struct event_node{
|
||||
struct event_node {
|
||||
unsigned char *node;
|
||||
unsigned char evt_code;
|
||||
unsigned short evt_sz;
|
||||
|
|
|
@ -12,13 +12,21 @@ struct BSSIDInfo {
|
|||
|
||||
u8 r8712_set_802_11_authentication_mode(struct _adapter *pdapter,
|
||||
enum NDIS_802_11_AUTHENTICATION_MODE authmode);
|
||||
|
||||
u8 r8712_set_802_11_bssid(struct _adapter *padapter, u8 *bssid);
|
||||
u8 r8712_set_802_11_add_wep(struct _adapter *padapter, struct NDIS_802_11_WEP *wep);
|
||||
|
||||
u8 r8712_set_802_11_add_wep(struct _adapter *padapter,
|
||||
struct NDIS_802_11_WEP *wep);
|
||||
|
||||
u8 r8712_set_802_11_disassociate(struct _adapter *padapter);
|
||||
|
||||
u8 r8712_set_802_11_bssid_list_scan(struct _adapter *padapter);
|
||||
|
||||
u8 r8712_set_802_11_infrastructure_mode(struct _adapter *padapter,
|
||||
enum NDIS_802_11_NETWORK_INFRASTRUCTURE networktype);
|
||||
void r8712_set_802_11_ssid(struct _adapter *padapter, struct ndis_802_11_ssid *ssid);
|
||||
|
||||
void r8712_set_802_11_ssid(struct _adapter *padapter,
|
||||
struct ndis_802_11_ssid *ssid);
|
||||
|
||||
#endif
|
||||
|
||||
|
|
|
@ -281,23 +281,23 @@ enum MP_MODE {
|
|||
MP_ERR_MODE
|
||||
};
|
||||
|
||||
struct rwreg_param{
|
||||
struct rwreg_param {
|
||||
unsigned int offset;
|
||||
unsigned int width;
|
||||
unsigned int value;
|
||||
};
|
||||
|
||||
struct bbreg_param{
|
||||
struct bbreg_param {
|
||||
unsigned int offset;
|
||||
unsigned int phymask;
|
||||
unsigned int value;
|
||||
};
|
||||
|
||||
struct txpower_param{
|
||||
struct txpower_param {
|
||||
unsigned int pwr_index;
|
||||
};
|
||||
|
||||
struct datarate_param{
|
||||
struct datarate_param {
|
||||
unsigned int rate_index;
|
||||
};
|
||||
|
||||
|
@ -321,7 +321,7 @@ struct mp_ioctl_handler {
|
|||
unsigned int oid;
|
||||
};
|
||||
|
||||
struct mp_ioctl_param{
|
||||
struct mp_ioctl_param {
|
||||
unsigned int subcode;
|
||||
unsigned int len;
|
||||
unsigned char data[0];
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
/* for Rx reordering buffer control */
|
||||
struct recv_reorder_ctrl {
|
||||
struct _adapter *padapter;
|
||||
u16 indicate_seq;/* =wstart_b, init_value=0xffff */
|
||||
u16 indicate_seq; /* =wstart_b, init_value=0xffff */
|
||||
u16 wend_b;
|
||||
u8 wsize_b;
|
||||
struct __queue pending_recvframe_queue;
|
||||
|
|
|
@ -22,7 +22,7 @@ struct regulatory_class {
|
|||
u8 modem;
|
||||
};
|
||||
|
||||
enum _REG_PREAMBLE_MODE{
|
||||
enum _REG_PREAMBLE_MODE {
|
||||
PREAMBLE_LONG = 1,
|
||||
PREAMBLE_AUTO = 2,
|
||||
PREAMBLE_SHORT = 3,
|
||||
|
|
|
@ -21,10 +21,11 @@
|
|||
#ifndef Ndis802_11AuthModeWPA2PSK
|
||||
#define Ndis802_11AuthModeWPA2PSK (Ndis802_11AuthModeWPANone + 2)
|
||||
#endif
|
||||
|
||||
union pn48 {
|
||||
u64 val;
|
||||
#if defined(__BIG_ENDIAN)
|
||||
struct {
|
||||
struct {
|
||||
u8 TSC7;
|
||||
u8 TSC6;
|
||||
u8 TSC5;
|
||||
|
@ -33,9 +34,9 @@ struct {
|
|||
u8 TSC2;
|
||||
u8 TSC1;
|
||||
u8 TSC0;
|
||||
} _byte_;
|
||||
} _byte_;
|
||||
#else
|
||||
struct {
|
||||
struct {
|
||||
u8 TSC0;
|
||||
u8 TSC1;
|
||||
u8 TSC2;
|
||||
|
@ -44,7 +45,7 @@ struct {
|
|||
u8 TSC5;
|
||||
u8 TSC6;
|
||||
u8 TSC7;
|
||||
} _byte_;
|
||||
} _byte_;
|
||||
#endif
|
||||
};
|
||||
|
||||
|
|
|
@ -244,7 +244,8 @@ sint r8712_update_attrib(struct _adapter *padapter, _pkt *pkt,
|
|||
struct pkt_attrib *pattrib);
|
||||
int r8712_txframes_sta_ac_pending(struct _adapter *padapter,
|
||||
struct pkt_attrib *pattrib);
|
||||
sint _r8712_init_xmit_priv(struct xmit_priv *pxmitpriv, struct _adapter *padapter);
|
||||
sint _r8712_init_xmit_priv(struct xmit_priv *pxmitpriv,
|
||||
struct _adapter *padapter);
|
||||
void _free_xmit_priv(struct xmit_priv *pxmitpriv);
|
||||
void r8712_free_xmitframe_ex(struct xmit_priv *pxmitpriv,
|
||||
struct xmit_frame *pxmitframe);
|
||||
|
|
|
@ -39,7 +39,6 @@ enum WIFI_FRAME_TYPE {
|
|||
};
|
||||
|
||||
enum WIFI_FRAME_SUBTYPE {
|
||||
|
||||
/* below is for mgt frame */
|
||||
WIFI_ASSOCREQ = (0 | WIFI_MGT_TYPE),
|
||||
WIFI_ASSOCRSP = (BIT(4) | WIFI_MGT_TYPE),
|
||||
|
@ -53,7 +52,6 @@ enum WIFI_FRAME_SUBTYPE {
|
|||
WIFI_AUTH = (BIT(7) | BIT(5) | BIT(4) | WIFI_MGT_TYPE),
|
||||
WIFI_DEAUTH = (BIT(7) | BIT(6) | WIFI_MGT_TYPE),
|
||||
WIFI_ACTION = (BIT(7) | BIT(6) | BIT(4) | WIFI_MGT_TYPE),
|
||||
|
||||
/* below is for control frame */
|
||||
WIFI_PSPOLL = (BIT(7) | BIT(5) | WIFI_CTRL_TYPE),
|
||||
WIFI_RTS = (BIT(7) | BIT(5) | BIT(4) | WIFI_CTRL_TYPE),
|
||||
|
@ -61,7 +59,6 @@ enum WIFI_FRAME_SUBTYPE {
|
|||
WIFI_ACK = (BIT(7) | BIT(6) | BIT(4) | WIFI_CTRL_TYPE),
|
||||
WIFI_CFEND = (BIT(7) | BIT(6) | BIT(5) | WIFI_CTRL_TYPE),
|
||||
WIFI_CFEND_CFACK = (BIT(7) | BIT(6) | BIT(5) | BIT(4) | WIFI_CTRL_TYPE),
|
||||
|
||||
/* below is for data frame */
|
||||
WIFI_DATA = (0 | WIFI_DATA_TYPE),
|
||||
WIFI_DATA_CFACK = (BIT(4) | WIFI_DATA_TYPE),
|
||||
|
@ -84,7 +81,6 @@ enum WIFI_REASON_CODE {
|
|||
_RSON_CLS3_ = 7,
|
||||
_RSON_DISAOC_STA_LEAVING_ = 8,
|
||||
_RSON_ASOC_NOT_AUTH_ = 9,
|
||||
|
||||
/* WPA reason */
|
||||
_RSON_INVALID_IE_ = 13,
|
||||
_RSON_MIC_FAILURE_ = 14,
|
||||
|
@ -97,7 +93,6 @@ enum WIFI_REASON_CODE {
|
|||
_RSON_UNSUPPORT_RSNE_VER_ = 21,
|
||||
_RSON_INVALID_RSNE_CAP_ = 22,
|
||||
_RSON_IEEE_802DOT1X_AUTH_FAIL_ = 23,
|
||||
|
||||
/* below are Realtek definitions */
|
||||
_RSON_PMK_NOT_AVAILABLE_ = 24,
|
||||
};
|
||||
|
|
|
@ -22,7 +22,7 @@ enum NDIS_802_11_NETWORK_TYPE {
|
|||
Ndis802_11DS,
|
||||
Ndis802_11OFDM5,
|
||||
Ndis802_11OFDM24,
|
||||
Ndis802_11NetworkTypeMax /* not a real type, defined as an upper bound */
|
||||
Ndis802_11NetworkTypeMax /* not a real type, defined as an upper bound*/
|
||||
};
|
||||
|
||||
struct NDIS_802_11_CONFIGURATION_FH {
|
||||
|
@ -48,7 +48,7 @@ enum NDIS_802_11_NETWORK_INFRASTRUCTURE {
|
|||
Ndis802_11IBSS,
|
||||
Ndis802_11Infrastructure,
|
||||
Ndis802_11AutoUnknown,
|
||||
Ndis802_11InfrastructureMax, /* Not a real value, defined as upper bound */
|
||||
Ndis802_11InfrastructureMax, /*Not a real value,defined as upper bound*/
|
||||
Ndis802_11APMode
|
||||
};
|
||||
|
||||
|
@ -81,7 +81,7 @@ struct ndis_wlan_bssid_ex {
|
|||
enum NDIS_802_11_NETWORK_INFRASTRUCTURE InfrastructureMode;
|
||||
NDIS_802_11_RATES_EX SupportedRates;
|
||||
u32 IELength;
|
||||
/*(timestamp, beacon interval, and capability information) */
|
||||
/*(timestamp, beacon interval, and capability information) */
|
||||
u8 IEs[MAX_IE_SZ];
|
||||
};
|
||||
|
||||
|
@ -163,7 +163,7 @@ struct NDIS_802_11_WEP {
|
|||
u32 KeyIndex; /* 0 is the per-client key,
|
||||
* 1-N are the global keys */
|
||||
u32 KeyLength; /* length of key in bytes */
|
||||
u8 KeyMaterial[16];/* variable length depending on above field */
|
||||
u8 KeyMaterial[16]; /* variable length depending on above field */
|
||||
};
|
||||
|
||||
/* mask for authentication/integrity fields */
|
||||
|
|
Loading…
Add table
Reference in a new issue