1 /* SPDX-License-Identifier: GPL-2.0-only */
3 * This file is part of wl18xx
5 * Copyright (C) 2011 Texas Instruments. All rights reserved.
8 #ifndef __WL18XX_CMD_H__
9 #define __WL18XX_CMD_H__
11 #include "../wlcore/wlcore.h"
12 #include "../wlcore/acx.h"
14 struct wl18xx_cmd_channel_switch
{
15 struct wl1271_cmd_header header
;
19 /* The new serving channel */
21 /* Relative time of the serving channel switch in TBTT units */
23 /* Stop the role TX, should expect it after radar detection */
26 __le32 local_supported_rates
;
34 struct wl18xx_cmd_smart_config_start
{
35 struct wl1271_cmd_header header
;
37 __le32 group_id_bitmask
;
40 struct wl18xx_cmd_smart_config_set_group_key
{
41 struct wl1271_cmd_header header
;
48 struct wl18xx_cmd_dfs_radar_debug
{
49 struct wl1271_cmd_header header
;
55 struct wl18xx_cmd_dfs_master_restart
{
56 struct wl1271_cmd_header header
;
62 /* cac_start and cac_stop share the same params */
63 struct wlcore_cmd_cac_start
{
64 struct wl1271_cmd_header header
;
72 int wl18xx_cmd_channel_switch(struct wl1271
*wl
,
73 struct wl12xx_vif
*wlvif
,
74 struct ieee80211_channel_switch
*ch_switch
);
75 int wl18xx_cmd_smart_config_start(struct wl1271
*wl
, u32 group_bitmap
);
76 int wl18xx_cmd_smart_config_stop(struct wl1271
*wl
);
77 int wl18xx_cmd_smart_config_set_group_key(struct wl1271
*wl
, u16 group_id
,
79 int wl18xx_cmd_set_cac(struct wl1271
*wl
, struct wl12xx_vif
*wlvif
, bool start
);
80 int wl18xx_cmd_radar_detection_debug(struct wl1271
*wl
, u8 channel
);
81 int wl18xx_cmd_dfs_master_restart(struct wl1271
*wl
, struct wl12xx_vif
*wlvif
);