2 * Broadcom wireless network adapter utility functions
4 * Copyright 2006, Broadcom Corporation
7 * THIS SOFTWARE IS OFFERED "AS IS", AND BROADCOM GRANTS NO WARRANTIES OF ANY
8 * KIND, EXPRESS OR IMPLIED, BY STATUTE, COMMUNICATION OR OTHERWISE. BROADCOM
9 * SPECIFICALLY DISCLAIMS ANY IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS
10 * FOR A SPECIFIC PURPOSE OR NONINFRINGEMENT CONCERNING THIS SOFTWARE.
21 * Pass a wlioctl request to the specified interface.
22 * @param name interface name
23 * @param cmd WLC_GET_MAGIC <= cmd < WLC_LAST
24 * @param buf buffer for passing in and/or receiving data
25 * @param len length of buf
26 * @return >= 0 if successful or < 0 otherwise
28 extern int wl_ioctl(char *name
, int cmd
, void *buf
, int len
);
31 * Probe the specified interface.
32 * @param name interface name
33 * @return >= 0 if a Broadcom wireless device or < 0 otherwise
35 extern int wl_probe(char *name
);
37 extern int wl_iovar_set(char *ifname
, char *iovar
, void *param
, int paramlen
);
38 extern int wl_iovar_get(char *ifname
, char *iovar
, void *bufptr
, int buflen
);
40 * Set/Get named variable.
41 * @param ifname interface name
42 * @param iovar variable name
43 * @param param input param value/buffer
44 * @param paramlen input param value/buffer length
45 * @param bufptr io buffer
46 * @param buflen io buffer length
47 * @param val val or val pointer for int routines
48 * @return success == 0, failure != 0
51 * set named driver variable to int value
52 * calling example: wl_iovar_setint(ifname, "arate", rate)
55 wl_iovar_setint(char *ifname
, char *iovar
, int val
)
57 return wl_iovar_set(ifname
, iovar
, &val
, sizeof(val
));
61 * get named driver variable to int value and return error indication
62 * calling example: wl_iovar_getint(ifname, "arate", &rate)
65 wl_iovar_getint(char *ifname
, char *iovar
, int *val
)
67 return wl_iovar_get(ifname
, iovar
, val
, sizeof(int));
71 * Set/Get named variable indexed by BSS Configuration
72 * @param ifname interface name
73 * @param iovar variable name
74 * @param bssidx bsscfg index
75 * @param param input param value/buffer
76 * @param paramlen input param value/buffer length
77 * @param bufptr io buffer
78 * @param buflen io buffer length
79 * @param val val or val pointer for int routines
80 * @return success == 0, failure != 0
82 extern int wl_bssiovar_get(char *ifname
, char *iovar
, int bssidx
, void *outbuf
, int len
);
83 extern int wl_bssiovar_set(char *ifname
, char *iovar
, int bssidx
, void *param
, int paramlen
);
85 * set named & bss indexed driver variable to int value
88 wl_bssiovar_setint(char *ifname
, char *iovar
, int bssidx
, int val
)
90 return wl_bssiovar_set(ifname
, iovar
, bssidx
, &val
, sizeof(int));
94 wl_bssiovar_getint(char *ifname
, char *iovar
, int bssidx
, int *val
)
96 return wl_bssiovar_get(ifname
, iovar
, bssidx
, val
, sizeof(int));
99 extern int wl_bssiovar_setint(char *ifname
, char *iovar
, int bssidx
, int val
);
101 #endif /* _wlutils_h_ */
This page took 0.050859 seconds and 5 git commands to generate.