Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8f1e98a3 authored by Surendra Patil's avatar Surendra Patil Committed by Greg Kroah-Hartman
Browse files

drivers:staging:rtl8821ae: Fixed few coding style erors and warnings



Fixed multiple coding style errors and warnings
wifi.h:1077: WARNING: please, no space before tabs
wifi.h:762: WARNING: missing space after struct definition
wifi.h:972: WARNING: please, no spaces at the start of a line
wifi.h:1825: WARNING: Unnecessary space after function pointer name
wifi.h:1826: ERROR: "foo * bar" should be "foo *bar"
wifi.h:1099: WARNING: missing space after return type
wifi.h:1320: ERROR: Macros with complex values should be enclosed in parenthesis
wifi.h:1758: WARNING: Multiple spaces after return type
wifi.h:1855: ERROR: code indent should use tabs where possible
wifi.h:2303: ERROR: space prohibited after that open parenthesis '('
wifi.h:2408: ERROR: spaces required around that '=' (ctx:VxV)

Signed-off-by: default avatarSurendra Patil <surendra.tux@gmail.com>
Acked-by: default avatarLarry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent d249db9e
Loading
Loading
Loading
Loading
+226 −224
Original line number Diff line number Diff line
@@ -645,9 +645,9 @@ enum wireless_mode {
};

enum ratr_table_mode {
	RATR_INX_WIRELESS_NGB = 0,		// BGN 40 Mhz 2SS 1SS
	RATR_INX_WIRELESS_NG = 1,		// GN or N
	RATR_INX_WIRELESS_NB = 2,		// BGN 20 Mhz 2SS 1SS  or BN
	RATR_INX_WIRELESS_NGB = 0,		/* BGN 40 Mhz 2SS 1SS */
	RATR_INX_WIRELESS_NG = 1,		/* GN or N */
	RATR_INX_WIRELESS_NB = 2,		/* BGN 20 Mhz 2SS 1SS  or BN */
	RATR_INX_WIRELESS_N = 3,
	RATR_INX_WIRELESS_GB = 4,
	RATR_INX_WIRELESS_G = 5,
@@ -939,14 +939,14 @@ enum p2p_ps_state {
	P2P_PS_ENABLE = 1,
	P2P_PS_SCAN = 2,
	P2P_PS_SCAN_DONE = 3,
	P2P_PS_ALLSTASLEEP = 4, // for P2P GO
	P2P_PS_ALLSTASLEEP = 4, /* for P2P GO */
};

enum p2p_ps_mode {
	P2P_PS_NONE = 0,
	P2P_PS_CTWINDOW = 1,
	P2P_PS_NOA = 2,
	P2P_PS_MIX = 3, // CTWindow and NoA
	P2P_PS_MIX = 3, /* CTWindow and NoA */
};

struct rtl_p2p_ps_info {
@@ -981,7 +981,7 @@ struct rtl_p2p_ps_info {
};

#define IQK_MATRIX_REG_NUM	8
#define IQK_MATRIX_SETTINGS_NUM	 (14+24+21) // Channels_2_4G_NUM + Channels_5G_20M_NUM + Channels_5G
#define IQK_MATRIX_SETTINGS_NUM	 (14+24+21) /* Channels_2_4G_NUM + Channels_5G_20M_NUM + Channels_5G */
struct iqk_matrix_regs {
	bool b_iqk_done;
	long value[1][IQK_MATRIX_REG_NUM];
@@ -1317,7 +1317,7 @@ struct rtl_pstbl {

};

#define ASSOCIATE_ENTRY_NUM	32+1
#define ASSOCIATE_ENTRY_NUM	(32+1)

struct fast_ant_trainning {
	u8 bssid[6];
@@ -1671,7 +1671,6 @@ struct rtl_stats {
	u8 rx_mimo_evm_dbm[4];
	u16 cfo_short[4]; 		/* per-path's Cfo_short */
	u16 cfo_tail[4];

	u8 rx_pwr[4]; /* per-path's pwdb */
	u8 rx_snr[4]; /* per-path's SNR */
	u8 bandwidth;
@@ -1847,12 +1846,15 @@ struct rtl_hal_ops {
	void (*dualmac_easy_concurrent)(struct ieee80211_hw *hw);
	void (*dualmac_switch_to_dmdp)(struct ieee80211_hw *hw);
	void (*c2h_command_handle)(struct ieee80211_hw *hw);
	void (*bt_wifi_media_status_notify) (struct ieee80211_hw *hw, bool mstate);
	void (*bt_wifi_media_status_notify)(struct ieee80211_hw *hw,
					    bool mstate);
	void (*bt_turn_off_bt_coexist_before_enter_lps)(struct ieee80211_hw *hw);
	void (*fill_h2c_cmd)(struct ieee80211_hw *hw, u8 element_id,
			     u32 cmd_len, u8 *p_cmdbuffer);
	bool (*get_btc_status)(void);
  	u32 (*rx_command_packet_handler)(struct ieee80211_hw *hw, struct rtl_stats status, struct sk_buff *skb);
	u32 (*rx_command_packet_handler)(struct ieee80211_hw *hw,
					 struct rtl_stats status,
					 struct sk_buff *skb);
};

struct rtl_intf_ops {
@@ -2255,11 +2257,11 @@ struct bt_coexist_info {

/* Write data to memory */
#define WRITEEF1BYTE(_ptr, _val)	\
	(*((u8 *)(_ptr)))=EF1BYTE(_val)
	((*((u8 *)(_ptr))) = EF1BYTE(_val))
#define WRITEEF2BYTE(_ptr, _val)	\
	(*((u16 *)(_ptr)))=EF2BYTE(_val)
	((*((u16 *)(_ptr))) = EF2BYTE(_val))
#define WRITEEF4BYTE(_ptr, _val)	\
	(*((u32 *)(_ptr)))=EF4BYTE(_val)
	((*((u32 *)(_ptr))) = EF4BYTE(_val))

/*Example:
BIT_LEN_MASK_32(0) => 0x00000000