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
diff --git a/wmi_unified_param.h b/wmi_unified_param.h
index 56c1c99..afef748 100644
--- a/wmi_unified_param.h
+++ b/wmi_unified_param.h
@@ -1232,6 +1232,8 @@
#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 @@
* @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