type stringclasses 5
values | content stringlengths 9 163k |
|---|---|
defines |
#define MAX_WLIW_IOCTL_LEN 1024 |
defines |
#define htod32(i) i |
defines | #define htod16(i) i |
defines | #define dtoh32(i) i |
defines | #define dtoh16(i) i |
defines | #define htodchanspec(i) i |
defines | #define dtohchanspec(i) i |
defines | #define IW_IOCTL_IDX(cmd) ((cmd) - SIOCIWFIRST) |
defines | #define IW_EVENT_IDX(cmd) ((cmd) - IWEVFIRST) |
defines | #define MAX_ALLOWED_BLOCK_SCAN_FROM_FIRST_SCAN 3 |
defines | #define DAEMONIZE(a) daemonize(a); \ |
defines | #define RAISE_RX_SOFTIRQ() \ |
defines | #define DAEMONIZE(a) daemonize(); \ |
defines | #define ISCAN_STATE_IDLE 0 |
defines | #define ISCAN_STATE_SCANING 1 |
defines |
#define WLC_IW_ISCAN_MAXLEN 2048 |
defines |
#define COEX_DHCP 1 |
defines |
#define BT_DHCP_eSCO_FIX |
defines | #define BT_DHCP_USE_FLAGS |
defines | #define BT_DHCP_OPPORTUNITY_WINDOW_TIME 2500 |
defines | #define BT_DHCP_FLAG_FORCE_TIME 5500 |
defines |
#define PTYPE_STRING 0 |
defines | #define PTYPE_INTDEC 1 |
defines | #define PTYPE_INTHEX 2 |
defines | #define PTYPE_STR_HEX 3 |
defines |
#define MAC_FILT_MAX 8 |
defines |
#define WL_JOIN_PARAMS_MAX 1600 |
defines | #define VAL_PSK(_val) (((_val) & WPA_AUTH_PSK) || ((_val) & WPA2_AUTH_PSK)) |
defines | #define SHA1HashSize 20 |
defines |
#define SHA1HashSize 20 |
defines |
#define strtoul(nptr, endptr, base) bcm_strtoul((nptr), (endptr), (base)) |
defines | #define PARAM_OFFSET PROFILE_OFFSET |
defines |
#define WL_IW_DONT_CARE 9999 |
defines | #define IW_CUSTOM_MAX 256 |
structs | struct iw_request_info
{
__u16 cmd;
__u16 flags;
}; |
functions | void
swap_key_from_BE(
wl_wsec_key_t *key
)
{
key->index = htod32(key->index);
key->len = htod32(key->len);
key->algo = htod32(key->algo);
key->flags = htod32(key->flags);
key->rxiv.hi = htod32(key->rxiv.hi);
key->rxiv.lo = htod16(key->rxiv.lo);
key->iv_initialized = htod32(key->iv_initialized);
} |
functions | void
swap_key_to_BE(
wl_wsec_key_t *key
)
{
key->index = dtoh32(key->index);
key->len = dtoh32(key->len);
key->algo = dtoh32(key->algo);
key->flags = dtoh32(key->flags);
key->rxiv.hi = dtoh32(key->rxiv.hi);
key->rxiv.lo = dtoh16(key->rxiv.lo);
key->iv_initialized = dtoh32(key->iv_initialized);
} |
functions | int
dev_wlc_ioctl(
struct net_device *dev,
int cmd,
void *arg,
int len
)
{
struct ifreq ifr;
wl_ioctl_t ioc;
mm_segment_t fs;
int ret = -EINVAL;
if (!dev) {
WL_ERROR(("%s: dev is null\n", __FUNCTION__));
return ret;
} |
functions | int
dev_wlc_intvar_get_reg(
struct net_device *dev,
char *name,
uint reg,
int *retval)
{
union {
char buf[WLC_IOCTL_SMLEN];
int val;
} |
functions | int
dev_wlc_intvar_set_reg(
struct net_device *dev,
char *name,
char *addr,
char * val)
{
char reg_addr[8];
memset(reg_addr, 0, sizeof(reg_addr));
memcpy((char *)®_addr[0], (char *)addr, 4);
memcpy((char *)®_addr[4], (char *)val, 4);
return (dev_wlc_bufvar_set(dev, name, (char *)®_addr[0], sizeof(r... |
functions | int
dev_wlc_intvar_set(
struct net_device *dev,
char *name,
int val)
{
char buf[WLC_IOCTL_SMLEN];
uint len;
val = htod32(val);
len = bcm_mkiovar(name, (char *)(&val), sizeof(val), buf, sizeof(buf));
ASSERT(len);
return (dev_wlc_ioctl(dev, WLC_SET_VAR, buf, len));
} |
functions | int
dev_iw_iovar_setbuf(
struct net_device *dev,
char *iovar,
void *param,
int paramlen,
void *bufptr,
int buflen)
{
int iolen;
iolen = bcm_mkiovar(iovar, param, paramlen, bufptr, buflen);
ASSERT(iolen);
if (iolen == 0)
return 0;
return (dev_wlc_ioctl(dev, WLC_SET_VAR, bufptr, iolen));
} |
functions | int
dev_iw_iovar_getbuf(
struct net_device *dev,
char *iovar,
void *param,
int paramlen,
void *bufptr,
int buflen)
{
int iolen;
iolen = bcm_mkiovar(iovar, param, paramlen, bufptr, buflen);
ASSERT(iolen);
return (dev_wlc_ioctl(dev, WLC_GET_VAR, bufptr, buflen));
} |
functions | int
dev_wlc_bufvar_set(
struct net_device *dev,
char *name,
char *buf, int len)
{
#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 31)
char ioctlbuf[MAX_WLIW_IOCTL_LEN];
#else
static char ioctlbuf[MAX_WLIW_IOCTL_LEN];
#endif
uint buflen;
buflen = bcm_mkiovar(name, buf, len, ioctlbuf, sizeof(ioctlbuf));
ASSERT(bu... |
functions | int
dev_wlc_bufvar_get(
struct net_device *dev,
char *name,
char *buf, int buflen)
{
#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 31)
char ioctlbuf[MAX_WLIW_IOCTL_LEN];
#else
static char ioctlbuf[MAX_WLIW_IOCTL_LEN];
#endif
int error;
uint len;
len = bcm_mkiovar(name, NULL, 0, ioctlbuf, sizeof(ioctlbuf));
A... |
functions | int
dev_wlc_intvar_get(
struct net_device *dev,
char *name,
int *retval)
{
union {
char buf[WLC_IOCTL_SMLEN];
int val;
} |
functions | int
wl_iw_set_active_scan(
struct net_device *dev,
struct iw_request_info *info,
union iwreq_data *wrqu,
char *extra
)
{
int as = 0;
int error = 0;
char *p = extra;
#if defined(WL_IW_USE_ISCAN)
if (g_iscan->iscan_state == ISCAN_STATE_IDLE)
#endif
error = dev_wlc_ioctl(dev, WLC_SET_PASSIVE_SCAN, &as, sizeof(... |
functions | int
wl_iw_set_passive_scan(
struct net_device *dev,
struct iw_request_info *info,
union iwreq_data *wrqu,
char *extra
)
{
int ps = 1;
int error = 0;
char *p = extra;
#if defined(WL_IW_USE_ISCAN)
if (g_iscan->iscan_state == ISCAN_STATE_IDLE) {
#endif
if (g_scan_specified_ssid == 0) {
error = dev_wlc_... |
functions | int
wl_iw_set_txpower(
struct net_device *dev,
struct iw_request_info *info,
union iwreq_data *wrqu,
char *extra
)
{
int error = 0;
char *p = extra;
int txpower = -1;
txpower = bcm_atoi(extra + strlen(TXPOWER_SET_CMD) + 1);
if ((txpower >= 0) && (txpower <= 127))
{
txpower |= WL_TXPWR_OVERRIDE;
txpower =... |
functions | int
wl_iw_get_macaddr(
struct net_device *dev,
struct iw_request_info *info,
union iwreq_data *wrqu,
char *extra
)
{
int error;
char buf[128];
struct ether_addr *id;
char *p = extra;
strcpy(buf, "cur_etheraddr");
error = dev_wlc_ioctl(dev, WLC_GET_VAR, buf, sizeof(buf));
id = (struct ether_addr *) buf;
p... |
functions | int
wl_iw_set_country(
struct net_device *dev,
struct iw_request_info *info,
union iwreq_data *wrqu,
char *extra
)
{
char country_code[WLC_CNTRY_BUF_SZ];
int error = 0;
char *p = extra;
int country_offset;
int country_code_size;
wl_country_t cspec = {{0} |
functions | int
wl_iw_set_power_mode(
struct net_device *dev,
struct iw_request_info *info,
union iwreq_data *wrqu,
char *extra
)
{
int error = 0;
char *p = extra;
static int pm = PM_FAST;
int pm_local = PM_OFF;
char powermode_val = 0;
WL_TRACE_COEX(("%s: DHCP session cmd:%s\n", __FUNCTION__, extra));
strncpy((char ... |
functions | bool btcoex_is_sco_active(struct net_device *dev)
{
int ioc_res = 0;
bool res = FALSE;
int sco_id_cnt = 0;
int param27;
int i;
for (i = 0; i < 12; i++) {
ioc_res = dev_wlc_intvar_get_reg(dev, "btc_params", 27, ¶m27);
WL_TRACE_COEX(("%s, sample[%d], btc params: 27:%x\n",
__FUNCTION__, i, param27));
... |
functions | int set_btc_esco_params(struct net_device *dev, bool trump_sco)
{
static bool saved_status = FALSE;
char buf_reg50va_dhcp_on[8] = { 50, 00, 00, 00, 0x22, 0x80, 0x00, 0x00 } |
functions | else if (saved_status) {
WL_TRACE_COEX(("Do new SCO/eSCO coex algo {save & override} |
functions | int
wl_iw_get_power_mode(
struct net_device *dev,
struct iw_request_info *info,
union iwreq_data *wrqu,
char *extra
)
{
int error = 0;
int pm_local;
char *p = extra;
error = dev_wlc_ioctl(dev, WLC_GET_PM, &pm_local, sizeof(pm_local));
if (!error) {
WL_TRACE(("%s: Powermode = %d\n", __func__, pm_local));
i... |
functions | int
wl_iw_set_btcoex_dhcp(
struct net_device *dev,
struct iw_request_info *info,
union iwreq_data *wrqu,
char *extra
)
{
int error = 0;
char *p = extra;
char powermode_val = 0;
char buf_reg66va_dhcp_on[8] = { 66, 00, 00, 00, 0x10, 0x27, 0x00, 0x00 } |
functions | else if (saved_status == TRUE) {
WL_ERROR(("%s was called w/o DHCP OFF. Continue\n", __FUNCTION__));
} |
functions | endif
if (saved_status == TRUE) {
regaddr = 66;
dev_wlc_intvar_set_reg(dev, "btc_params",
(char *)®addr, (char *)&saved_reg66);
regaddr = 41;
dev_wlc_intvar_set_reg(dev, "btc_params",
(char *)®addr, (char *)&saved_reg41);
regaddr = 68;
dev_wlc_intvar_set_reg(dev, "btc_params",
... |
functions | int
wl_iw_set_suspend(
struct net_device *dev,
struct iw_request_info *info,
union iwreq_data *wrqu,
char *extra
)
{
int suspend_flag;
int ret_now;
int ret = 0;
suspend_flag = *(extra + strlen(SETSUSPEND_CMD) + 1) - '0';
if (suspend_flag != 0)
suspend_flag = 1;
ret_now = net_os_set_suspend_disable(dev, suspe... |
functions | int
wl_format_ssid(char* ssid_buf, uint8* ssid, int ssid_len)
{
int i, c;
char *p = ssid_buf;
if (ssid_len > 32) ssid_len = 32;
for (i = 0; i < ssid_len; i++) {
c = (int)ssid[i];
if (c == '\\') {
*p++ = '\\';
*p++ = '\\';
} |
functions | int
wl_iw_get_link_speed(
struct net_device *dev,
struct iw_request_info *info,
union iwreq_data *wrqu,
char *extra
)
{
int error = 0;
char *p = extra;
static int link_speed;
net_os_wake_lock(dev);
if (g_onoff == G_WLAN_SET_ON) {
error = dev_wlc_ioctl(dev, WLC_GET_RATE, &link_speed, sizeof(link_speed));
... |
functions | int
wl_iw_get_dtim_skip(
struct net_device *dev,
struct iw_request_info *info,
union iwreq_data *wrqu,
char *extra
)
{
int error = -1;
char *p = extra;
char iovbuf[32];
net_os_wake_lock(dev);
if (g_onoff == G_WLAN_SET_ON) {
memset(iovbuf, 0, sizeof(iovbuf));
strcpy(iovbuf, "bcn_li_dtim");
if ((erro... |
functions | int
wl_iw_set_dtim_skip(
struct net_device *dev,
struct iw_request_info *info,
union iwreq_data *wrqu,
char *extra
)
{
int error = -1;
char *p = extra;
int bcn_li_dtim;
char iovbuf[32];
net_os_wake_lock(dev);
if (g_onoff == G_WLAN_SET_ON) {
bcn_li_dtim = htod32((uint)*(extra + strlen(DTIM_SKIP_SET_CMD) + ... |
functions | int
wl_iw_get_band(
struct net_device *dev,
struct iw_request_info *info,
union iwreq_data *wrqu,
char *extra
)
{
int error = -1;
char *p = extra;
static int band;
net_os_wake_lock(dev);
if (g_onoff == G_WLAN_SET_ON) {
error = dev_wlc_ioctl(dev, WLC_GET_BAND, &band, sizeof(band));
p += snprintf(p, MAX_W... |
functions | int
wl_iw_set_band(
struct net_device *dev,
struct iw_request_info *info,
union iwreq_data *wrqu,
char *extra
)
{
int error = -1;
char *p = extra;
uint band;
net_os_wake_lock(dev);
if (g_onoff == G_WLAN_SET_ON) {
band = htod32((uint)*(extra + strlen(BAND_SET_CMD) + 1) - '0');
if ((band == WLC_BAND_AUTO... |
functions | int
wl_iw_set_pno_reset(
struct net_device *dev,
struct iw_request_info *info,
union iwreq_data *wrqu,
char *extra
)
{
int error = -1;
char *p = extra;
net_os_wake_lock(dev);
if ((g_onoff == G_WLAN_SET_ON) && (dev != NULL)) {
if ((error = dhd_dev_pno_reset(dev)) >= 0) {
p += snprintf(p, MAX_WX_STRING, "... |
functions | int
wl_iw_set_pno_enable(
struct net_device *dev,
struct iw_request_info *info,
union iwreq_data *wrqu,
char *extra
)
{
int error = -1;
char *p = extra;
int pfn_enabled;
net_os_wake_lock(dev);
pfn_enabled = htod32((uint)*(extra + strlen(PNOENABLE_SET_CMD) + 1) - '0');
if ((g_onoff == G_WLAN_SET_ON) && (dev ... |
functions | int
wl_iw_set_pno_set(
struct net_device *dev,
struct iw_request_info *info,
union iwreq_data *wrqu,
char *extra
)
{
int res = -1;
wlc_ssid_t ssids_local[MAX_PFN_LIST_COUNT];
int nssid = 0;
cmd_tlv_t *cmd_tlv_temp;
char *str_ptr;
int tlv_size_left;
int pno_time;
int pno_repeat;
int pno_freq_expo_max;
#ifde... |
functions | int
wl_iw_get_rssi(
struct net_device *dev,
struct iw_request_info *info,
union iwreq_data *wrqu,
char *extra
)
{
static int rssi = 0;
static wlc_ssid_t ssid = {0} |
functions | int
wl_iw_send_priv_event(
struct net_device *dev,
char *flag
)
{
union iwreq_data wrqu;
char extra[IW_CUSTOM_MAX + 1];
int cmd;
cmd = IWEVCUSTOM;
memset(&wrqu, 0, sizeof(wrqu));
if (strlen(flag) > sizeof(extra))
return -1;
strcpy(extra, flag);
wrqu.data.length = strlen(extra);
wireless_send_event(dev, c... |
functions | int
wl_control_wl_start(struct net_device *dev)
{
wl_iw_t *iw;
int ret = 0;
WL_TRACE(("Enter %s \n", __FUNCTION__));
if (!dev) {
WL_ERROR(("%s: dev is null\n", __FUNCTION__));
return -1;
} |
functions | int
wl_iw_control_wl_off(
struct net_device *dev,
struct iw_request_info *info
)
{
wl_iw_t *iw;
int ret = 0;
WL_TRACE(("Enter %s\n", __FUNCTION__));
if (!dev) {
WL_ERROR(("%s: dev is null\n", __FUNCTION__));
return -1;
} |
functions | endif
if (g_onoff == G_WLAN_SET_ON) {
g_onoff = G_WLAN_SET_OFF;
#if defined(WL_IW_USE_ISCAN)
g_iscan->iscan_state = ISCAN_STATE_IDLE;
#endif
dhd_dev_reset(dev, 1);
#if defined(WL_IW_USE_ISCAN)
#if !defined(CSCAN)
wl_iw_free_ss_cache();
wl_iw_run_ss_cache_timer(0);
g_ss_cache_ctrl.m_link_down = ... |
functions | int
wl_iw_control_wl_on(
struct net_device *dev,
struct iw_request_info *info
)
{
int ret = 0;
WL_TRACE(("Enter %s \n", __FUNCTION__));
ret = wl_control_wl_start(dev);
wl_iw_send_priv_event(dev, "START");
#ifdef SOFTAP
if (!ap_fw_loaded) {
wl_iw_iscan_set_scan_broadcast_prep(dev, 0);
} |
functions | int
hex2num(char c)
{
if (c >= '0' && c <= '9')
return c - '0';
if (c >= 'a' && c <= 'f')
return c - 'a' + 10;
if (c >= 'A' && c <= 'F')
return c - 'A' + 10;
return -1;
} |
functions | int
hstr_2_buf(const char *txt, u8 *buf, int len)
{
int i;
for (i = 0; i < len; i++) {
int a, b;
a = hex2num(*txt++);
if (a < 0)
return -1;
b = hex2num(*txt++);
if (b < 0)
return -1;
*buf++ = (a << 4) | b;
} |
functions | int
init_ap_profile_from_string(char *param_str, struct ap_profile *ap_cfg)
{
char *str_ptr = param_str;
char sub_cmd[16];
int ret = 0;
memset(sub_cmd, 0, sizeof(sub_cmd));
memset(ap_cfg, 0, sizeof(struct ap_profile));
if (get_parameter_from_string(&str_ptr, "ASCII_CMD=",
PTYPE_STRING, sub_cmd, SSID_LEN) !=... |
functions | int
iwpriv_set_ap_config(struct net_device *dev,
struct iw_request_info *info,
union iwreq_data *wrqu,
char *ext)
{
int res = 0;
char *extra = NULL;
struct ap_profile *ap_cfg = &my_ap;
WL_TRACE(("> Got IWPRIV SET_AP IOCTL: info->cmd:%x, info->flags:%x, u.data:%p, u.len:%d\n",
... |
functions | int iwpriv_get_assoc_list(struct net_device *dev,
struct iw_request_info *info,
union iwreq_data *p_iwrq,
char *extra)
{
int i, ret = 0;
char mac_buf[256];
struct maclist *sta_maclist = (struct maclist *)mac_buf;
char mac_lst[384];
char *p_mac_str;
char *p_mac_str_end;
wl_iw_t *iw;
if ... |
functions | int iwpriv_set_mac_filters(struct net_device *dev,
struct iw_request_info *info,
union iwreq_data *wrqu,
char *ext)
{
int i, ret = -1;
char * extra = NULL;
int mac_cnt = 0;
int mac_mode = 0;
struct ether_addr *p_ea;
struct mac_list_set mflist_set;
WL_SOFTAP((">>> Got IWPRIV SET_MAC_FI... |
functions | int iwpriv_set_ap_sta_disassoc(struct net_device *dev,
struct iw_request_info *info,
union iwreq_data *wrqu,
char *ext)
{
int res = 0;
char sta_mac[6] = {0, 0, 0, 0, 0, 0} |
functions | int
wl_iw_config_commit(
struct net_device *dev,
struct iw_request_info *info,
void *zwrq,
char *extra
)
{
wlc_ssid_t ssid;
int error;
struct sockaddr bssid;
WL_TRACE(("%s: SIOCSIWCOMMIT\n", dev->name));
if ((error = dev_wlc_ioctl(dev, WLC_GET_SSID, &ssid, sizeof(ssid))))
return error;
ssid.SSID_len = dt... |
functions | int
wl_iw_get_name(
struct net_device *dev,
struct iw_request_info *info,
char *cwrq,
char *extra
)
{
WL_TRACE(("%s: SIOCGIWNAME\n", dev->name));
strcpy(cwrq, "IEEE 802.11-DS");
return 0;
} |
functions | int
wl_iw_set_freq(
struct net_device *dev,
struct iw_request_info *info,
struct iw_freq *fwrq,
char *extra
)
{
int error, chan;
uint sf = 0;
WL_TRACE(("%s %s: SIOCSIWFREQ\n", __FUNCTION__, dev->name));
#if defined(SOFTAP)
if (ap_cfg_running) {
WL_TRACE(("%s:>> not executed, 'SOFT_AP is active' \n", __FUNCT... |
functions | endif
if (fwrq->e == 0 && fwrq->m < MAXCHANNEL) {
chan = fwrq->m;
} |
functions | else if (fwrq->e < 6) {
while (fwrq->e++ < 6)
fwrq->m /= 10;
} |
functions | int
wl_iw_get_freq(
struct net_device *dev,
struct iw_request_info *info,
struct iw_freq *fwrq,
char *extra
)
{
channel_info_t ci;
int error;
WL_TRACE(("%s: SIOCGIWFREQ\n", dev->name));
if ((error = dev_wlc_ioctl(dev, WLC_GET_CHANNEL, &ci, sizeof(ci))))
return error;
fwrq->m = dtoh32(ci.hw_channel);
fw... |
functions | int
wl_iw_set_mode(
struct net_device *dev,
struct iw_request_info *info,
__u32 *uwrq,
char *extra
)
{
int infra = 0, ap = 0, error = 0;
WL_TRACE(("%s: SIOCSIWMODE\n", dev->name));
switch (*uwrq) {
case IW_MODE_MASTER:
infra = ap = 1;
break;
case IW_MODE_ADHOC:
case IW_MODE_AUTO:
break;
case IW_MODE_... |
functions | int
wl_iw_get_mode(
struct net_device *dev,
struct iw_request_info *info,
__u32 *uwrq,
char *extra
)
{
int error, infra = 0, ap = 0;
WL_TRACE(("%s: SIOCGIWMODE\n", dev->name));
if ((error = dev_wlc_ioctl(dev, WLC_GET_INFRA, &infra, sizeof(infra))) ||
(error = dev_wlc_ioctl(dev, WLC_GET_AP, &ap, sizeof(ap)... |
functions | int
wl_iw_get_range(
struct net_device *dev,
struct iw_request_info *info,
struct iw_point *dwrq,
char *extra
)
{
struct iw_range *range = (struct iw_range *) extra;
wl_uint32_list_t *list;
wl_rateset_t rateset;
int8 *channels;
int error, i, k;
uint sf, ch;
int phytype;
int bw_cap = 0, sgi_tx = 0, nmode = ... |
functions | int
rssi_to_qual(int rssi)
{
if (rssi <= WL_IW_RSSI_NO_SIGNAL)
return 0;
else if (rssi <= WL_IW_RSSI_VERY_LOW)
return 1;
else if (rssi <= WL_IW_RSSI_LOW)
return 2;
else if (rssi <= WL_IW_RSSI_GOOD)
return 3;
else if (rssi <= WL_IW_RSSI_VERY_GOOD)
return 4;
else
return 5;
} |
functions | int
wl_iw_set_spy(
struct net_device *dev,
struct iw_request_info *info,
struct iw_point *dwrq,
char *extra
)
{
wl_iw_t *iw = NETDEV_PRIV(dev);
struct sockaddr *addr = (struct sockaddr *) extra;
int i;
WL_TRACE(("%s: SIOCSIWSPY\n", dev->name));
if (!extra)
return -EINVAL;
iw->spy_num = MIN(ARRAYSIZE(iw->... |
functions | int
wl_iw_get_spy(
struct net_device *dev,
struct iw_request_info *info,
struct iw_point *dwrq,
char *extra
)
{
wl_iw_t *iw = NETDEV_PRIV(dev);
struct sockaddr *addr = (struct sockaddr *) extra;
struct iw_quality *qual = (struct iw_quality *) &addr[iw->spy_num];
int i;
WL_TRACE(("%s: SIOCGIWSPY\n", dev->name)... |
functions | int
wl_iw_ch_to_chanspec(int ch, wl_join_params_t *join_params, int *join_params_size)
{
chanspec_t chanspec = 0;
if (ch != 0) {
join_params->params.chanspec_num = 1;
join_params->params.chanspec_list[0] = ch;
if (join_params->params.chanspec_list[0])
chanspec |= WL_CHANSPEC_BAND_2G;
else
chanspec ... |
functions | int
wl_iw_set_wap(
struct net_device *dev,
struct iw_request_info *info,
struct sockaddr *awrq,
char *extra
)
{
int error = -EINVAL;
wl_join_params_t join_params;
int join_params_size;
WL_TRACE(("%s: SIOCSIWAP\n", dev->name));
if (awrq->sa_family != ARPHRD_ETHER) {
WL_ERROR(("Invalid Header...sa_family\n")... |
functions | int
wl_iw_get_wap(
struct net_device *dev,
struct iw_request_info *info,
struct sockaddr *awrq,
char *extra
)
{
WL_TRACE(("%s: SIOCGIWAP\n", dev->name));
awrq->sa_family = ARPHRD_ETHER;
memset(awrq->sa_data, 0, ETHER_ADDR_LEN);
(void) dev_wlc_ioctl(dev, WLC_GET_BSSID, awrq->sa_data, ETHER_ADDR_LEN);
retur... |
functions | int
wl_iw_mlme(
struct net_device *dev,
struct iw_request_info *info,
struct sockaddr *awrq,
char *extra
)
{
struct iw_mlme *mlme;
scb_val_t scbval;
int error = -EINVAL;
WL_TRACE(("%s: SIOCSIWMLME DISASSOC/DEAUTH\n", dev->name));
mlme = (struct iw_mlme *)extra;
if (mlme == NULL) {
WL_ERROR(("Invalid ioct... |
functions | else if (mlme->cmd == IW_MLME_DEAUTH) {
scbval.val = htod32(scbval.val);
error = dev_wlc_ioctl(dev, WLC_SCB_DEAUTHENTICATE_FOR_REASON, &scbval,
sizeof(scb_val_t));
} |
functions | int
wl_iw_get_aplist(
struct net_device *dev,
struct iw_request_info *info,
struct iw_point *dwrq,
char *extra
)
{
wl_scan_results_t *list;
struct sockaddr *addr = (struct sockaddr *) extra;
struct iw_quality qual[IW_MAX_AP];
wl_bss_info_t *bi = NULL;
int error, i;
uint buflen = dwrq->length;
WL_TRACE(("%s:... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.