type stringclasses 5
values | content stringlengths 9 163k |
|---|---|
functions | int
wl_iw_iscan_get_aplist(
struct net_device *dev,
struct iw_request_info *info,
struct iw_point *dwrq,
char *extra
)
{
wl_scan_results_t *list;
iscan_buf_t * buf;
iscan_info_t *iscan = g_iscan;
struct sockaddr *addr = (struct sockaddr *) extra;
struct iw_quality qual[IW_MAX_AP];
wl_bss_info_t *bi = NULL;
... |
functions | int
wl_iw_iscan_prep(wl_scan_params_t *params, wlc_ssid_t *ssid)
{
int err = 0;
memcpy(¶ms->bssid, ðer_bcast, ETHER_ADDR_LEN);
params->bss_type = DOT11_BSSTYPE_ANY;
params->scan_type = 0;
params->nprobes = -1;
params->active_time = -1;
params->passive_time = -1;
params->home_time = -1;
params->channel_... |
functions | int
wl_iw_iscan(iscan_info_t *iscan, wlc_ssid_t *ssid, uint16 action)
{
int err = 0;
iscan->iscan_ex_params_p->version = htod32(ISCAN_REQ_VERSION);
iscan->iscan_ex_params_p->action = htod16(action);
iscan->iscan_ex_params_p->scan_duration = htod16(0);
WL_SCAN(("%s : nprobes=%d\n", __FUNCTION__, iscan->iscan_ex_p... |
functions | void
wl_iw_timerfunc(ulong data)
{
iscan_info_t *iscan = (iscan_info_t *)data;
if (iscan) {
iscan->timer_on = 0;
if (iscan->iscan_state != ISCAN_STATE_IDLE) {
WL_TRACE(("timer trigger\n"));
up(&iscan->tsk_ctl.sema);
} |
functions | void
wl_iw_set_event_mask(struct net_device *dev)
{
char eventmask[WL_EVENTING_MASK_LEN];
char iovbuf[WL_EVENTING_MASK_LEN + 12];
dev_iw_iovar_getbuf(dev, "event_msgs", "", 0, iovbuf, sizeof(iovbuf));
bcopy(iovbuf, eventmask, WL_EVENTING_MASK_LEN);
setbit(eventmask, WLC_E_SCAN_COMPLETE);
dev_iw_iovar_setbuf(dev... |
functions | uint32
wl_iw_iscan_get(iscan_info_t *iscan)
{
iscan_buf_t * buf;
iscan_buf_t * ptr;
wl_iscan_results_t * list_buf;
wl_iscan_results_t list;
wl_scan_results_t *results;
uint32 status;
int res = 0;
DHD_OS_MUTEX_LOCK(&wl_cache_lock);
if (iscan->list_cur) {
buf = iscan->list_cur;
iscan->list_cur = buf->next;
... |
functions | void
wl_iw_force_specific_scan(iscan_info_t *iscan)
{
WL_TRACE(("%s force Specific SCAN for %s\n", __FUNCTION__, g_specific_ssid.SSID));
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 27))
rtnl_lock();
#endif
(void) dev_wlc_ioctl(iscan->dev, WLC_SCAN, &g_specific_ssid, sizeof(g_specific_ssid));
#if (LINUX_VERSION... |
functions | void
wl_iw_send_scan_complete(iscan_info_t *iscan)
{
union iwreq_data wrqu;
memset(&wrqu, 0, sizeof(wrqu));
wireless_send_event(iscan->dev, SIOCGIWSCAN, &wrqu, NULL);
#if defined(CONFIG_FIRST_SCAN)
if (g_first_broadcast_scan == BROADCAST_SCAN_FIRST_STARTED)
g_first_broadcast_scan = BROADCAST_SCAN_FIRST_RESU... |
functions | int
_iscan_sysioc_thread(void *data)
{
uint32 status;
tsk_ctl_t *tsk_ctl = (tsk_ctl_t *)data;
iscan_info_t *iscan = (iscan_info_t *) tsk_ctl->parent;
static bool iscan_pass_abort = FALSE;
DAEMONIZE("iscan_sysioc");
status = WL_SCAN_RESULTS_PARTIAL;
complete(&tsk_ctl->completed);
while (down_interruptib... |
functions | endif
if (iscan->timer_on) {
iscan->timer_on = 0;
del_timer_sync(&iscan->timer);
} |
functions | void
wl_iw_set_ss_cache_timer_flag(void)
{
g_ss_cache_ctrl.m_timer_expired = 1;
WL_TRACE(("%s called\n", __FUNCTION__));
} |
functions | int
wl_iw_init_ss_cache_ctrl(void)
{
WL_TRACE(("%s :\n", __FUNCTION__));
g_ss_cache_ctrl.m_prev_scan_mode = 0;
g_ss_cache_ctrl.m_cons_br_scan_cnt = 0;
g_ss_cache_ctrl.m_cache_head = NULL;
g_ss_cache_ctrl.m_link_down = 0;
g_ss_cache_ctrl.m_timer_expired = 0;
memset(g_ss_cache_ctrl.m_active_bssid, 0, ETHER_ADDR_LE... |
functions | void
wl_iw_free_ss_cache(void)
{
wl_iw_ss_cache_t *node, *cur;
wl_iw_ss_cache_t **spec_scan_head;
WL_TRACE(("%s called\n", __FUNCTION__));
DHD_OS_MUTEX_LOCK(&wl_cache_lock);
spec_scan_head = &g_ss_cache_ctrl.m_cache_head;
node = *spec_scan_head;
for (;node;) {
WL_TRACE(("%s : SSID - %s\n", __FUNCTION__, nod... |
functions | int
wl_iw_run_ss_cache_timer(int kick_off)
{
struct timer_list **timer;
timer = &g_ss_cache_ctrl.m_timer;
if (*timer) {
if (kick_off) {
#ifdef CONFIG_PRESCANNED
(*timer)->expires = jiffies + 70000 * HZ / 1000;
#else
(*timer)->expires = jiffies + 30000 * HZ / 1000;
#endif
add_timer(*timer);
WL_TRACE(... |
functions | void
wl_iw_release_ss_cache_ctrl(void)
{
WL_TRACE(("%s :\n", __FUNCTION__));
wl_iw_free_ss_cache();
wl_iw_run_ss_cache_timer(0);
if (g_ss_cache_ctrl.m_timer) {
kfree(g_ss_cache_ctrl.m_timer);
} |
functions | void
wl_iw_reset_ss_cache(void)
{
wl_iw_ss_cache_t *node, *prev, *cur;
wl_iw_ss_cache_t **spec_scan_head;
DHD_OS_MUTEX_LOCK(&wl_cache_lock);
spec_scan_head = &g_ss_cache_ctrl.m_cache_head;
node = *spec_scan_head;
prev = node;
for (;node;) {
WL_TRACE(("%s : node SSID %s \n", __FUNCTION__, node->bss_info->SSID... |
functions | int
wl_iw_add_bss_to_ss_cache(wl_scan_results_t *ss_list)
{
wl_iw_ss_cache_t *node, *prev, *leaf;
wl_iw_ss_cache_t **spec_scan_head;
wl_bss_info_t *bi = NULL;
int i;
if (!ss_list->count) {
return 0;
} |
functions | int
wl_iw_merge_scan_cache(struct iw_request_info *info, char *extra, uint buflen_from_user,
__u16 *merged_len)
{
wl_iw_ss_cache_t *node;
wl_scan_results_t *list_merge;
DHD_OS_MUTEX_LOCK(&wl_cache_lock);
node = g_ss_cache_ctrl.m_cache_head;
for (;node;) {
list_merge = (wl_scan_results_t *)&node->buflen;
WL_TR... |
functions | int
wl_iw_delete_bss_from_ss_cache(void *addr)
{
wl_iw_ss_cache_t *node, *prev;
wl_iw_ss_cache_t **spec_scan_head;
DHD_OS_MUTEX_LOCK(&wl_cache_lock);
spec_scan_head = &g_ss_cache_ctrl.m_cache_head;
node = *spec_scan_head;
prev = node;
for (;node;) {
if (!memcmp(&node->bss_info->BSSID, addr, ETHER_ADDR_LEN)) ... |
functions | int
wl_iw_set_scan(
struct net_device *dev,
struct iw_request_info *info,
union iwreq_data *wrqu,
char *extra
)
{
int error;
WL_TRACE(("\n:%s dev:%s: SIOCSIWSCAN : SCAN\n", __FUNCTION__, dev->name));
#ifdef OEM_CHROMIUMOS
g_set_essid_before_scan = FALSE;
#endif
#if defined(CSCAN)
WL_ERROR(("%s: Scan from SIO... |
functions | endif
if (g_scan_specified_ssid) {
WL_TRACE(("%s Specific SCAN is not done ignore scan for = %s \n",
__FUNCTION__, req->essid));
return -EBUSY;
} |
functions | int
wl_iw_iscan_set_scan_broadcast_prep(struct net_device *dev, uint flag)
{
wlc_ssid_t ssid;
iscan_info_t *iscan = g_iscan;
#if defined(CONFIG_FIRST_SCAN)
if (g_first_broadcast_scan == BROADCAST_SCAN_FIRST_IDLE) {
g_first_broadcast_scan = BROADCAST_SCAN_FIRST_STARTED;
WL_TRACE(("%s: First Brodcast scan was f... |
functions | else if (g_first_broadcast_scan == BROADCAST_SCAN_FIRST_STARTED) {
WL_TRACE(("%s: ignore ISCAN request first BS is not done yet\n", __FUNCTION__));
return 0;
} |
functions | int
wl_iw_iscan_set_scan(
struct net_device *dev,
struct iw_request_info *info,
union iwreq_data *wrqu,
char *extra
)
{
wlc_ssid_t ssid;
iscan_info_t *iscan = g_iscan;
int ret = 0;
WL_TRACE_SCAN(("%s: SIOCSIWSCAN : ISCAN\n", dev->name));
#if defined(CSCAN)
WL_ERROR(("%s: Scan from SIOCGIWSCAN not supported\... |
functions | endif
if (g_onoff == G_WLAN_SET_OFF) {
WL_TRACE(("%s: driver is not up yet after START\n", __FUNCTION__));
goto set_scan_end;
} |
functions | bool
ie_is_wpa_ie(uint8 **wpaie, uint8 **tlvs, int *tlvs_len)
{
uint8 *ie = *wpaie;
if ((ie[1] >= 6) &&
!bcmp((const void *)&ie[2], (const void *)(WPA_OUI "\x01"), 4)) {
return TRUE;
} |
functions | bool
ie_is_wps_ie(uint8 **wpsie, uint8 **tlvs, int *tlvs_len)
{
uint8 *ie = *wpsie;
if ((ie[1] >= 4) &&
!bcmp((const void *)&ie[2], (const void *)(WPA_OUI "\x04"), 4)) {
return TRUE;
} |
functions | int
wl_iw_handle_scanresults_ies(char **event_p, char *end,
struct iw_request_info *info, wl_bss_info_t *bi)
{
#if WIRELESS_EXT > 17
struct iw_event iwe;
char *event;
event = *event_p;
if (bi->ie_length) {
bcm_tlv_t *ie;
uint8 *ptr = ((uint8 *)bi) + sizeof(wl_bss_info_t);
int ptr_len = bi->ie_length;
... |
functions | uint
wl_iw_get_scan_prep(
wl_scan_results_t *list,
struct iw_request_info *info,
char *extra,
short max_size)
{
int i, j;
struct iw_event iwe;
wl_bss_info_t *bi = NULL;
char *event = extra, *end = extra + max_size - WE_ADD_EVENT_FIX, *value;
int ret = 0;
if (!list) {
WL_ERROR(("%s: Null list pointer", __... |
functions | int
wl_iw_get_scan(
struct net_device *dev,
struct iw_request_info *info,
struct iw_point *dwrq,
char *extra
)
{
channel_info_t ci;
wl_scan_results_t *list_merge;
wl_scan_results_t *list = (wl_scan_results_t *) g_scan;
int error;
uint buflen_from_user = dwrq->length;
uint len = G_SCAN_RESULTS;
__u16 len_ret... |
functions | endif
if (g_scan_specified_ssid) {
list = kmalloc(len, GFP_KERNEL);
if (!list) {
WL_TRACE(("%s: wl_iw_get_scan return -ENOMEM\n", dev->name));
g_scan_specified_ssid = 0;
return -ENOMEM;
} |
functions | else
if (g_scan_specified_ssid) {
WL_TRACE(("%s: Specified scan APs in the list =%d\n", __FUNCTION__, list->count));
len_ret = (__u16) wl_iw_get_scan_prep(list, info, extra, buflen_from_user);
kfree(list);
#if defined(WL_IW_USE_ISCAN)
p_buf = iscan->list_hdr;
while (p_buf != iscan->list_cur) {
lis... |
functions | int
wl_iw_iscan_get_scan(
struct net_device *dev,
struct iw_request_info *info,
struct iw_point *dwrq,
char *extra
)
{
wl_scan_results_t *list;
struct iw_event iwe;
wl_bss_info_t *bi = NULL;
int ii, j;
int apcnt;
char *event = extra, *end = extra + dwrq->length, *value;
iscan_info_t *iscan = g_iscan;
iscan_... |
functions | endif
if (!extra) {
WL_TRACE(("%s: INVALID SIOCGIWSCAN GET bad parameter\n", dev->name));
return -EINVAL;
} |
functions | int
check_prescan(wl_join_params_t *join_params, int *join_params_size)
{
int cnt = 0;
int indx = 0;
wl_iw_ss_cache_t *node = NULL;
wl_bss_info_t *bi = NULL;
iscan_info_t *iscan = g_iscan;
iscan_buf_t * buf;
wl_scan_results_t *list;
char *destbuf;
buf = iscan->list_hdr;
while (buf) {
list = &((wl_iscan_re... |
functions | int
wl_iw_set_essid(
struct net_device *dev,
struct iw_request_info *info,
struct iw_point *dwrq,
char *extra
)
{
int error;
wl_join_params_t *join_params;
int join_params_size;
WL_TRACE(("%s: SIOCSIWESSID\n", dev->name));
RETURN_IF_EXTRA_NULL(extra);
#ifdef OEM_CHROMIUMOS
if (g_set_essid_before_scan)
re... |
functions | int
wl_iw_get_essid(
struct net_device *dev,
struct iw_request_info *info,
struct iw_point *dwrq,
char *extra
)
{
wlc_ssid_t ssid;
int error;
WL_TRACE(("%s: SIOCGIWESSID\n", dev->name));
if (!extra)
return -EINVAL;
if ((error = dev_wlc_ioctl(dev, WLC_GET_SSID, &ssid, sizeof(ssid)))) {
WL_ERROR(("Error g... |
functions | int
wl_iw_set_nick(
struct net_device *dev,
struct iw_request_info *info,
struct iw_point *dwrq,
char *extra
)
{
wl_iw_t *iw = NETDEV_PRIV(dev);
WL_TRACE(("%s: SIOCSIWNICKN\n", dev->name));
if (!extra)
return -EINVAL;
if (dwrq->length > sizeof(iw->nickname))
return -E2BIG;
memcpy(iw->nickname, extra,... |
functions | int
wl_iw_get_nick(
struct net_device *dev,
struct iw_request_info *info,
struct iw_point *dwrq,
char *extra
)
{
wl_iw_t *iw = NETDEV_PRIV(dev);
WL_TRACE(("%s: SIOCGIWNICKN\n", dev->name));
if (!extra)
return -EINVAL;
strcpy(extra, iw->nickname);
dwrq->length = strlen(extra) + 1;
return 0;
} |
functions | int
wl_iw_set_rate(
struct net_device *dev,
struct iw_request_info *info,
struct iw_param *vwrq,
char *extra
)
{
wl_rateset_t rateset;
int error, rate, i, error_bg, error_a;
WL_TRACE(("%s: SIOCSIWRATE\n", dev->name));
if ((error = dev_wlc_ioctl(dev, WLC_GET_CURR_RATESET, &rateset, sizeof(rateset))))
retur... |
functions | else if (vwrq->value < rateset.count) {
rate = rateset.rates[vwrq->value] & 0x7f;
} |
functions | int
wl_iw_get_rate(
struct net_device *dev,
struct iw_request_info *info,
struct iw_param *vwrq,
char *extra
)
{
int error, rate;
WL_TRACE(("%s: SIOCGIWRATE\n", dev->name));
if ((error = dev_wlc_ioctl(dev, WLC_GET_RATE, &rate, sizeof(rate))))
return error;
rate = dtoh32(rate);
vwrq->value = rate * 500000... |
functions | int
wl_iw_set_rts(
struct net_device *dev,
struct iw_request_info *info,
struct iw_param *vwrq,
char *extra
)
{
int error, rts;
WL_TRACE(("%s: SIOCSIWRTS\n", dev->name));
if (vwrq->disabled)
rts = DOT11_DEFAULT_RTS_LEN;
else if (vwrq->value < 0 || vwrq->value > DOT11_DEFAULT_RTS_LEN)
return -EINVAL;
else... |
functions | int
wl_iw_get_rts(
struct net_device *dev,
struct iw_request_info *info,
struct iw_param *vwrq,
char *extra
)
{
int error, rts;
WL_TRACE(("%s: SIOCGIWRTS\n", dev->name));
if ((error = dev_wlc_intvar_get(dev, "rtsthresh", &rts)))
return error;
vwrq->value = rts;
vwrq->disabled = (rts >= DOT11_DEFAULT_RTS_L... |
functions | int
wl_iw_set_frag(
struct net_device *dev,
struct iw_request_info *info,
struct iw_param *vwrq,
char *extra
)
{
int error, frag;
WL_TRACE(("%s: SIOCSIWFRAG\n", dev->name));
if (vwrq->disabled)
frag = DOT11_DEFAULT_FRAG_LEN;
else if (vwrq->value < 0 || vwrq->value > DOT11_DEFAULT_FRAG_LEN)
return -EINVAL;... |
functions | int
wl_iw_get_frag(
struct net_device *dev,
struct iw_request_info *info,
struct iw_param *vwrq,
char *extra
)
{
int error, fragthreshold;
WL_TRACE(("%s: SIOCGIWFRAG\n", dev->name));
if ((error = dev_wlc_intvar_get(dev, "fragthresh", &fragthreshold)))
return error;
vwrq->value = fragthreshold;
vwrq->disab... |
functions | int
wl_iw_set_txpow(
struct net_device *dev,
struct iw_request_info *info,
struct iw_param *vwrq,
char *extra
)
{
int error, disable;
uint16 txpwrmw;
WL_TRACE(("%s: SIOCSIWTXPOW\n", dev->name));
disable = vwrq->disabled ? WL_RADIO_SW_DISABLE : 0;
disable += WL_RADIO_SW_DISABLE << 16;
disable = htod32(disa... |
functions | int
wl_iw_get_txpow(
struct net_device *dev,
struct iw_request_info *info,
struct iw_param *vwrq,
char *extra
)
{
int error, disable, txpwrdbm;
uint8 result;
WL_TRACE(("%s: SIOCGIWTXPOW\n", dev->name));
if ((error = dev_wlc_ioctl(dev, WLC_GET_RADIO, &disable, sizeof(disable))) ||
(error = dev_wlc_intvar_... |
functions | int
wl_iw_set_retry(
struct net_device *dev,
struct iw_request_info *info,
struct iw_param *vwrq,
char *extra
)
{
int error, lrl, srl;
WL_TRACE(("%s: SIOCSIWRETRY\n", dev->name));
if (vwrq->disabled || (vwrq->flags & IW_RETRY_LIFETIME))
return -EINVAL;
if (vwrq->flags & IW_RETRY_LIMIT) {
#if WIRELE... |
functions | int
wl_iw_get_retry(
struct net_device *dev,
struct iw_request_info *info,
struct iw_param *vwrq,
char *extra
)
{
int error, lrl, srl;
WL_TRACE(("%s: SIOCGIWRETRY\n", dev->name));
vwrq->disabled = 0;
if ((vwrq->flags & IW_RETRY_TYPE) == IW_RETRY_LIFETIME)
return -EINVAL;
if ((error = dev_wlc_io... |
functions | int
wl_iw_set_encode(
struct net_device *dev,
struct iw_request_info *info,
struct iw_point *dwrq,
char *extra
)
{
wl_wsec_key_t key;
int error, val, wsec;
WL_TRACE(("%s: SIOCSIWENCODE index %d, len %d, flags %04x (%s%s%s%s%s)\n",
dev->name, dwrq->flags & IW_ENCODE_INDEX, dwrq->length, dwrq->flags,
dwrq->fl... |
functions | int
wl_iw_get_encode(
struct net_device *dev,
struct iw_request_info *info,
struct iw_point *dwrq,
char *extra
)
{
wl_wsec_key_t key;
int error, val, wsec, auth;
WL_TRACE(("%s: SIOCGIWENCODE\n", dev->name));
bzero(&key, sizeof(wl_wsec_key_t));
if ((dwrq->flags & IW_ENCODE_INDEX) == 0) {
for (key.inde... |
functions | int
wl_iw_set_power(
struct net_device *dev,
struct iw_request_info *info,
struct iw_param *vwrq,
char *extra
)
{
int error, pm;
WL_TRACE(("%s: SIOCSIWPOWER\n", dev->name));
pm = vwrq->disabled ? PM_OFF : PM_MAX;
pm = htod32(pm);
if ((error = dev_wlc_ioctl(dev, WLC_SET_PM, &pm, sizeof(pm))))
return error;... |
functions | int
wl_iw_get_power(
struct net_device *dev,
struct iw_request_info *info,
struct iw_param *vwrq,
char *extra
)
{
int error, pm;
WL_TRACE(("%s: SIOCGIWPOWER\n", dev->name));
if ((error = dev_wlc_ioctl(dev, WLC_GET_PM, &pm, sizeof(pm))))
return error;
pm = dtoh32(pm);
vwrq->disabled = pm ? 0 : 1;
vwrq->fl... |
functions | int
wl_iw_set_wpaie(
struct net_device *dev,
struct iw_request_info *info,
struct iw_point *iwp,
char *extra
)
{
WL_TRACE(("%s: SIOCSIWGENIE\n", dev->name));
RETURN_IF_EXTRA_NULL(extra);
#ifdef DHD_DEBUG
{
int i;
for (i = 0; i < iwp->length; i++)
WL_TRACE(("%02X ", extra[i]));
WL_TRACE(("\n"));
} |
functions | int
wl_iw_get_wpaie(
struct net_device *dev,
struct iw_request_info *info,
struct iw_point *iwp,
char *extra
)
{
WL_TRACE(("%s: SIOCGIWGENIE\n", dev->name));
iwp->length = 64;
dev_wlc_bufvar_get(dev, "wpaie", extra, iwp->length);
return 0;
} |
functions | int
wl_iw_set_encodeext(
struct net_device *dev,
struct iw_request_info *info,
struct iw_point *dwrq,
char *extra
)
{
wl_wsec_key_t key;
int error;
struct iw_encode_ext *iwe;
WL_TRACE(("%s: SIOCSIWENCODEEXT\n", dev->name));
RETURN_IF_EXTRA_NULL(extra);
memset(&key, 0, sizeof(key));
iwe = (struct iw_encode... |
functions | int
wl_iw_set_pmksa(
struct net_device *dev,
struct iw_request_info *info,
struct iw_param *vwrq,
char *extra
)
{
struct iw_pmksa *iwpmksa;
uint i;
int ret = 0;
char eabuf[ETHER_ADDR_STR_LEN];
pmkid_t * pmkid_array = pmkid_list.pmkids.pmkid;
WL_WSEC(("%s: SIOCSIWPMKSA\n", dev->name));
RETURN_IF_EXTRA_NULL(... |
functions | else if (iwpmksa->cmd == IW_PMKSA_REMOVE) {
{
pmkid_list_t pmkid, *pmkidptr;
uint j;
pmkidptr = &pmkid;
bcopy(&iwpmksa->bssid.sa_data[0], &pmkidptr->pmkid[0].BSSID,
ETHER_ADDR_LEN);
bcopy(&iwpmksa->pmkid[0], &pmkidptr->pmkid[0].PMKID, WPA2_PMKID_LEN);
WL_WSEC(("wl_iw_set_pmksa,IW_PMKSA_REMOVE ... |
functions | else if (iwpmksa->cmd == IW_PMKSA_ADD) {
for (i = 0; i < pmkid_list.pmkids.npmkid; i++)
if (!bcmp(&iwpmksa->bssid.sa_data[0], &pmkid_array[i].BSSID,
ETHER_ADDR_LEN))
break;
if (i < MAXPMKID) {
bcopy(&iwpmksa->bssid.sa_data[0],
&pmkid_array[i].BSSID,
ETHER_ADDR_LEN);
bcopy(&iwpmksa->pmkid[0]... |
functions | int
wl_iw_get_encodeext(
struct net_device *dev,
struct iw_request_info *info,
struct iw_param *vwrq,
char *extra
)
{
WL_TRACE(("%s: SIOCGIWENCODEEXT\n", dev->name));
return 0;
} |
functions | uint32
wl_iw_create_wpaauth_wsec(struct net_device *dev)
{
wl_iw_t *iw = NETDEV_PRIV(dev);
uint32 wsec;
if (iw->pcipher & (IW_AUTH_CIPHER_WEP40 | IW_AUTH_CIPHER_WEP104))
wsec = WEP_ENABLED;
else if (iw->pcipher & IW_AUTH_CIPHER_TKIP)
wsec = TKIP_ENABLED;
else if (iw->pcipher & IW_AUTH_CIPHER_CCMP)
wsec = ... |
functions | int
wl_iw_set_wpaauth(
struct net_device *dev,
struct iw_request_info *info,
struct iw_param *vwrq,
char *extra
)
{
int error = 0;
int paramid;
int paramval;
int val = 0;
wl_iw_t *iw = NETDEV_PRIV(dev);
paramid = vwrq->flags & IW_AUTH_INDEX;
paramval = vwrq->value;
WL_TRACE(("%s: SIOCSIWAUTH, %s(%d), para... |
functions | endif
switch (paramid) {
case IW_AUTH_WPA_VERSION:
iw->wpaversion = paramval;
break;
case IW_AUTH_CIPHER_PAIRWISE:
iw->pcipher = paramval;
val = wl_iw_create_wpaauth_wsec(dev);
if ((error = dev_wlc_intvar_set(dev, "wsec", val)))
return error;
break;
case IW_AUTH_CIPHER_GROUP:
iw->gcipher = pa... |
functions | else if (paramval & IW_AUTH_KEY_MGMT_802_1X) {
if (iw->wpaversion == IW_AUTH_WPA_VERSION_WPA)
val = WPA_AUTH_UNSPECIFIED;
else if (iw->wpaversion == IW_AUTH_WPA_VERSION_WPA2)
val = WPA2_AUTH_UNSPECIFIED;
else
val = WPA_AUTH_DISABLED;
} |
functions | int
wl_iw_get_wpaauth(
struct net_device *dev,
struct iw_request_info *info,
struct iw_param *vwrq,
char *extra
)
{
int error;
int paramid;
int paramval = 0;
int val;
wl_iw_t *iw = NETDEV_PRIV(dev);
WL_TRACE(("%s: SIOCGIWAUTH\n", dev->name));
paramid = vwrq->flags & IW_AUTH_INDEX;
switch (paramid) {
cas... |
functions | int
wl_iw_parse_wep(char *keystr, wl_wsec_key_t *key)
{
char hex[] = "XX";
unsigned char *data = key->data;
switch (strlen(keystr)) {
case 5:
case 13:
case 16:
key->len = strlen(keystr);
memcpy(data, keystr, key->len + 1);
break;
case 12:
case 28:
case 34:
case 66:
if (!strnicmp(keystr, "0x", 2))
... |
functions | int
pbkdf2_sha1(const char *passphrase, const char *ssid, size_t ssid_len,
int iterations, u8 *buf, size_t buflen)
{
WL_ERROR(("WARNING: %s is not implemented !!!\n", __FUNCTION__));
return -1;
} |
functions | int
dev_iw_write_cfg1_bss_var(struct net_device *dev, int val)
{
struct {
int cfg;
int val;
} |
functions | int
wl_bssiovar_mkbuf(
const char *iovar,
int bssidx,
void *param,
int paramlen,
void *bufptr,
int buflen,
int *perr)
{
const char *prefix = "bsscfg:";
int8* p;
uint prefixlen;
uint namelen;
uint iolen;
prefixlen = strlen(prefix);
namelen = strlen(iovar) + 1;
iolen = prefixlen + namelen + sizeo... |
functions | int
wl_iw_combined_scan_set(struct net_device *dev, wlc_ssid_t* ssids_local, int nssid, int nchan)
{
int params_size = WL_SCAN_PARAMS_FIXED_SIZE + WL_NUMCHANNELS * sizeof(uint16);
int err = 0;
char *p;
int i;
iscan_info_t *iscan = g_iscan;
WL_TRACE(("%s nssid=%d nchan=%d\n", __FUNCTION__, nssid, nchan));
if ((... |
functions | endif
if (params_size > WLC_IOCTL_MEDLEN) {
WL_ERROR(("Set ISCAN for %s due to params_size=%d \n",
__FUNCTION__, params_size));
err = -1;
} |
functions | int
iwpriv_set_cscan(struct net_device *dev, struct iw_request_info *info,
union iwreq_data *wrqu, char *ext)
{
int res;
char *extra = NULL;
iscan_info_t *iscan = g_iscan;
wlc_ssid_t ssids_local[WL_SCAN_PARAMS_SSID_MAX];
int nssid = 0;
int nchan = 0;
char *str_ptr;
WL_TRACE(("%s: info->cmd:%x... |
functions | int
wl_iw_set_cscan(
struct net_device *dev,
struct iw_request_info *info,
union iwreq_data *wrqu,
char *extra
)
{
int res = -1;
iscan_info_t *iscan = g_iscan;
wlc_ssid_t ssids_local[WL_SCAN_PARAMS_SSID_MAX];
int nssid = 0;
int nchan = 0;
cscan_tlv_t *cscan_tlv_temp;
char type;
char *str_ptr;
int tlv_size_... |
functions | int
wl_iw_del_wps_probe_req_ie(
struct net_device *dev,
struct iw_request_info *info,
union iwreq_data *wrqu,
char *extra
)
{
int ret;
vndr_ie_setbuf_t *ie_delbuf;
if (g_wps_probe_req_ie) {
ie_delbuf = (vndr_ie_setbuf_t *)(g_wps_probe_req_ie + strlen("vndr_ie "));
strncpy(ie_delbuf->cmd, "del", 3);
ie_del... |
functions | int
wl_iw_add_wps_probe_req_ie(
struct net_device *dev,
struct iw_request_info *info,
union iwreq_data *wrqu,
char *extra
)
{
char *str_ptr = NULL;
char *bufptr = NULL;
uint buflen, datalen, iecount, pktflag, iolen, total_len;
int ret = 0;
vndr_ie_setbuf_t *ie_setbuf = NULL;
if (!g_wps_probe_req_ie) {
ret ... |
functions | int
thr_wait_for_2nd_eth_dev(void *data)
{
wl_iw_t *iw;
int ret = 0;
unsigned long flags = 0;
tsk_ctl_t *tsk_ctl = (tsk_ctl_t *)data;
struct net_device *dev = (struct net_device *)tsk_ctl->parent;
iw = *(wl_iw_t **)netdev_priv(dev);
DAEMONIZE("wl0_eth_wthread");
WL_SOFTAP(("\n>%s threda started:, PID:%x\n",... |
functions | int
get_softap_auto_channel(struct net_device *dev, struct ap_profile *ap)
{
int chosen = 0;
wl_uint32_list_t request;
int retry = 0;
int updown = 0;
int ret = 0;
wlc_ssid_t null_ssid;
int res = 0;
#ifndef AP_ONLY
int iolen = 0;
int mkvar_err = 0;
int bsscfg_index = 1;
char buf[WLC_IOCTL_SMLEN];
#endif
WL_S... |
functions | int
set_ap_cfg(struct net_device *dev, struct ap_profile *ap)
{
int updown = 0;
int channel = 0;
wlc_ssid_t ap_ssid;
int max_assoc = 8;
int res = 0;
int apsta_var = 0;
#ifndef AP_ONLY
int mpc = 0;
int iolen = 0;
int mkvar_err = 0;
int bsscfg_index = 1;
char buf[WLC_IOCTL_SMLEN];
#endif
if (!dev) {
WL_E... |
functions | AP_ONLY
if (ap_cfg_running) {
wl_iw_softap_deassoc_stations(dev, NULL);
ap_cfg_running = FALSE;
} |
functions | endif
if (ap_cfg_running == FALSE) {
#ifndef AP_ONLY
sema_init(&ap_eth_ctl.sema, 0);
mpc = 0;
if ((res = dev_wlc_intvar_set(dev, "mpc", mpc))) {
WL_ERROR(("%s fail to set mpc\n", __FUNCTION__));
goto fail;
} |
functions | int
wl_iw_set_ap_security(struct net_device *dev, struct ap_profile *ap)
{
int wsec = 0;
int wpa_auth = 0;
int res = 0;
int i;
char *ptr;
#ifdef AP_ONLY
int mpc = 0;
wlc_ssid_t ap_ssid;
#endif
wl_wsec_key_t key;
WL_SOFTAP(("\nsetting SOFTAP security mode:\n"));
WL_SOFTAP(("wl_iw: set ap profile:\n"));
WL_SO... |
functions | int
get_parameter_from_string(
char **str_ptr, const char *token,
int param_type, void *dst, int param_max_len)
{
char int_str[7] = "0";
int parm_str_len;
char *param_str_begin;
char *param_str_end;
char *orig_str = *str_ptr;
if ((*str_ptr) && !strncmp(*str_ptr, token, strlen(token))) {
strsep(str_p... |
functions | int wl_iw_softap_deassoc_stations(struct net_device *dev, u8 *mac)
{
int i;
int res = 0;
char mac_buf[128] = {0} |
functions | else if (assoc_maclist->count) {
bcm_mdelay(200);
} |
functions | int
iwpriv_softap_stop(struct net_device *dev,
struct iw_request_info *info,
union iwreq_data *wrqu,
char *ext)
{
int res = 0;
WL_SOFTAP(("got iwpriv AP_BSS_STOP \n"));
if ((!dev) && (!ap_net_dev)) {
WL_ERROR(("%s: dev is null\n", __FUNCTION__));
return res;
} |
functions | int
iwpriv_fw_reload(struct net_device *dev,
struct iw_request_info *info,
union iwreq_data *wrqu,
char *ext)
{
int ret = -1;
char extra[256];
char *fwstr = fw_path ;
WL_SOFTAP(("current firmware_path[]=%s\n", fwstr));
WL_TRACE((">Got FW_RELOAD cmd:"
"info->cmd:%x, info->flags:%x, u.data:%p, u.len... |
functions | int
iwpriv_wpasupp_loop_tst(struct net_device *dev,
struct iw_request_info *info,
union iwreq_data *wrqu,
char *ext)
{
int res = 0;
char *params = NULL;
WL_TRACE((">Got IWPRIV wp_supp loopback cmd test:"
"info->cmd:%x, info->flags:%x, u.data:%p, u.len:%d\n",
... |
functions | int
iwpriv_en_ap_bss(
struct net_device *dev,
struct iw_request_info *info,
void *wrqu,
char *extra)
{
int res = 0;
if (!dev) {
WL_ERROR(("%s: dev is null\n", __FUNCTION__));
return -1;
} |
functions | int
get_assoc_sta_list(struct net_device *dev, char *buf, int len)
{
WL_TRACE(("%s: dev_wlc_ioctl(dev:%p, cmd:%d, buf:%p, len:%d)\n",
__FUNCTION__, dev, WLC_GET_ASSOCLIST, buf, len));
return dev_wlc_ioctl(dev, WLC_GET_ASSOCLIST, buf, len);
} |
functions | void check_error(int res, const char *msg, const char *func, int line)
{
if (res != 0)
WL_ERROR(("%s, %d function:%s, line:%d\n", msg, res, func, line));
} |
functions | int
set_ap_mac_list(struct net_device *dev, void *buf)
{
struct mac_list_set *mac_list_set = (struct mac_list_set *)buf;
struct maclist *maclist = (struct maclist *)&mac_list_set->mac_list;
int length;
int i;
int mac_mode = mac_list_set->mode;
int ioc_res = 0;
ap_macmode = mac_list_set->mode;
bzero(&ap_bla... |
functions | int
wl_iw_process_private_ascii_cmd(
struct net_device *dev,
struct iw_request_info *info,
union iwreq_data *dwrq,
char *cmd_str)
{
int ret = 0;
char *sub_cmd = cmd_str + PROFILE_OFFSET + strlen("ASCII_CMD=");
WL_SOFTAP(("\n %s: ASCII_CMD: offs_0:%s, offset_32:\n'%s'\n",
__FUNCTION__, cmd_str, cmd_str... |
functions | AP_ONLY
if (ap_net_dev == NULL) {
printf("\n ERROR: SOFTAP net_dev* is NULL !!!\n");
} |
functions | int
wl_iw_set_priv(
struct net_device *dev,
struct iw_request_info *info,
struct iw_point *dwrq,
char *ext
)
{
int ret = 0;
char * extra;
if (!(extra = kmalloc(dwrq->length, GFP_KERNEL)))
return -ENOMEM;
if (copy_from_user(extra, dwrq->pointer, dwrq->length)) {
kfree(extra);
return -EFAULT;
} |
functions | if defined(CSCAN)
{
WL_COMBO_SCAN,
IW_PRIV_TYPE_CHAR | 1024,
0,
"CSCAN"
} |
functions | int
wl_iw_ioctl(
struct net_device *dev,
struct ifreq *rq,
int cmd
)
{
struct iwreq *wrq = (struct iwreq *) rq;
struct iw_request_info info;
iw_handler handler;
char *extra = NULL;
size_t token_size = 1;
int max_tokens = 0, ret = 0;
net_os_wake_lock(dev);
WL_TRACE(("\n%s, cmd:%x called via dhd->do_ioctl()e... |
functions | bool
wl_iw_conn_status_str(uint32 event_type, uint32 status, uint32 reason,
char* stringBuf, uint buflen)
{
typedef struct conn_fail_event_map_t {
uint32 inEvent;
uint32 inStatus;
uint32 inReason;
const char* outName;
const char* outCause;
} |
functions | bool
wl_iw_check_conn_fail(wl_event_msg_t *e, char* stringBuf, uint buflen)
{
uint32 event = ntoh32(e->event_type);
uint32 status = ntoh32(e->status);
uint32 reason = ntoh32(e->reason);
if (wl_iw_conn_status_str(event, status, reason, stringBuf, buflen)) {
return TRUE;
} |
functions | void
wl_iw_event(struct net_device *dev, wl_event_msg_t *e, void* data)
{
#if WIRELESS_EXT > 13
union iwreq_data wrqu;
char extra[IW_CUSTOM_MAX + 1];
int cmd = 0;
uint32 event_type = ntoh32(e->event_type);
uint16 flags = ntoh16(e->flags);
uint32 datalen = ntoh32(e->datalen);
uint32 status = ntoh32(e->status);
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.