Lines Matching refs:acx

168 	struct acx_current_tx_power *acx;  in wl1251_acx_tx_power()  local
176 acx = kzalloc(sizeof(*acx), GFP_KERNEL); in wl1251_acx_tx_power()
177 if (!acx) in wl1251_acx_tx_power()
180 acx->current_tx_power = power * 10; in wl1251_acx_tx_power()
182 ret = wl1251_cmd_configure(wl, DOT11_CUR_TX_PWR, acx, sizeof(*acx)); in wl1251_acx_tx_power()
189 kfree(acx); in wl1251_acx_tx_power()
283 struct acx_rx_msdu_lifetime *acx; in wl1251_acx_rx_msdu_life_time() local
288 acx = kzalloc(sizeof(*acx), GFP_KERNEL); in wl1251_acx_rx_msdu_life_time()
289 if (!acx) in wl1251_acx_rx_msdu_life_time()
292 acx->lifetime = life_time; in wl1251_acx_rx_msdu_life_time()
294 acx, sizeof(*acx)); in wl1251_acx_rx_msdu_life_time()
301 kfree(acx); in wl1251_acx_rx_msdu_life_time()
383 struct acx_dot11_grp_addr_tbl *acx; in wl1251_acx_group_address_tbl() local
388 acx = kzalloc(sizeof(*acx), GFP_KERNEL); in wl1251_acx_group_address_tbl()
389 if (!acx) in wl1251_acx_group_address_tbl()
393 acx->enabled = enable; in wl1251_acx_group_address_tbl()
394 acx->num_groups = mc_list_len; in wl1251_acx_group_address_tbl()
395 memcpy(acx->mac_table, mc_list, mc_list_len * ETH_ALEN); in wl1251_acx_group_address_tbl()
398 acx, sizeof(*acx)); in wl1251_acx_group_address_tbl()
405 kfree(acx); in wl1251_acx_group_address_tbl()
517 struct acx_conn_monit_params *acx; in wl1251_acx_conn_monit_params() local
522 acx = kzalloc(sizeof(*acx), GFP_KERNEL); in wl1251_acx_conn_monit_params()
523 if (!acx) in wl1251_acx_conn_monit_params()
526 acx->synch_fail_thold = SYNCH_FAIL_DEFAULT_THRESHOLD; in wl1251_acx_conn_monit_params()
527 acx->bss_lose_timeout = NO_BEACON_DEFAULT_TIMEOUT; in wl1251_acx_conn_monit_params()
530 acx, sizeof(*acx)); in wl1251_acx_conn_monit_params()
538 kfree(acx); in wl1251_acx_conn_monit_params()
747 struct acx_preamble *acx; in wl1251_acx_set_preamble() local
752 acx = kzalloc(sizeof(*acx), GFP_KERNEL); in wl1251_acx_set_preamble()
753 if (!acx) in wl1251_acx_set_preamble()
756 acx->preamble = preamble; in wl1251_acx_set_preamble()
758 ret = wl1251_cmd_configure(wl, ACX_PREAMBLE_TYPE, acx, sizeof(*acx)); in wl1251_acx_set_preamble()
765 kfree(acx); in wl1251_acx_set_preamble()
772 struct acx_ctsprotect *acx; in wl1251_acx_cts_protect() local
777 acx = kzalloc(sizeof(*acx), GFP_KERNEL); in wl1251_acx_cts_protect()
778 if (!acx) in wl1251_acx_cts_protect()
781 acx->ctsprotect = ctsprotect; in wl1251_acx_cts_protect()
783 ret = wl1251_cmd_configure(wl, ACX_CTS_PROTECTION, acx, sizeof(*acx)); in wl1251_acx_cts_protect()
790 kfree(acx); in wl1251_acx_cts_protect()
836 struct acx_rate_policy *acx; in wl1251_acx_rate_policies() local
841 acx = kzalloc(sizeof(*acx), GFP_KERNEL); in wl1251_acx_rate_policies()
842 if (!acx) in wl1251_acx_rate_policies()
846 acx->rate_class_cnt = 2; in wl1251_acx_rate_policies()
847 acx->rate_class[0].enabled_rates = ACX_RATE_MASK_UNSPECIFIED; in wl1251_acx_rate_policies()
848 acx->rate_class[0].short_retry_limit = ACX_RATE_RETRY_LIMIT; in wl1251_acx_rate_policies()
849 acx->rate_class[0].long_retry_limit = ACX_RATE_RETRY_LIMIT; in wl1251_acx_rate_policies()
850 acx->rate_class[0].aflags = 0; in wl1251_acx_rate_policies()
853 acx->rate_class[1].enabled_rates = ACX_RATE_MASK_UNSPECIFIED; in wl1251_acx_rate_policies()
854 acx->rate_class[1].short_retry_limit = 0; in wl1251_acx_rate_policies()
855 acx->rate_class[1].long_retry_limit = 0; in wl1251_acx_rate_policies()
856 acx->rate_class[1].aflags = 0; in wl1251_acx_rate_policies()
858 ret = wl1251_cmd_configure(wl, ACX_RATE_POLICY, acx, sizeof(*acx)); in wl1251_acx_rate_policies()
865 kfree(acx); in wl1251_acx_rate_policies()
916 struct wl1251_acx_wr_tbtt_and_dtim *acx; in wl1251_acx_wr_tbtt_and_dtim() local
921 acx = kzalloc(sizeof(*acx), GFP_KERNEL); in wl1251_acx_wr_tbtt_and_dtim()
922 if (!acx) in wl1251_acx_wr_tbtt_and_dtim()
925 acx->tbtt = tbtt; in wl1251_acx_wr_tbtt_and_dtim()
926 acx->dtim = dtim; in wl1251_acx_wr_tbtt_and_dtim()
929 acx, sizeof(*acx)); in wl1251_acx_wr_tbtt_and_dtim()
936 kfree(acx); in wl1251_acx_wr_tbtt_and_dtim()
943 struct wl1251_acx_bet_enable *acx; in wl1251_acx_bet_enable() local
948 acx = kzalloc(sizeof(*acx), GFP_KERNEL); in wl1251_acx_bet_enable()
949 if (!acx) in wl1251_acx_bet_enable()
952 acx->enable = mode; in wl1251_acx_bet_enable()
953 acx->max_consecutive = max_consecutive; in wl1251_acx_bet_enable()
955 ret = wl1251_cmd_configure(wl, ACX_BET_ENABLE, acx, sizeof(*acx)); in wl1251_acx_bet_enable()
962 kfree(acx); in wl1251_acx_bet_enable()
968 struct wl1251_acx_arp_filter *acx; in wl1251_acx_arp_ip_filter() local
973 acx = kzalloc(sizeof(*acx), GFP_KERNEL); in wl1251_acx_arp_ip_filter()
974 if (!acx) in wl1251_acx_arp_ip_filter()
977 acx->version = ACX_IPV4_VERSION; in wl1251_acx_arp_ip_filter()
978 acx->enable = enable; in wl1251_acx_arp_ip_filter()
981 memcpy(acx->address, &address, ACX_IPV4_ADDR_SIZE); in wl1251_acx_arp_ip_filter()
984 acx, sizeof(*acx)); in wl1251_acx_arp_ip_filter()
988 kfree(acx); in wl1251_acx_arp_ip_filter()
995 struct wl1251_acx_ac_cfg *acx; in wl1251_acx_ac_cfg() local
1001 acx = kzalloc(sizeof(*acx), GFP_KERNEL); in wl1251_acx_ac_cfg()
1002 if (!acx) in wl1251_acx_ac_cfg()
1005 acx->ac = ac; in wl1251_acx_ac_cfg()
1006 acx->cw_min = cw_min; in wl1251_acx_ac_cfg()
1007 acx->cw_max = cw_max; in wl1251_acx_ac_cfg()
1008 acx->aifsn = aifs; in wl1251_acx_ac_cfg()
1009 acx->txop_limit = txop; in wl1251_acx_ac_cfg()
1011 ret = wl1251_cmd_configure(wl, ACX_AC_CFG, acx, sizeof(*acx)); in wl1251_acx_ac_cfg()
1018 kfree(acx); in wl1251_acx_ac_cfg()
1027 struct wl1251_acx_tid_cfg *acx; in wl1251_acx_tid_cfg() local
1034 acx = kzalloc(sizeof(*acx), GFP_KERNEL); in wl1251_acx_tid_cfg()
1035 if (!acx) in wl1251_acx_tid_cfg()
1038 acx->queue = queue; in wl1251_acx_tid_cfg()
1039 acx->type = type; in wl1251_acx_tid_cfg()
1040 acx->tsid = tsid; in wl1251_acx_tid_cfg()
1041 acx->ps_scheme = ps_scheme; in wl1251_acx_tid_cfg()
1042 acx->ack_policy = ack_policy; in wl1251_acx_tid_cfg()
1044 ret = wl1251_cmd_configure(wl, ACX_TID_CFG, acx, sizeof(*acx)); in wl1251_acx_tid_cfg()
1051 kfree(acx); in wl1251_acx_tid_cfg()