Lines Matching refs:acx

171 	struct acx_current_tx_power *acx;  in wl1251_acx_tx_power()  local
179 acx = kzalloc(sizeof(*acx), GFP_KERNEL); in wl1251_acx_tx_power()
180 if (!acx) in wl1251_acx_tx_power()
183 acx->current_tx_power = power * 10; in wl1251_acx_tx_power()
185 ret = wl1251_cmd_configure(wl, DOT11_CUR_TX_PWR, acx, sizeof(*acx)); in wl1251_acx_tx_power()
192 kfree(acx); in wl1251_acx_tx_power()
286 struct acx_rx_msdu_lifetime *acx; in wl1251_acx_rx_msdu_life_time() local
291 acx = kzalloc(sizeof(*acx), GFP_KERNEL); in wl1251_acx_rx_msdu_life_time()
292 if (!acx) in wl1251_acx_rx_msdu_life_time()
295 acx->lifetime = life_time; in wl1251_acx_rx_msdu_life_time()
297 acx, sizeof(*acx)); in wl1251_acx_rx_msdu_life_time()
304 kfree(acx); in wl1251_acx_rx_msdu_life_time()
386 struct acx_dot11_grp_addr_tbl *acx; in wl1251_acx_group_address_tbl() local
391 acx = kzalloc(sizeof(*acx), GFP_KERNEL); in wl1251_acx_group_address_tbl()
392 if (!acx) in wl1251_acx_group_address_tbl()
396 acx->enabled = enable; in wl1251_acx_group_address_tbl()
397 acx->num_groups = mc_list_len; in wl1251_acx_group_address_tbl()
398 memcpy(acx->mac_table, mc_list, mc_list_len * ETH_ALEN); in wl1251_acx_group_address_tbl()
401 acx, sizeof(*acx)); in wl1251_acx_group_address_tbl()
408 kfree(acx); in wl1251_acx_group_address_tbl()
520 struct acx_conn_monit_params *acx; in wl1251_acx_conn_monit_params() local
525 acx = kzalloc(sizeof(*acx), GFP_KERNEL); in wl1251_acx_conn_monit_params()
526 if (!acx) in wl1251_acx_conn_monit_params()
529 acx->synch_fail_thold = SYNCH_FAIL_DEFAULT_THRESHOLD; in wl1251_acx_conn_monit_params()
530 acx->bss_lose_timeout = NO_BEACON_DEFAULT_TIMEOUT; in wl1251_acx_conn_monit_params()
533 acx, sizeof(*acx)); in wl1251_acx_conn_monit_params()
541 kfree(acx); in wl1251_acx_conn_monit_params()
750 struct acx_preamble *acx; in wl1251_acx_set_preamble() local
755 acx = kzalloc(sizeof(*acx), GFP_KERNEL); in wl1251_acx_set_preamble()
756 if (!acx) in wl1251_acx_set_preamble()
759 acx->preamble = preamble; in wl1251_acx_set_preamble()
761 ret = wl1251_cmd_configure(wl, ACX_PREAMBLE_TYPE, acx, sizeof(*acx)); in wl1251_acx_set_preamble()
768 kfree(acx); in wl1251_acx_set_preamble()
775 struct acx_ctsprotect *acx; in wl1251_acx_cts_protect() local
780 acx = kzalloc(sizeof(*acx), GFP_KERNEL); in wl1251_acx_cts_protect()
781 if (!acx) in wl1251_acx_cts_protect()
784 acx->ctsprotect = ctsprotect; in wl1251_acx_cts_protect()
786 ret = wl1251_cmd_configure(wl, ACX_CTS_PROTECTION, acx, sizeof(*acx)); in wl1251_acx_cts_protect()
793 kfree(acx); in wl1251_acx_cts_protect()
839 struct acx_rate_policy *acx; in wl1251_acx_rate_policies() local
844 acx = kzalloc(sizeof(*acx), GFP_KERNEL); in wl1251_acx_rate_policies()
845 if (!acx) in wl1251_acx_rate_policies()
849 acx->rate_class_cnt = 2; in wl1251_acx_rate_policies()
850 acx->rate_class[0].enabled_rates = ACX_RATE_MASK_UNSPECIFIED; in wl1251_acx_rate_policies()
851 acx->rate_class[0].short_retry_limit = ACX_RATE_RETRY_LIMIT; in wl1251_acx_rate_policies()
852 acx->rate_class[0].long_retry_limit = ACX_RATE_RETRY_LIMIT; in wl1251_acx_rate_policies()
853 acx->rate_class[0].aflags = 0; in wl1251_acx_rate_policies()
856 acx->rate_class[1].enabled_rates = ACX_RATE_MASK_UNSPECIFIED; in wl1251_acx_rate_policies()
857 acx->rate_class[1].short_retry_limit = 0; in wl1251_acx_rate_policies()
858 acx->rate_class[1].long_retry_limit = 0; in wl1251_acx_rate_policies()
859 acx->rate_class[1].aflags = 0; in wl1251_acx_rate_policies()
861 ret = wl1251_cmd_configure(wl, ACX_RATE_POLICY, acx, sizeof(*acx)); in wl1251_acx_rate_policies()
868 kfree(acx); in wl1251_acx_rate_policies()
919 struct wl1251_acx_wr_tbtt_and_dtim *acx; in wl1251_acx_wr_tbtt_and_dtim() local
924 acx = kzalloc(sizeof(*acx), GFP_KERNEL); in wl1251_acx_wr_tbtt_and_dtim()
925 if (!acx) in wl1251_acx_wr_tbtt_and_dtim()
928 acx->tbtt = tbtt; in wl1251_acx_wr_tbtt_and_dtim()
929 acx->dtim = dtim; in wl1251_acx_wr_tbtt_and_dtim()
932 acx, sizeof(*acx)); in wl1251_acx_wr_tbtt_and_dtim()
939 kfree(acx); in wl1251_acx_wr_tbtt_and_dtim()
946 struct wl1251_acx_bet_enable *acx; in wl1251_acx_bet_enable() local
951 acx = kzalloc(sizeof(*acx), GFP_KERNEL); in wl1251_acx_bet_enable()
952 if (!acx) in wl1251_acx_bet_enable()
955 acx->enable = mode; in wl1251_acx_bet_enable()
956 acx->max_consecutive = max_consecutive; in wl1251_acx_bet_enable()
958 ret = wl1251_cmd_configure(wl, ACX_BET_ENABLE, acx, sizeof(*acx)); in wl1251_acx_bet_enable()
965 kfree(acx); in wl1251_acx_bet_enable()
971 struct wl1251_acx_arp_filter *acx; in wl1251_acx_arp_ip_filter() local
976 acx = kzalloc(sizeof(*acx), GFP_KERNEL); in wl1251_acx_arp_ip_filter()
977 if (!acx) in wl1251_acx_arp_ip_filter()
980 acx->version = ACX_IPV4_VERSION; in wl1251_acx_arp_ip_filter()
981 acx->enable = enable; in wl1251_acx_arp_ip_filter()
984 memcpy(acx->address, &address, ACX_IPV4_ADDR_SIZE); in wl1251_acx_arp_ip_filter()
987 acx, sizeof(*acx)); in wl1251_acx_arp_ip_filter()
991 kfree(acx); in wl1251_acx_arp_ip_filter()
998 struct wl1251_acx_ac_cfg *acx; in wl1251_acx_ac_cfg() local
1004 acx = kzalloc(sizeof(*acx), GFP_KERNEL); in wl1251_acx_ac_cfg()
1005 if (!acx) in wl1251_acx_ac_cfg()
1008 acx->ac = ac; in wl1251_acx_ac_cfg()
1009 acx->cw_min = cw_min; in wl1251_acx_ac_cfg()
1010 acx->cw_max = cw_max; in wl1251_acx_ac_cfg()
1011 acx->aifsn = aifs; in wl1251_acx_ac_cfg()
1012 acx->txop_limit = txop; in wl1251_acx_ac_cfg()
1014 ret = wl1251_cmd_configure(wl, ACX_AC_CFG, acx, sizeof(*acx)); in wl1251_acx_ac_cfg()
1021 kfree(acx); in wl1251_acx_ac_cfg()
1030 struct wl1251_acx_tid_cfg *acx; in wl1251_acx_tid_cfg() local
1037 acx = kzalloc(sizeof(*acx), GFP_KERNEL); in wl1251_acx_tid_cfg()
1038 if (!acx) in wl1251_acx_tid_cfg()
1041 acx->queue = queue; in wl1251_acx_tid_cfg()
1042 acx->type = type; in wl1251_acx_tid_cfg()
1043 acx->tsid = tsid; in wl1251_acx_tid_cfg()
1044 acx->ps_scheme = ps_scheme; in wl1251_acx_tid_cfg()
1045 acx->ack_policy = ack_policy; in wl1251_acx_tid_cfg()
1047 ret = wl1251_cmd_configure(wl, ACX_TID_CFG, acx, sizeof(*acx)); in wl1251_acx_tid_cfg()
1054 kfree(acx); in wl1251_acx_tid_cfg()