1*05491d2cSKalle Valo /* 2*05491d2cSKalle Valo * Copyright (c) 2012 Broadcom Corporation 3*05491d2cSKalle Valo * 4*05491d2cSKalle Valo * Permission to use, copy, modify, and/or distribute this software for any 5*05491d2cSKalle Valo * purpose with or without fee is hereby granted, provided that the above 6*05491d2cSKalle Valo * copyright notice and this permission notice appear in all copies. 7*05491d2cSKalle Valo * 8*05491d2cSKalle Valo * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 9*05491d2cSKalle Valo * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 10*05491d2cSKalle Valo * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY 11*05491d2cSKalle Valo * SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 12*05491d2cSKalle Valo * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION 13*05491d2cSKalle Valo * OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN 14*05491d2cSKalle Valo * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 15*05491d2cSKalle Valo */ 16*05491d2cSKalle Valo 17*05491d2cSKalle Valo #ifndef _fwil_h_ 18*05491d2cSKalle Valo #define _fwil_h_ 19*05491d2cSKalle Valo 20*05491d2cSKalle Valo /******************************************************************************* 21*05491d2cSKalle Valo * Dongle command codes that are interpreted by firmware 22*05491d2cSKalle Valo ******************************************************************************/ 23*05491d2cSKalle Valo #define BRCMF_C_GET_VERSION 1 24*05491d2cSKalle Valo #define BRCMF_C_UP 2 25*05491d2cSKalle Valo #define BRCMF_C_DOWN 3 26*05491d2cSKalle Valo #define BRCMF_C_SET_PROMISC 10 27*05491d2cSKalle Valo #define BRCMF_C_GET_RATE 12 28*05491d2cSKalle Valo #define BRCMF_C_GET_INFRA 19 29*05491d2cSKalle Valo #define BRCMF_C_SET_INFRA 20 30*05491d2cSKalle Valo #define BRCMF_C_GET_AUTH 21 31*05491d2cSKalle Valo #define BRCMF_C_SET_AUTH 22 32*05491d2cSKalle Valo #define BRCMF_C_GET_BSSID 23 33*05491d2cSKalle Valo #define BRCMF_C_GET_SSID 25 34*05491d2cSKalle Valo #define BRCMF_C_SET_SSID 26 35*05491d2cSKalle Valo #define BRCMF_C_TERMINATED 28 36*05491d2cSKalle Valo #define BRCMF_C_GET_CHANNEL 29 37*05491d2cSKalle Valo #define BRCMF_C_SET_CHANNEL 30 38*05491d2cSKalle Valo #define BRCMF_C_GET_SRL 31 39*05491d2cSKalle Valo #define BRCMF_C_SET_SRL 32 40*05491d2cSKalle Valo #define BRCMF_C_GET_LRL 33 41*05491d2cSKalle Valo #define BRCMF_C_SET_LRL 34 42*05491d2cSKalle Valo #define BRCMF_C_GET_RADIO 37 43*05491d2cSKalle Valo #define BRCMF_C_SET_RADIO 38 44*05491d2cSKalle Valo #define BRCMF_C_GET_PHYTYPE 39 45*05491d2cSKalle Valo #define BRCMF_C_SET_KEY 45 46*05491d2cSKalle Valo #define BRCMF_C_GET_REGULATORY 46 47*05491d2cSKalle Valo #define BRCMF_C_SET_REGULATORY 47 48*05491d2cSKalle Valo #define BRCMF_C_SET_PASSIVE_SCAN 49 49*05491d2cSKalle Valo #define BRCMF_C_SCAN 50 50*05491d2cSKalle Valo #define BRCMF_C_SCAN_RESULTS 51 51*05491d2cSKalle Valo #define BRCMF_C_DISASSOC 52 52*05491d2cSKalle Valo #define BRCMF_C_REASSOC 53 53*05491d2cSKalle Valo #define BRCMF_C_SET_ROAM_TRIGGER 55 54*05491d2cSKalle Valo #define BRCMF_C_SET_ROAM_DELTA 57 55*05491d2cSKalle Valo #define BRCMF_C_GET_BCNPRD 75 56*05491d2cSKalle Valo #define BRCMF_C_SET_BCNPRD 76 57*05491d2cSKalle Valo #define BRCMF_C_GET_DTIMPRD 77 58*05491d2cSKalle Valo #define BRCMF_C_SET_DTIMPRD 78 59*05491d2cSKalle Valo #define BRCMF_C_SET_COUNTRY 84 60*05491d2cSKalle Valo #define BRCMF_C_GET_PM 85 61*05491d2cSKalle Valo #define BRCMF_C_SET_PM 86 62*05491d2cSKalle Valo #define BRCMF_C_GET_REVINFO 98 63*05491d2cSKalle Valo #define BRCMF_C_GET_CURR_RATESET 114 64*05491d2cSKalle Valo #define BRCMF_C_GET_AP 117 65*05491d2cSKalle Valo #define BRCMF_C_SET_AP 118 66*05491d2cSKalle Valo #define BRCMF_C_SET_SCB_AUTHORIZE 121 67*05491d2cSKalle Valo #define BRCMF_C_SET_SCB_DEAUTHORIZE 122 68*05491d2cSKalle Valo #define BRCMF_C_GET_RSSI 127 69*05491d2cSKalle Valo #define BRCMF_C_GET_WSEC 133 70*05491d2cSKalle Valo #define BRCMF_C_SET_WSEC 134 71*05491d2cSKalle Valo #define BRCMF_C_GET_PHY_NOISE 135 72*05491d2cSKalle Valo #define BRCMF_C_GET_BSS_INFO 136 73*05491d2cSKalle Valo #define BRCMF_C_GET_BANDLIST 140 74*05491d2cSKalle Valo #define BRCMF_C_SET_SCB_TIMEOUT 158 75*05491d2cSKalle Valo #define BRCMF_C_GET_ASSOCLIST 159 76*05491d2cSKalle Valo #define BRCMF_C_GET_PHYLIST 180 77*05491d2cSKalle Valo #define BRCMF_C_SET_SCAN_CHANNEL_TIME 185 78*05491d2cSKalle Valo #define BRCMF_C_SET_SCAN_UNASSOC_TIME 187 79*05491d2cSKalle Valo #define BRCMF_C_SCB_DEAUTHENTICATE_FOR_REASON 201 80*05491d2cSKalle Valo #define BRCMF_C_GET_VALID_CHANNELS 217 81*05491d2cSKalle Valo #define BRCMF_C_GET_KEY_PRIMARY 235 82*05491d2cSKalle Valo #define BRCMF_C_SET_KEY_PRIMARY 236 83*05491d2cSKalle Valo #define BRCMF_C_SET_SCAN_PASSIVE_TIME 258 84*05491d2cSKalle Valo #define BRCMF_C_GET_VAR 262 85*05491d2cSKalle Valo #define BRCMF_C_SET_VAR 263 86*05491d2cSKalle Valo 87*05491d2cSKalle Valo s32 brcmf_fil_cmd_data_set(struct brcmf_if *ifp, u32 cmd, void *data, u32 len); 88*05491d2cSKalle Valo s32 brcmf_fil_cmd_data_get(struct brcmf_if *ifp, u32 cmd, void *data, u32 len); 89*05491d2cSKalle Valo s32 brcmf_fil_cmd_int_set(struct brcmf_if *ifp, u32 cmd, u32 data); 90*05491d2cSKalle Valo s32 brcmf_fil_cmd_int_get(struct brcmf_if *ifp, u32 cmd, u32 *data); 91*05491d2cSKalle Valo 92*05491d2cSKalle Valo s32 brcmf_fil_iovar_data_set(struct brcmf_if *ifp, char *name, const void *data, 93*05491d2cSKalle Valo u32 len); 94*05491d2cSKalle Valo s32 brcmf_fil_iovar_data_get(struct brcmf_if *ifp, char *name, void *data, 95*05491d2cSKalle Valo u32 len); 96*05491d2cSKalle Valo s32 brcmf_fil_iovar_int_set(struct brcmf_if *ifp, char *name, u32 data); 97*05491d2cSKalle Valo s32 brcmf_fil_iovar_int_get(struct brcmf_if *ifp, char *name, u32 *data); 98*05491d2cSKalle Valo 99*05491d2cSKalle Valo s32 brcmf_fil_bsscfg_data_set(struct brcmf_if *ifp, char *name, void *data, 100*05491d2cSKalle Valo u32 len); 101*05491d2cSKalle Valo s32 brcmf_fil_bsscfg_data_get(struct brcmf_if *ifp, char *name, void *data, 102*05491d2cSKalle Valo u32 len); 103*05491d2cSKalle Valo s32 brcmf_fil_bsscfg_int_set(struct brcmf_if *ifp, char *name, u32 data); 104*05491d2cSKalle Valo s32 brcmf_fil_bsscfg_int_get(struct brcmf_if *ifp, char *name, u32 *data); 105*05491d2cSKalle Valo 106*05491d2cSKalle Valo #endif /* _fwil_h_ */ 107