Search Linux Wireless

Re: [PATCH 2/5] wifi: rtw89: refine scan function after chanctx

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

 



On Fri, 2023-04-14 at 22:03 +0800, Ping-Ke Shih wrote:
> From: Po-Hao Huang <phhuang@xxxxxxxxxxx>
> 
> Since we can get the current channel definition each interface maps to,
> remove store_op function that is no longer required to make things simple.
> 
> Signed-off-by: Po-Hao Huang <phhuang@xxxxxxxxxxx>
> Signed-off-by: Ping-Ke Shih <pkshih@xxxxxxxxxxx>
> 

[...]

> @@ -2567,13 +2567,11 @@ int rtw89_fw_h2c_scan_offload(struct rtw89_dev *rtwdev,
>  	RTW89_SET_FWCMD_SCANOFLD_START_MODE(cmd, RTW89_SCAN_IMMEDIATE);
>  	RTW89_SET_FWCMD_SCANOFLD_SCAN_TYPE(cmd, RTW89_SCAN_ONCE);
>  	if (option->target_ch_mode) {
> -		RTW89_SET_FWCMD_SCANOFLD_TARGET_CH_BW(cmd, scan_info->op_bw);
> +		RTW89_SET_FWCMD_SCANOFLD_TARGET_CH_BW(cmd, op->band_width);
>  		RTW89_SET_FWCMD_SCANOFLD_TARGET_PRI_CH(cmd,
> -						       scan_info->op_pri_ch);
> -		RTW89_SET_FWCMD_SCANOFLD_TARGET_CENTRAL_CH(cmd,
> -							   scan_info->op_chan);
> -		RTW89_SET_FWCMD_SCANOFLD_TARGET_CH_BAND(cmd,
> -							scan_info->op_band);
> +						       op->primary_channel);
> +		RTW89_SET_FWCMD_SCANOFLD_TARGET_CENTRAL_CH(cmd, op->channel);
> +		RTW89_SET_FWCMD_SCANOFLD_TARGET_CH_BAND(cmd, op->band_type);
>  	}
>  
>  	rtw89_h2c_pkt_set_hdr(rtwdev, skb, FWCMD_TYPE_H2C,
> 

This patch touch these macros, so I add a patch to convert them by v2.
Please ignore this patchset.

Ping-Ke





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

  Powered by Linux