2012-11-23 00:06:18 +08:00
|
|
|
/*
|
|
|
|
* This file is part of wl18xx
|
|
|
|
*
|
|
|
|
* Copyright (C) 2011 Texas Instruments. All rights reserved.
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU General Public License
|
|
|
|
* version 2 as published by the Free Software Foundation.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful, but
|
|
|
|
* WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
|
|
|
|
* 02110-1301 USA
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __WL18XX_CMD_H__
|
|
|
|
#define __WL18XX_CMD_H__
|
|
|
|
|
|
|
|
#include "../wlcore/wlcore.h"
|
|
|
|
#include "../wlcore/acx.h"
|
|
|
|
|
|
|
|
struct wl18xx_cmd_channel_switch {
|
|
|
|
struct wl1271_cmd_header header;
|
|
|
|
|
|
|
|
u8 role_id;
|
|
|
|
|
|
|
|
/* The new serving channel */
|
|
|
|
u8 channel;
|
|
|
|
/* Relative time of the serving channel switch in TBTT units */
|
|
|
|
u8 switch_time;
|
|
|
|
/* Stop the role TX, should expect it after radar detection */
|
|
|
|
u8 stop_tx;
|
|
|
|
|
|
|
|
__le32 local_supported_rates;
|
|
|
|
|
|
|
|
u8 channel_type;
|
|
|
|
u8 band;
|
|
|
|
|
|
|
|
u8 padding[2];
|
|
|
|
} __packed;
|
|
|
|
|
2014-07-11 08:01:30 +08:00
|
|
|
struct wl18xx_cmd_smart_config_start {
|
|
|
|
struct wl1271_cmd_header header;
|
|
|
|
|
|
|
|
__le32 group_id_bitmask;
|
|
|
|
} __packed;
|
|
|
|
|
|
|
|
struct wl18xx_cmd_smart_config_set_group_key {
|
|
|
|
struct wl1271_cmd_header header;
|
|
|
|
|
|
|
|
__le32 group_id;
|
|
|
|
|
|
|
|
u8 key[16];
|
|
|
|
} __packed;
|
|
|
|
|
2012-11-23 00:06:18 +08:00
|
|
|
int wl18xx_cmd_channel_switch(struct wl1271 *wl,
|
|
|
|
struct wl12xx_vif *wlvif,
|
|
|
|
struct ieee80211_channel_switch *ch_switch);
|
2014-07-11 08:01:31 +08:00
|
|
|
int wl18xx_cmd_smart_config_start(struct wl1271 *wl, u32 group_bitmap);
|
|
|
|
int wl18xx_cmd_smart_config_stop(struct wl1271 *wl);
|
|
|
|
int wl18xx_cmd_smart_config_set_group_key(struct wl1271 *wl, u16 group_id,
|
|
|
|
u8 key_len, u8 *key);
|
2012-11-23 00:06:18 +08:00
|
|
|
#endif
|