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
|
@ -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);
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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},
|
||||
|
|
|
@ -60,24 +60,15 @@
|
|||
#define DISFB BIT(15)
|
||||
|
||||
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;
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -21,6 +21,7 @@
|
|||
#ifndef Ndis802_11AuthModeWPA2PSK
|
||||
#define Ndis802_11AuthModeWPA2PSK (Ndis802_11AuthModeWPANone + 2)
|
||||
#endif
|
||||
|
||||
union pn48 {
|
||||
u64 val;
|
||||
#if defined(__BIG_ENDIAN)
|
||||
|
|
|
@ -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,
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue