/* * Copyright (c) 2012 Broadcom Corporation * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY * SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION * OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ #ifndef FWIL_TYPES_H_ #define FWIL_TYPES_H_ #include #define BRCMF_FIL_ACTION_FRAME_SIZE 1800 /* ARP Offload feature flags for arp_ol iovar */ #define BRCMF_ARP_OL_AGENT 0x00000001 #define BRCMF_ARP_OL_SNOOP 0x00000002 #define BRCMF_ARP_OL_HOST_AUTO_REPLY 0x00000004 #define BRCMF_ARP_OL_PEER_AUTO_REPLY 0x00000008 enum brcmf_fil_p2p_if_types { BRCMF_FIL_P2P_IF_CLIENT, BRCMF_FIL_P2P_IF_GO, BRCMF_FIL_P2P_IF_DYNBCN_GO, BRCMF_FIL_P2P_IF_DEV, }; struct brcmf_fil_p2p_if_le { u8 addr[ETH_ALEN]; __le16 type; __le16 chspec; }; struct brcmf_fil_chan_info_le { __le32 hw_channel; __le32 target_channel; __le32 scan_channel; }; struct brcmf_fil_action_frame_le { u8 da[ETH_ALEN]; __le16 len; __le32 packet_id; u8 data[BRCMF_FIL_ACTION_FRAME_SIZE]; }; struct brcmf_fil_af_params_le { __le32 channel; __le32 dwell_time; u8 bssid[ETH_ALEN]; u8 pad[2]; struct brcmf_fil_action_frame_le action_frame; }; struct brcmf_fil_bss_enable_le { __le32 bsscfg_idx; __le32 enable; }; /** * struct tdls_iovar - common structure for tdls iovars. * * @ea: ether address of peer station. * @mode: mode value depending on specific tdls iovar. * @chanspec: channel specification. * @pad: unused (for future use). */ struct brcmf_tdls_iovar_le { u8 ea[ETH_ALEN]; /* Station address */ u8 mode; /* mode: depends on iovar */ __le16 chanspec; __le32 pad; /* future */ }; enum brcmf_tdls_manual_ep_ops { BRCMF_TDLS_MANUAL_EP_CREATE = 1, BRCMF_TDLS_MANUAL_EP_DELETE = 3, BRCMF_TDLS_MANUAL_EP_DISCOVERY = 6 }; #endif /* FWIL_TYPES_H_ */