Lines Matching refs:adapter

57 int mwifiex_wait_queue_complete(struct mwifiex_adapter *adapter,  in mwifiex_wait_queue_complete()  argument
63 status = wait_event_interruptible_timeout(adapter->cmd_wait_q.wait, in mwifiex_wait_queue_complete()
69 mwifiex_dbg(adapter, ERROR, "cmd_wait_q terminated: %d\n", in mwifiex_wait_queue_complete()
71 mwifiex_cancel_all_pending_cmd(adapter); in mwifiex_wait_queue_complete()
75 status = adapter->cmd_wait_q.status; in mwifiex_wait_queue_complete()
76 adapter->cmd_wait_q.status = 0; in mwifiex_wait_queue_complete()
97 mwifiex_dbg(priv->adapter, INFO, in mwifiex_request_set_multicast_list()
106 mwifiex_dbg(priv->adapter, INFO, in mwifiex_request_set_multicast_list()
113 mwifiex_dbg(priv->adapter, INFO, in mwifiex_request_set_multicast_list()
123 mwifiex_dbg(priv->adapter, INFO, in mwifiex_request_set_multicast_list()
158 mwifiex_dbg(priv->adapter, ERROR, in mwifiex_fill_new_bss_desc()
173 mwifiex_dbg(priv->adapter, INFO, in mwifiex_fill_new_bss_desc()
192 return mwifiex_update_bss_desc_with_ie(priv->adapter, bss_desc); in mwifiex_fill_new_bss_desc()
197 if (priv->adapter->dt_node) { in mwifiex_dnld_txpwr_table()
200 memcpy(&txpwr[8], priv->adapter->country_code, 2); in mwifiex_dnld_txpwr_table()
201 mwifiex_dnld_dt_cfgdata(priv, priv->adapter->dt_node, txpwr); in mwifiex_dnld_txpwr_table()
211 &priv->adapter->domain_reg; in mwifiex_process_country_ie()
226 if (!strncmp(priv->adapter->country_code, &country_ie[2], 2)) { in mwifiex_process_country_ie()
228 mwifiex_dbg(priv->adapter, INFO, in mwifiex_process_country_ie()
232 memcpy(priv->adapter->country_code, &country_ie[2], 2); in mwifiex_process_country_ie()
250 mwifiex_dbg(priv->adapter, ERROR, in mwifiex_process_country_ie()
269 struct mwifiex_adapter *adapter = priv->adapter; in mwifiex_bss_start() local
300 if (adapter->fw_bands & BAND_AAC) in mwifiex_bss_start()
304 if (!((config_bands | adapter->fw_bands) & ~adapter->fw_bands)) in mwifiex_bss_start()
305 adapter->config_bands = config_bands; in mwifiex_bss_start()
313 mwifiex_dbg(adapter, ERROR, in mwifiex_bss_start()
320 mwifiex_dbg(adapter, INFO, in mwifiex_bss_start()
324 mwifiex_stop_net_dev_queue(priv->netdev, adapter); in mwifiex_bss_start()
344 cfg80211_put_bss(priv->adapter->wiphy, bss); in mwifiex_bss_start()
359 mwifiex_stop_net_dev_queue(priv->netdev, adapter); in mwifiex_bss_start()
364 mwifiex_dbg(adapter, INFO, in mwifiex_bss_start()
369 cfg80211_put_bss(priv->adapter->wiphy, bss); in mwifiex_bss_start()
371 mwifiex_dbg(adapter, INFO, in mwifiex_bss_start()
399 struct mwifiex_adapter *adapter = priv->adapter; in mwifiex_set_hs_params() local
408 if (adapter->pps_uapsd_mode) { in mwifiex_set_hs_params()
409 mwifiex_dbg(adapter, INFO, in mwifiex_set_hs_params()
417 if (!adapter->is_hs_configured) in mwifiex_set_hs_params()
421 prev_cond = le32_to_cpu(adapter->hs_cfg in mwifiex_set_hs_params()
423 adapter->hs_cfg.conditions = in mwifiex_set_hs_params()
426 adapter->hs_cfg.conditions = in mwifiex_set_hs_params()
428 adapter->hs_cfg.gpio = (u8)hs_cfg->gpio; in mwifiex_set_hs_params()
430 adapter->hs_cfg.gap = (u8)hs_cfg->gap; in mwifiex_set_hs_params()
431 } else if (adapter->hs_cfg.conditions == in mwifiex_set_hs_params()
442 &adapter->hs_cfg, in mwifiex_set_hs_params()
447 adapter->hs_cfg.conditions = in mwifiex_set_hs_params()
450 adapter->hs_cfg.conditions = in mwifiex_set_hs_params()
452 adapter->hs_cfg.gpio = (u8)hs_cfg->gpio; in mwifiex_set_hs_params()
453 adapter->hs_cfg.gap = (u8)hs_cfg->gap; in mwifiex_set_hs_params()
457 hs_cfg->conditions = le32_to_cpu(adapter->hs_cfg.conditions); in mwifiex_set_hs_params()
458 hs_cfg->gpio = adapter->hs_cfg.gpio; in mwifiex_set_hs_params()
459 hs_cfg->gap = adapter->hs_cfg.gap; in mwifiex_set_hs_params()
493 int mwifiex_enable_hs(struct mwifiex_adapter *adapter) in mwifiex_enable_hs() argument
500 for (i = 0; i < adapter->priv_num; i++) { in mwifiex_enable_hs()
501 priv = adapter->priv[i]; in mwifiex_enable_hs()
507 if (adapter->hs_activated) { in mwifiex_enable_hs()
508 mwifiex_dbg(adapter, CMD, in mwifiex_enable_hs()
513 adapter->hs_activate_wait_q_woken = false; in mwifiex_enable_hs()
518 adapter->hs_enabling = true; in mwifiex_enable_hs()
519 mwifiex_cancel_all_pending_cmd(adapter); in mwifiex_enable_hs()
521 if (mwifiex_set_hs_params(mwifiex_get_priv(adapter, in mwifiex_enable_hs()
525 mwifiex_dbg(adapter, ERROR, in mwifiex_enable_hs()
530 if (wait_event_interruptible_timeout(adapter->hs_activate_wait_q, in mwifiex_enable_hs()
531 adapter->hs_activate_wait_q_woken, in mwifiex_enable_hs()
533 mwifiex_dbg(adapter, ERROR, in mwifiex_enable_hs()
551 struct mwifiex_adapter *adapter = priv->adapter; in mwifiex_get_bss_info() local
567 memcpy(info->country_code, adapter->country_code, in mwifiex_get_bss_info()
584 info->is_hs_configured = adapter->is_hs_configured; in mwifiex_get_bss_info()
585 info->is_deep_sleep = adapter->is_deep_sleep; in mwifiex_get_bss_info()
654 mwifiex_dbg(priv->adapter, ERROR, in mwifiex_set_tx_power()
728 struct mwifiex_adapter *adapter = priv->adapter; in mwifiex_drv_set_power() local
732 adapter->ps_mode = MWIFIEX_802_11_POWER_MODE_PSP; in mwifiex_drv_set_power()
734 adapter->ps_mode = MWIFIEX_802_11_POWER_MODE_CAM; in mwifiex_drv_set_power()
757 mwifiex_dbg(priv->adapter, ERROR, in mwifiex_set_wpa_ie_helper()
763 mwifiex_dbg(priv->adapter, CMD, in mwifiex_set_wpa_ie_helper()
778 mwifiex_dbg(priv->adapter, INFO, in mwifiex_set_wpa_ie_helper()
800 mwifiex_dbg(priv->adapter, ERROR, in mwifiex_set_wapi_ie()
806 mwifiex_dbg(priv->adapter, CMD, in mwifiex_set_wapi_ie()
815 mwifiex_dbg(priv->adapter, INFO, in mwifiex_set_wapi_ie()
835 mwifiex_dbg(priv->adapter, ERROR, in mwifiex_set_wps_ie()
846 mwifiex_dbg(priv->adapter, CMD, in mwifiex_set_wps_ie()
852 mwifiex_dbg(priv->adapter, INFO, in mwifiex_set_wps_ie()
882 struct mwifiex_adapter *adapter = priv->adapter; in mwifiex_sec_ioctl_set_wep_key() local
897 mwifiex_dbg(adapter, ERROR, in mwifiex_sec_ioctl_set_wep_key()
902 if (adapter->key_api_major_ver == KEY_API_VER_MAJOR_V2) { in mwifiex_sec_ioctl_set_wep_key()
931 if (adapter->key_api_major_ver == KEY_API_VER_MAJOR_V2) in mwifiex_sec_ioctl_set_wep_key()
975 mwifiex_dbg(priv->adapter, ERROR, in mwifiex_sec_ioctl_set_wpa_key()
1049 mwifiex_drv_get_driver_version(struct mwifiex_adapter *adapter, char *version, in mwifiex_drv_get_driver_version() argument
1058 ver.l = cpu_to_le32(adapter->fw_release_number); in mwifiex_drv_get_driver_version()
1063 mwifiex_dbg(adapter, MSG, "info: MWIFIEX VERSION: %s\n", version); in mwifiex_drv_get_driver_version()
1151 mwifiex_dbg(priv->adapter, ERROR, in mwifiex_remain_on_chan_cfg()
1337 mwifiex_dbg(priv->adapter, INFO, in mwifiex_set_gen_ie_helper()
1369 struct mwifiex_adapter *adapter = priv->adapter; in mwifiex_misc_ioctl_gen_ie() local
1382 memset(adapter->arp_filter, 0, sizeof(adapter->arp_filter)); in mwifiex_misc_ioctl_gen_ie()
1384 adapter->arp_filter_size = 0; in mwifiex_misc_ioctl_gen_ie()
1385 mwifiex_dbg(adapter, ERROR, in mwifiex_misc_ioctl_gen_ie()
1389 memcpy(adapter->arp_filter, gen_ie->ie_data, in mwifiex_misc_ioctl_gen_ie()
1391 adapter->arp_filter_size = gen_ie->len; in mwifiex_misc_ioctl_gen_ie()
1395 mwifiex_dbg(adapter, ERROR, "invalid IE type\n"); in mwifiex_misc_ioctl_gen_ie()