Search Linux Wireless

Re: [PATCH v2 2/2] rtlwifi: btcoex: Use seq_file to dump btcoex status

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Larry Finger <Larry.Finger@xxxxxxxxxxxx> writes:

> From: Ping-Ke Shih <pkshih@xxxxxxxxxxx>
>
> We use seq_file to replace RT_TRACE to dump status, then we can use 'cat'
> to access btcoex's status through debugfs.
> (i.e. /sys/kernel/debug/rtlwifi/00-11-22-33-44-55-66/btcoex)
> Other related changes are
> 1. implement btc_disp_dbg_msg() to access btcoex's common status.
> 2. remove obsolete field bt_exist
>
> Signed-off-by: Ping-Ke Shih <pkshih@xxxxxxxxxxx>
> Signed-off-by: Larry Finger <Larry.Finger@xxxxxxxxxxxx>
> Cc: Yan-Hsuan Chuang <yhchuang@xxxxxxxxxxx>
> Cc: Birming Chiu <birming@xxxxxxxxxxx>
> Cc: Shaofu <shaofu@xxxxxxxxxxx>
> Cc: Steven Ting <steventing@xxxxxxxxxxx>

[...]

> +static void halbtc_display_wifi_status(struct btc_coexist *btcoexist,
> +				       struct seq_file *m)
> +{
> +	struct rtl_priv *rtlpriv = btcoexist->adapter;
> +	s32	wifi_rssi = 0, bt_hs_rssi = 0;
> +	bool	scan = false, link = false, roam = false, wifi_busy = false,
> +		wifi_under_b_mode = false,
> +		wifi_under_5g = false;
> +	u32	wifi_bw = BTC_WIFI_BW_HT20,
> +		wifi_traffic_dir = BTC_WIFI_TRAFFIC_TX,
> +		wifi_freq = BTC_FREQ_2_4G;
> +	u32	wifi_link_status = 0x0;
> +	bool	bt_hs_on = false, under_ips = false, under_lps = false,
> +		low_power = false, dc_mode = false;
> +	u8	wifi_chnl = 0, wifi_hs_chnl = 0, fw_ps_state;
> +	u8	ap_num = 0;

The indetation here is weird.

-- 
Kalle Valo



[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Wireless Personal Area Network]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite Hiking]     [MIPS Linux]     [ARM Linux]     [Linux RAID]

  Powered by Linux