From 0d0976b46e85da36ec61df408324eea81ad95479 Mon Sep 17 00:00:00 2001 From: Om Prakash Tripathi Date: Fri, 15 Dec 2017 17:29:55 +0530 Subject: [PATCH] qcacmn: Add support to append scan channel list Add append bit in scan channel list command. If append bit is set, new channels will be appended to existing channel list else existing channel list will be over written by new channel list. Change-Id: I0b1ecd2b809aafe6e524a05aacd5b14c80640556 CRs-Fixed: 2159802 --- wmi_unified_param.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/wmi_unified_param.h b/wmi_unified_param.h index 56c1c99fcc..afef74812c 100644 --- a/wmi_unified_param.h +++ b/wmi_unified_param.h @@ -1232,6 +1232,8 @@ struct ap_ps_params { #define WMI_HOST_SCAN_CHAN_MODE_SHIFT 16 #define WMI_HOST_SCAN_CHAN_MODE_MASK 0xff +#define WMI_HOST_MAX_CHANS_PER_WMI_CMD 58 + /** * struct scan_chan_list_params - scan channel list cmd parameter * @num_scan_chans: no of scan channels @@ -1267,11 +1269,13 @@ struct scan_chan_list_params { * @pdev_id: pdev_id * @num_chan: no of scan channels * @nallchans: nall chans + * @append: append to existing chan list * @ch_param: pointer to channel_paramw */ struct scan_chan_list_params { uint32_t pdev_id; uint16_t nallchans; + bool append; struct channel_param ch_param[1]; }; #endif