Changes in 4.9.204 net/mlx4_en: fix mlx4 ethtool -N insertion net: rtnetlink: prevent underflows in do_setvfinfo() sfc: Only cancel the PPS workqueue if it exists net/mlx5e: Fix set vf link state error flow net/sched: act_pedit: fix WARN() in the traffic path gpio: max77620: Fixup debounce delays tools: gpio: Correctly add make dependencies for gpio_utils Revert "fs: ocfs2: fix possible null-pointer dereferences in ocfs2_xa_prepare_entry()" mm/ksm.c: don't WARN if page is still mapped in remove_stable_node() platform/x86: asus-nb-wmi: Support ALS on the Zenbook UX430UQ platform/x86: asus-wmi: Only Tell EC the OS will handle display hotkeys from asus_nb_wmi mwifiex: Fix NL80211_TX_POWER_LIMITED ALSA: isight: fix leak of reference to firewire unit in error path of .probe callback printk: fix integer overflow in setup_log_buf() gfs2: Fix marking bitmaps non-full synclink_gt(): fix compat_ioctl() powerpc: Fix signedness bug in update_flash_db() powerpc/eeh: Fix use of EEH_PE_KEEP on wrong field brcmsmac: AP mode: update beacon when TIM changes ath10k: allocate small size dma memory in ath10k_pci_diag_write_mem spi: sh-msiof: fix deferred probing mmc: mediatek: fix cannot receive new request when msdc_cmd_is_ready fail btrfs: handle error of get_old_root gsmi: Fix bug in append_to_eventlog sysfs handler misc: mic: fix a DMA pool free failure m68k: fix command-line parsing when passed from u-boot amiflop: clean up on errors during setup scsi: ips: fix missing break in switch KVM/x86: Fix invvpid and invept register operand size in 64-bit mode scsi: isci: Use proper enumerated type in atapi_d2h_reg_frame_handler scsi: isci: Change sci_controller_start_task's return type to sci_status scsi: iscsi_tcp: Explicitly cast param in iscsi_sw_tcp_host_get_param clk: mmp2: fix the clock id for sdh2_clk and sdh3_clk ASoC: tegra_sgtl5000: fix device_node refcounting scsi: dc395x: fix dma API usage in srb_done scsi: dc395x: fix DMA API usage in sg_update_list net: fix warning in af_unix net: ena: Fix Kconfig dependency on X86 xfs: fix use-after-free race in xfs_buf_rele kprobes, x86/ptrace.h: Make regs_get_kernel_stack_nth() not fault on bad stack ALSA: i2c/cs8427: Fix int to char conversion macintosh/windfarm_smu_sat: Fix debug output USB: misc: appledisplay: fix backlight update_status return code usbip: tools: fix atoi() on non-null terminated string SUNRPC: Fix a compile warning for cmpxchg64() sunrpc: safely reallow resvport min/max inversion atm: zatm: Fix empty body Clang warnings s390/perf: Return error when debug_register fails spi: omap2-mcspi: Set FIFO DMA trigger level to word length sparc: Fix parport build warnings. ceph: fix dentry leak in ceph_readdir_prepopulate rtc: s35390a: Change buf's type to u8 in s35390a_init f2fs: fix to spread clear_cold_data() mISDN: Fix type of switch control variable in ctrl_teimanager qlcnic: fix a return in qlcnic_dcb_get_capability() net: ethernet: ti: cpsw: unsync mcast entries while switch promisc mode mfd: arizona: Correct calling of runtime_put_sync mfd: mc13xxx-core: Fix PMIC shutdown when reading ADC values mfd: max8997: Enale irq-wakeup unconditionally selftests/ftrace: Fix to test kprobe $comm arg only if available thermal: rcar_thermal: Prevent hardware access during system suspend powerpc/process: Fix flush_all_to_thread for SPE sparc64: Rework xchg() definition to avoid warnings. fs/ocfs2/dlm/dlmdebug.c: fix a sleep-in-atomic-context bug in dlm_print_one_mle() mm/page-writeback.c: fix range_cyclic writeback vs writepages deadlock macsec: update operstate when lower device changes macsec: let the administrator set UP state even if lowerdev is down um: Make line/tty semantics use true write IRQ linux/bitmap.h: handle constant zero-size bitmaps correctly linux/bitmap.h: fix type of nbits in bitmap_shift_right() hfsplus: fix BUG on bnode parent update hfs: fix BUG on bnode parent update hfsplus: prevent btree data loss on ENOSPC hfs: prevent btree data loss on ENOSPC hfsplus: fix return value of hfsplus_get_block() hfs: fix return value of hfs_get_block() hfsplus: update timestamps on truncate() hfs: update timestamp on truncate() fs/hfs/extent.c: fix array out of bounds read of array extent mm/memory_hotplug: make add_memory() take the device_hotplug_lock igb: shorten maximum PHC timecounter update interval ntb_netdev: fix sleep time mismatch ntb: intel: fix return value for ndev_vec_mask() arm64: makefile fix build of .i file in external module case ocfs2: don't put and assigning null to bh allocated outside ocfs2: fix clusters leak in ocfs2_defrag_extent() net: do not abort bulk send on BQL status sched/fair: Don't increase sd->balance_interval on newidle balance audit: print empty EXECVE args wlcore: Fix the return value in case of error in 'wlcore_vendor_cmd_smart_config_start()' rtl8xxxu: Fix missing break in switch brcmsmac: never log "tid x is not agg'able" by default wireless: airo: potential buffer overflow in sprintf() rtlwifi: rtl8192de: Fix misleading REG_MCUFWDL information scsi: mpt3sas: Fix Sync cache command failure during driver unload scsi: mpt3sas: Fix driver modifying persistent data in Manufacturing page11 scsi: megaraid_sas: Fix msleep granularity scsi: lpfc: fcoe: Fix link down issue after 1000+ link bounces dlm: fix invalid free dlm: don't leak kernel pointer to userspace ACPICA: Use %d for signed int print formatting instead of %u net: bcmgenet: return correct value 'ret' from bcmgenet_power_down sock: Reset dst when changing sk_mark via setsockopt pinctrl: qcom: spmi-gpio: fix gpio-hog related boot issues pinctrl: lpc18xx: Use define directive for PIN_CONFIG_GPIO_PIN_INT pinctrl: zynq: Use define directive for PIN_CONFIG_IO_STANDARD PCI: keystone: Use quirk to limit MRRS for K2G spi: omap2-mcspi: Fix DMA and FIFO event trigger size mismatch mm/memory_hotplug: Do not unlock when fails to take the device_hotplug_lock Bluetooth: Fix invalid-free in bcsp_close() KVM: MMU: Do not treat ZONE_DEVICE pages as being reserved ath9k_hw: fix uninitialized variable data dm: use blk_set_queue_dying() in __dm_destroy() arm64: fix for bad_mode() handler to always result in panic cpufreq: Skip cpufreq resume if it's not suspended ocfs2: remove ocfs2_is_o2cb_active() ARM: 8904/1: skip nomap memblocks while finding the lowmem/highmem boundary ARC: perf: Accommodate big-endian CPU x86/insn: Fix awk regexp warnings x86/speculation: Fix incorrect MDS/TAA mitigation status x86/speculation: Fix redundant MDS mitigation message nfc: port100: handle command failure cleanly l2tp: don't use l2tp_tunnel_find() in l2tp_ip and l2tp_ip6 media: vivid: Set vid_cap_streaming and vid_out_streaming to true media: vivid: Fix wrong locking that causes race conditions on streaming stop media: usbvision: Fix races among open, close, and disconnect cpufreq: Add NULL checks to show() and store() methods of cpufreq media: uvcvideo: Fix error path in control parsing failure media: b2c2-flexcop-usb: add sanity checking media: cxusb: detect cxusb_ctrl_msg error in query media: imon: invalid dereference in imon_touch_event virtio_console: reset on out of memory virtio_console: don't tie bufs to a vq virtio_console: allocate inbufs in add_port() only if it is needed virtio_ring: fix return code on DMA mapping fails virtio_console: fix uninitialized variable use virtio_console: drop custom control queue cleanup virtio_console: move removal code usbip: tools: fix fd leakage in the function of read_attr_usbip_status usb-serial: cp201x: support Mark-10 digital force gauge USB: chaoskey: fix error case of a timeout appledisplay: fix error handling in the scheduled work USB: serial: mos7840: add USB ID to support Moxa UPort 2210 USB: serial: mos7720: fix remote wakeup USB: serial: mos7840: fix remote wakeup USB: serial: option: add support for DW5821e with eSIM support USB: serial: option: add support for Foxconn T77W968 LTE modules staging: comedi: usbduxfast: usbduxfast_ai_cmdtest rounding error powerpc/64s: support nospectre_v2 cmdline option powerpc/book3s64: Fix link stack flush on context switch KVM: PPC: Book3S HV: Flush link stack on guest exit to host kernel Linux 4.9.204 Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
486 lines
9.7 KiB
C
486 lines
9.7 KiB
C
/*
|
|
* Marvell Wireless LAN device driver: ioctl data structures & APIs
|
|
*
|
|
* Copyright (C) 2011-2014, Marvell International Ltd.
|
|
*
|
|
* This software file (the "File") is distributed by Marvell International
|
|
* Ltd. under the terms of the GNU General Public License Version 2, June 1991
|
|
* (the "License"). You may use, redistribute and/or modify this File in
|
|
* accordance with the terms and conditions of the License, a copy of which
|
|
* is available by writing to the Free Software Foundation, Inc.,
|
|
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA or on the
|
|
* worldwide web at http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt.
|
|
*
|
|
* THE FILE IS DISTRIBUTED AS-IS, WITHOUT WARRANTY OF ANY KIND, AND THE
|
|
* IMPLIED WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE
|
|
* ARE EXPRESSLY DISCLAIMED. The License provides additional details about
|
|
* this warranty disclaimer.
|
|
*/
|
|
|
|
#ifndef _MWIFIEX_IOCTL_H_
|
|
#define _MWIFIEX_IOCTL_H_
|
|
|
|
#include <net/lib80211.h>
|
|
|
|
enum {
|
|
MWIFIEX_SCAN_TYPE_UNCHANGED = 0,
|
|
MWIFIEX_SCAN_TYPE_ACTIVE,
|
|
MWIFIEX_SCAN_TYPE_PASSIVE
|
|
};
|
|
|
|
struct mwifiex_user_scan {
|
|
u32 scan_cfg_len;
|
|
u8 scan_cfg_buf[1];
|
|
};
|
|
|
|
#define MWIFIEX_PROMISC_MODE 1
|
|
#define MWIFIEX_MULTICAST_MODE 2
|
|
#define MWIFIEX_ALL_MULTI_MODE 4
|
|
#define MWIFIEX_MAX_MULTICAST_LIST_SIZE 32
|
|
|
|
struct mwifiex_multicast_list {
|
|
u32 mode;
|
|
u32 num_multicast_addr;
|
|
u8 mac_list[MWIFIEX_MAX_MULTICAST_LIST_SIZE][ETH_ALEN];
|
|
};
|
|
|
|
struct mwifiex_chan_freq {
|
|
u32 channel;
|
|
u32 freq;
|
|
};
|
|
|
|
struct mwifiex_ssid_bssid {
|
|
struct cfg80211_ssid ssid;
|
|
u8 bssid[ETH_ALEN];
|
|
};
|
|
|
|
enum {
|
|
BAND_B = 1,
|
|
BAND_G = 2,
|
|
BAND_A = 4,
|
|
BAND_GN = 8,
|
|
BAND_AN = 16,
|
|
BAND_AAC = 32,
|
|
};
|
|
|
|
#define MWIFIEX_WPA_PASSHPHRASE_LEN 64
|
|
struct wpa_param {
|
|
u8 pairwise_cipher_wpa;
|
|
u8 pairwise_cipher_wpa2;
|
|
u8 group_cipher;
|
|
u32 length;
|
|
u8 passphrase[MWIFIEX_WPA_PASSHPHRASE_LEN];
|
|
};
|
|
|
|
struct wep_key {
|
|
u8 key_index;
|
|
u8 is_default;
|
|
u16 length;
|
|
u8 key[WLAN_KEY_LEN_WEP104];
|
|
};
|
|
|
|
#define KEY_MGMT_ON_HOST 0x03
|
|
#define MWIFIEX_AUTH_MODE_AUTO 0xFF
|
|
#define BAND_CONFIG_BG 0x00
|
|
#define BAND_CONFIG_A 0x01
|
|
#define MWIFIEX_SEC_CHAN_BELOW 0x30
|
|
#define MWIFIEX_SEC_CHAN_ABOVE 0x10
|
|
#define MWIFIEX_SUPPORTED_RATES 14
|
|
#define MWIFIEX_SUPPORTED_RATES_EXT 32
|
|
#define MWIFIEX_TDLS_SUPPORTED_RATES 8
|
|
#define MWIFIEX_TDLS_DEF_QOS_CAPAB 0xf
|
|
#define MWIFIEX_PRIO_BK 2
|
|
#define MWIFIEX_PRIO_VI 5
|
|
|
|
struct mwifiex_uap_bss_param {
|
|
u8 channel;
|
|
u8 band_cfg;
|
|
u16 rts_threshold;
|
|
u16 frag_threshold;
|
|
u8 retry_limit;
|
|
struct mwifiex_802_11_ssid ssid;
|
|
u8 bcast_ssid_ctl;
|
|
u8 radio_ctl;
|
|
u8 dtim_period;
|
|
u16 beacon_period;
|
|
u16 auth_mode;
|
|
u16 protocol;
|
|
u16 key_mgmt;
|
|
u16 key_mgmt_operation;
|
|
struct wpa_param wpa_cfg;
|
|
struct wep_key wep_cfg[NUM_WEP_KEYS];
|
|
struct ieee80211_ht_cap ht_cap;
|
|
struct ieee80211_vht_cap vht_cap;
|
|
u8 rates[MWIFIEX_SUPPORTED_RATES];
|
|
u32 sta_ao_timer;
|
|
u32 ps_sta_ao_timer;
|
|
u8 qos_info;
|
|
u8 power_constraint;
|
|
struct mwifiex_types_wmm_info wmm_info;
|
|
};
|
|
|
|
enum {
|
|
ADHOC_IDLE,
|
|
ADHOC_STARTED,
|
|
ADHOC_JOINED,
|
|
ADHOC_COALESCED
|
|
};
|
|
|
|
struct mwifiex_ds_get_stats {
|
|
u32 mcast_tx_frame;
|
|
u32 failed;
|
|
u32 retry;
|
|
u32 multi_retry;
|
|
u32 frame_dup;
|
|
u32 rts_success;
|
|
u32 rts_failure;
|
|
u32 ack_failure;
|
|
u32 rx_frag;
|
|
u32 mcast_rx_frame;
|
|
u32 fcs_error;
|
|
u32 tx_frame;
|
|
u32 wep_icv_error[4];
|
|
u32 bcn_rcv_cnt;
|
|
u32 bcn_miss_cnt;
|
|
};
|
|
|
|
#define MWIFIEX_MAX_VER_STR_LEN 128
|
|
|
|
struct mwifiex_ver_ext {
|
|
u32 version_str_sel;
|
|
char version_str[MWIFIEX_MAX_VER_STR_LEN];
|
|
};
|
|
|
|
struct mwifiex_bss_info {
|
|
u32 bss_mode;
|
|
struct cfg80211_ssid ssid;
|
|
u32 bss_chan;
|
|
u8 country_code[3];
|
|
u32 media_connected;
|
|
u32 max_power_level;
|
|
u32 min_power_level;
|
|
u32 adhoc_state;
|
|
signed int bcn_nf_last;
|
|
u32 wep_status;
|
|
u32 is_hs_configured;
|
|
u32 is_deep_sleep;
|
|
u8 bssid[ETH_ALEN];
|
|
};
|
|
|
|
#define MAX_NUM_TID 8
|
|
|
|
#define MAX_RX_WINSIZE 64
|
|
|
|
struct mwifiex_ds_rx_reorder_tbl {
|
|
u16 tid;
|
|
u8 ta[ETH_ALEN];
|
|
u32 start_win;
|
|
u32 win_size;
|
|
u32 buffer[MAX_RX_WINSIZE];
|
|
};
|
|
|
|
struct mwifiex_ds_tx_ba_stream_tbl {
|
|
u16 tid;
|
|
u8 ra[ETH_ALEN];
|
|
u8 amsdu;
|
|
};
|
|
|
|
#define DBG_CMD_NUM 5
|
|
#define MWIFIEX_DBG_SDIO_MP_NUM 10
|
|
|
|
struct tdls_peer_info {
|
|
u8 peer_addr[ETH_ALEN];
|
|
};
|
|
|
|
struct mwifiex_debug_info {
|
|
unsigned int debug_mask;
|
|
u32 int_counter;
|
|
u32 packets_out[MAX_NUM_TID];
|
|
u32 tx_buf_size;
|
|
u32 curr_tx_buf_size;
|
|
u32 tx_tbl_num;
|
|
struct mwifiex_ds_tx_ba_stream_tbl
|
|
tx_tbl[MWIFIEX_MAX_TX_BASTREAM_SUPPORTED];
|
|
u32 rx_tbl_num;
|
|
struct mwifiex_ds_rx_reorder_tbl rx_tbl
|
|
[MWIFIEX_MAX_RX_BASTREAM_SUPPORTED];
|
|
u32 tdls_peer_num;
|
|
struct tdls_peer_info tdls_list
|
|
[MWIFIEX_MAX_TDLS_PEER_SUPPORTED];
|
|
u16 ps_mode;
|
|
u32 ps_state;
|
|
u8 is_deep_sleep;
|
|
u8 pm_wakeup_card_req;
|
|
u32 pm_wakeup_fw_try;
|
|
u8 is_hs_configured;
|
|
u8 hs_activated;
|
|
u32 num_cmd_host_to_card_failure;
|
|
u32 num_cmd_sleep_cfm_host_to_card_failure;
|
|
u32 num_tx_host_to_card_failure;
|
|
u32 num_event_deauth;
|
|
u32 num_event_disassoc;
|
|
u32 num_event_link_lost;
|
|
u32 num_cmd_deauth;
|
|
u32 num_cmd_assoc_success;
|
|
u32 num_cmd_assoc_failure;
|
|
u32 num_tx_timeout;
|
|
u8 is_cmd_timedout;
|
|
u16 timeout_cmd_id;
|
|
u16 timeout_cmd_act;
|
|
u16 last_cmd_id[DBG_CMD_NUM];
|
|
u16 last_cmd_act[DBG_CMD_NUM];
|
|
u16 last_cmd_index;
|
|
u16 last_cmd_resp_id[DBG_CMD_NUM];
|
|
u16 last_cmd_resp_index;
|
|
u16 last_event[DBG_CMD_NUM];
|
|
u16 last_event_index;
|
|
u8 data_sent;
|
|
u8 cmd_sent;
|
|
u8 cmd_resp_received;
|
|
u8 event_received;
|
|
u32 last_mp_wr_bitmap[MWIFIEX_DBG_SDIO_MP_NUM];
|
|
u32 last_mp_wr_ports[MWIFIEX_DBG_SDIO_MP_NUM];
|
|
u32 last_mp_wr_len[MWIFIEX_DBG_SDIO_MP_NUM];
|
|
u32 last_mp_curr_wr_port[MWIFIEX_DBG_SDIO_MP_NUM];
|
|
u8 last_sdio_mp_index;
|
|
};
|
|
|
|
#define MWIFIEX_KEY_INDEX_UNICAST 0x40000000
|
|
#define PN_LEN 16
|
|
|
|
struct mwifiex_ds_encrypt_key {
|
|
u32 key_disable;
|
|
u32 key_index;
|
|
u32 key_len;
|
|
u8 key_material[WLAN_MAX_KEY_LEN];
|
|
u8 mac_addr[ETH_ALEN];
|
|
u32 is_wapi_key;
|
|
u8 pn[PN_LEN]; /* packet number */
|
|
u8 pn_len;
|
|
u8 is_igtk_key;
|
|
u8 is_current_wep_key;
|
|
u8 is_rx_seq_valid;
|
|
u8 is_igtk_def_key;
|
|
};
|
|
|
|
struct mwifiex_power_cfg {
|
|
u32 is_power_auto;
|
|
u32 is_power_fixed;
|
|
u32 power_level;
|
|
};
|
|
|
|
struct mwifiex_ds_hs_cfg {
|
|
u32 is_invoke_hostcmd;
|
|
/* Bit0: non-unicast data
|
|
* Bit1: unicast data
|
|
* Bit2: mac events
|
|
* Bit3: magic packet
|
|
*/
|
|
u32 conditions;
|
|
u32 gpio;
|
|
u32 gap;
|
|
};
|
|
|
|
struct mwifiex_ds_wakeup_reason {
|
|
u16 hs_wakeup_reason;
|
|
};
|
|
|
|
#define DEEP_SLEEP_ON 1
|
|
#define DEEP_SLEEP_OFF 0
|
|
#define DEEP_SLEEP_IDLE_TIME 100
|
|
#define PS_MODE_AUTO 1
|
|
|
|
struct mwifiex_ds_auto_ds {
|
|
u16 auto_ds;
|
|
u16 idle_time;
|
|
};
|
|
|
|
struct mwifiex_ds_pm_cfg {
|
|
union {
|
|
u32 ps_mode;
|
|
struct mwifiex_ds_hs_cfg hs_cfg;
|
|
struct mwifiex_ds_auto_ds auto_deep_sleep;
|
|
u32 sleep_period;
|
|
} param;
|
|
};
|
|
|
|
struct mwifiex_11ac_vht_cfg {
|
|
u8 band_config;
|
|
u8 misc_config;
|
|
u32 cap_info;
|
|
u32 mcs_tx_set;
|
|
u32 mcs_rx_set;
|
|
};
|
|
|
|
struct mwifiex_ds_11n_tx_cfg {
|
|
u16 tx_htcap;
|
|
u16 tx_htinfo;
|
|
u16 misc_config; /* Needed for 802.11AC cards only */
|
|
};
|
|
|
|
struct mwifiex_ds_11n_amsdu_aggr_ctrl {
|
|
u16 enable;
|
|
u16 curr_buf_size;
|
|
};
|
|
|
|
struct mwifiex_ds_ant_cfg {
|
|
u32 tx_ant;
|
|
u32 rx_ant;
|
|
};
|
|
|
|
#define MWIFIEX_NUM_OF_CMD_BUFFER 50
|
|
#define MWIFIEX_SIZE_OF_CMD_BUFFER 2048
|
|
|
|
enum {
|
|
MWIFIEX_IE_TYPE_GEN_IE = 0,
|
|
MWIFIEX_IE_TYPE_ARP_FILTER,
|
|
};
|
|
|
|
enum {
|
|
MWIFIEX_REG_MAC = 1,
|
|
MWIFIEX_REG_BBP,
|
|
MWIFIEX_REG_RF,
|
|
MWIFIEX_REG_PMIC,
|
|
MWIFIEX_REG_CAU,
|
|
};
|
|
|
|
struct mwifiex_ds_reg_rw {
|
|
u32 type;
|
|
u32 offset;
|
|
u32 value;
|
|
};
|
|
|
|
#define MAX_EEPROM_DATA 256
|
|
|
|
struct mwifiex_ds_read_eeprom {
|
|
u16 offset;
|
|
u16 byte_count;
|
|
u8 value[MAX_EEPROM_DATA];
|
|
};
|
|
|
|
struct mwifiex_ds_mem_rw {
|
|
u32 addr;
|
|
u32 value;
|
|
};
|
|
|
|
#define IEEE_MAX_IE_SIZE 256
|
|
|
|
#define MWIFIEX_IE_HDR_SIZE (sizeof(struct mwifiex_ie) - IEEE_MAX_IE_SIZE)
|
|
|
|
struct mwifiex_ds_misc_gen_ie {
|
|
u32 type;
|
|
u32 len;
|
|
u8 ie_data[IEEE_MAX_IE_SIZE];
|
|
};
|
|
|
|
struct mwifiex_ds_misc_cmd {
|
|
u32 len;
|
|
u8 cmd[MWIFIEX_SIZE_OF_CMD_BUFFER];
|
|
};
|
|
|
|
#define BITMASK_BCN_RSSI_LOW BIT(0)
|
|
#define BITMASK_BCN_RSSI_HIGH BIT(4)
|
|
|
|
enum subsc_evt_rssi_state {
|
|
EVENT_HANDLED,
|
|
RSSI_LOW_RECVD,
|
|
RSSI_HIGH_RECVD
|
|
};
|
|
|
|
struct subsc_evt_cfg {
|
|
u8 abs_value;
|
|
u8 evt_freq;
|
|
};
|
|
|
|
struct mwifiex_ds_misc_subsc_evt {
|
|
u16 action;
|
|
u16 events;
|
|
struct subsc_evt_cfg bcn_l_rssi_cfg;
|
|
struct subsc_evt_cfg bcn_h_rssi_cfg;
|
|
};
|
|
|
|
#define MWIFIEX_MEF_MAX_BYTESEQ 6 /* non-adjustable */
|
|
#define MWIFIEX_MEF_MAX_FILTERS 10
|
|
|
|
struct mwifiex_mef_filter {
|
|
u16 repeat;
|
|
u16 offset;
|
|
s8 byte_seq[MWIFIEX_MEF_MAX_BYTESEQ + 1];
|
|
u8 filt_type;
|
|
u8 filt_action;
|
|
};
|
|
|
|
struct mwifiex_mef_entry {
|
|
u8 mode;
|
|
u8 action;
|
|
struct mwifiex_mef_filter filter[MWIFIEX_MEF_MAX_FILTERS];
|
|
};
|
|
|
|
struct mwifiex_ds_mef_cfg {
|
|
u32 criteria;
|
|
u16 num_entries;
|
|
struct mwifiex_mef_entry *mef_entry;
|
|
};
|
|
|
|
#define MWIFIEX_MAX_VSIE_LEN (256)
|
|
#define MWIFIEX_MAX_VSIE_NUM (8)
|
|
#define MWIFIEX_VSIE_MASK_CLEAR 0x00
|
|
#define MWIFIEX_VSIE_MASK_SCAN 0x01
|
|
#define MWIFIEX_VSIE_MASK_ASSOC 0x02
|
|
#define MWIFIEX_VSIE_MASK_ADHOC 0x04
|
|
#define MWIFIEX_VSIE_MASK_BGSCAN 0x08
|
|
|
|
enum {
|
|
MWIFIEX_FUNC_INIT = 1,
|
|
MWIFIEX_FUNC_SHUTDOWN,
|
|
};
|
|
|
|
enum COALESCE_OPERATION {
|
|
RECV_FILTER_MATCH_TYPE_EQ = 0x80,
|
|
RECV_FILTER_MATCH_TYPE_NE,
|
|
};
|
|
|
|
enum COALESCE_PACKET_TYPE {
|
|
PACKET_TYPE_UNICAST = 1,
|
|
PACKET_TYPE_MULTICAST = 2,
|
|
PACKET_TYPE_BROADCAST = 3
|
|
};
|
|
|
|
#define MWIFIEX_COALESCE_MAX_RULES 8
|
|
#define MWIFIEX_COALESCE_MAX_BYTESEQ 4 /* non-adjustable */
|
|
#define MWIFIEX_COALESCE_MAX_FILTERS 4
|
|
#define MWIFIEX_MAX_COALESCING_DELAY 100 /* in msecs */
|
|
|
|
struct filt_field_param {
|
|
u8 operation;
|
|
u8 operand_len;
|
|
u16 offset;
|
|
u8 operand_byte_stream[MWIFIEX_COALESCE_MAX_BYTESEQ];
|
|
};
|
|
|
|
struct mwifiex_coalesce_rule {
|
|
u16 max_coalescing_delay;
|
|
u8 num_of_fields;
|
|
u8 pkt_type;
|
|
struct filt_field_param params[MWIFIEX_COALESCE_MAX_FILTERS];
|
|
};
|
|
|
|
struct mwifiex_ds_coalesce_cfg {
|
|
u16 num_of_rules;
|
|
struct mwifiex_coalesce_rule rule[MWIFIEX_COALESCE_MAX_RULES];
|
|
};
|
|
|
|
struct mwifiex_ds_tdls_oper {
|
|
u16 tdls_action;
|
|
u8 peer_mac[ETH_ALEN];
|
|
u16 capability;
|
|
u8 qos_info;
|
|
u8 *ext_capab;
|
|
u8 ext_capab_len;
|
|
u8 *supp_rates;
|
|
u8 supp_rates_len;
|
|
u8 *ht_capab;
|
|
};
|
|
|
|
#endif /* !_MWIFIEX_IOCTL_H_ */
|