Lines Matching refs:acx

169 	struct acx_current_tx_power *acx;  in wl1251_acx_tx_power()  local
177 acx = kzalloc(sizeof(*acx), GFP_KERNEL); in wl1251_acx_tx_power()
178 if (!acx) in wl1251_acx_tx_power()
181 acx->current_tx_power = power * 10; in wl1251_acx_tx_power()
183 ret = wl1251_cmd_configure(wl, DOT11_CUR_TX_PWR, acx, sizeof(*acx)); in wl1251_acx_tx_power()
190 kfree(acx); in wl1251_acx_tx_power()
284 struct acx_rx_msdu_lifetime *acx; in wl1251_acx_rx_msdu_life_time() local
289 acx = kzalloc(sizeof(*acx), GFP_KERNEL); in wl1251_acx_rx_msdu_life_time()
290 if (!acx) in wl1251_acx_rx_msdu_life_time()
293 acx->lifetime = life_time; in wl1251_acx_rx_msdu_life_time()
295 acx, sizeof(*acx)); in wl1251_acx_rx_msdu_life_time()
302 kfree(acx); in wl1251_acx_rx_msdu_life_time()
384 struct acx_dot11_grp_addr_tbl *acx; in wl1251_acx_group_address_tbl() local
389 acx = kzalloc(sizeof(*acx), GFP_KERNEL); in wl1251_acx_group_address_tbl()
390 if (!acx) in wl1251_acx_group_address_tbl()
394 acx->enabled = enable; in wl1251_acx_group_address_tbl()
395 acx->num_groups = mc_list_len; in wl1251_acx_group_address_tbl()
396 memcpy(acx->mac_table, mc_list, mc_list_len * ETH_ALEN); in wl1251_acx_group_address_tbl()
399 acx, sizeof(*acx)); in wl1251_acx_group_address_tbl()
406 kfree(acx); in wl1251_acx_group_address_tbl()
518 struct acx_conn_monit_params *acx; in wl1251_acx_conn_monit_params() local
523 acx = kzalloc(sizeof(*acx), GFP_KERNEL); in wl1251_acx_conn_monit_params()
524 if (!acx) in wl1251_acx_conn_monit_params()
527 acx->synch_fail_thold = SYNCH_FAIL_DEFAULT_THRESHOLD; in wl1251_acx_conn_monit_params()
528 acx->bss_lose_timeout = NO_BEACON_DEFAULT_TIMEOUT; in wl1251_acx_conn_monit_params()
531 acx, sizeof(*acx)); in wl1251_acx_conn_monit_params()
539 kfree(acx); in wl1251_acx_conn_monit_params()
748 struct acx_preamble *acx; in wl1251_acx_set_preamble() local
753 acx = kzalloc(sizeof(*acx), GFP_KERNEL); in wl1251_acx_set_preamble()
754 if (!acx) in wl1251_acx_set_preamble()
757 acx->preamble = preamble; in wl1251_acx_set_preamble()
759 ret = wl1251_cmd_configure(wl, ACX_PREAMBLE_TYPE, acx, sizeof(*acx)); in wl1251_acx_set_preamble()
766 kfree(acx); in wl1251_acx_set_preamble()
773 struct acx_ctsprotect *acx; in wl1251_acx_cts_protect() local
778 acx = kzalloc(sizeof(*acx), GFP_KERNEL); in wl1251_acx_cts_protect()
779 if (!acx) in wl1251_acx_cts_protect()
782 acx->ctsprotect = ctsprotect; in wl1251_acx_cts_protect()
784 ret = wl1251_cmd_configure(wl, ACX_CTS_PROTECTION, acx, sizeof(*acx)); in wl1251_acx_cts_protect()
791 kfree(acx); in wl1251_acx_cts_protect()
837 struct acx_rate_policy *acx; in wl1251_acx_rate_policies() local
842 acx = kzalloc(sizeof(*acx), GFP_KERNEL); in wl1251_acx_rate_policies()
843 if (!acx) in wl1251_acx_rate_policies()
847 acx->rate_class_cnt = 2; in wl1251_acx_rate_policies()
848 acx->rate_class[0].enabled_rates = ACX_RATE_MASK_UNSPECIFIED; in wl1251_acx_rate_policies()
849 acx->rate_class[0].short_retry_limit = ACX_RATE_RETRY_LIMIT; in wl1251_acx_rate_policies()
850 acx->rate_class[0].long_retry_limit = ACX_RATE_RETRY_LIMIT; in wl1251_acx_rate_policies()
851 acx->rate_class[0].aflags = 0; in wl1251_acx_rate_policies()
854 acx->rate_class[1].enabled_rates = ACX_RATE_MASK_UNSPECIFIED; in wl1251_acx_rate_policies()
855 acx->rate_class[1].short_retry_limit = 0; in wl1251_acx_rate_policies()
856 acx->rate_class[1].long_retry_limit = 0; in wl1251_acx_rate_policies()
857 acx->rate_class[1].aflags = 0; in wl1251_acx_rate_policies()
859 ret = wl1251_cmd_configure(wl, ACX_RATE_POLICY, acx, sizeof(*acx)); in wl1251_acx_rate_policies()
866 kfree(acx); in wl1251_acx_rate_policies()
917 struct wl1251_acx_wr_tbtt_and_dtim *acx; in wl1251_acx_wr_tbtt_and_dtim() local
922 acx = kzalloc(sizeof(*acx), GFP_KERNEL); in wl1251_acx_wr_tbtt_and_dtim()
923 if (!acx) in wl1251_acx_wr_tbtt_and_dtim()
926 acx->tbtt = tbtt; in wl1251_acx_wr_tbtt_and_dtim()
927 acx->dtim = dtim; in wl1251_acx_wr_tbtt_and_dtim()
930 acx, sizeof(*acx)); in wl1251_acx_wr_tbtt_and_dtim()
937 kfree(acx); in wl1251_acx_wr_tbtt_and_dtim()
944 struct wl1251_acx_bet_enable *acx; in wl1251_acx_bet_enable() local
949 acx = kzalloc(sizeof(*acx), GFP_KERNEL); in wl1251_acx_bet_enable()
950 if (!acx) in wl1251_acx_bet_enable()
953 acx->enable = mode; in wl1251_acx_bet_enable()
954 acx->max_consecutive = max_consecutive; in wl1251_acx_bet_enable()
956 ret = wl1251_cmd_configure(wl, ACX_BET_ENABLE, acx, sizeof(*acx)); in wl1251_acx_bet_enable()
963 kfree(acx); in wl1251_acx_bet_enable()
969 struct wl1251_acx_arp_filter *acx; in wl1251_acx_arp_ip_filter() local
974 acx = kzalloc(sizeof(*acx), GFP_KERNEL); in wl1251_acx_arp_ip_filter()
975 if (!acx) in wl1251_acx_arp_ip_filter()
978 acx->version = ACX_IPV4_VERSION; in wl1251_acx_arp_ip_filter()
979 acx->enable = enable; in wl1251_acx_arp_ip_filter()
982 memcpy(acx->address, &address, ACX_IPV4_ADDR_SIZE); in wl1251_acx_arp_ip_filter()
985 acx, sizeof(*acx)); in wl1251_acx_arp_ip_filter()
989 kfree(acx); in wl1251_acx_arp_ip_filter()
996 struct wl1251_acx_ac_cfg *acx; in wl1251_acx_ac_cfg() local
1002 acx = kzalloc(sizeof(*acx), GFP_KERNEL); in wl1251_acx_ac_cfg()
1003 if (!acx) in wl1251_acx_ac_cfg()
1006 acx->ac = ac; in wl1251_acx_ac_cfg()
1007 acx->cw_min = cw_min; in wl1251_acx_ac_cfg()
1008 acx->cw_max = cw_max; in wl1251_acx_ac_cfg()
1009 acx->aifsn = aifs; in wl1251_acx_ac_cfg()
1010 acx->txop_limit = txop; in wl1251_acx_ac_cfg()
1012 ret = wl1251_cmd_configure(wl, ACX_AC_CFG, acx, sizeof(*acx)); in wl1251_acx_ac_cfg()
1019 kfree(acx); in wl1251_acx_ac_cfg()
1028 struct wl1251_acx_tid_cfg *acx; in wl1251_acx_tid_cfg() local
1035 acx = kzalloc(sizeof(*acx), GFP_KERNEL); in wl1251_acx_tid_cfg()
1036 if (!acx) in wl1251_acx_tid_cfg()
1039 acx->queue = queue; in wl1251_acx_tid_cfg()
1040 acx->type = type; in wl1251_acx_tid_cfg()
1041 acx->tsid = tsid; in wl1251_acx_tid_cfg()
1042 acx->ps_scheme = ps_scheme; in wl1251_acx_tid_cfg()
1043 acx->ack_policy = ack_policy; in wl1251_acx_tid_cfg()
1045 ret = wl1251_cmd_configure(wl, ACX_TID_CFG, acx, sizeof(*acx)); in wl1251_acx_tid_cfg()
1052 kfree(acx); in wl1251_acx_tid_cfg()