Lines Matching refs:acx
185 struct acx_current_tx_power *acx; in wl1251_acx_tx_power() local
193 acx = kzalloc(sizeof(*acx), GFP_KERNEL); in wl1251_acx_tx_power()
194 if (!acx) { in wl1251_acx_tx_power()
199 acx->current_tx_power = power * 10; in wl1251_acx_tx_power()
201 ret = wl1251_cmd_configure(wl, DOT11_CUR_TX_PWR, acx, sizeof(*acx)); in wl1251_acx_tx_power()
208 kfree(acx); in wl1251_acx_tx_power()
306 struct acx_rx_msdu_lifetime *acx; in wl1251_acx_rx_msdu_life_time() local
311 acx = kzalloc(sizeof(*acx), GFP_KERNEL); in wl1251_acx_rx_msdu_life_time()
312 if (!acx) { in wl1251_acx_rx_msdu_life_time()
317 acx->lifetime = life_time; in wl1251_acx_rx_msdu_life_time()
319 acx, sizeof(*acx)); in wl1251_acx_rx_msdu_life_time()
326 kfree(acx); in wl1251_acx_rx_msdu_life_time()
413 struct acx_dot11_grp_addr_tbl *acx; in wl1251_acx_group_address_tbl() local
418 acx = kzalloc(sizeof(*acx), GFP_KERNEL); in wl1251_acx_group_address_tbl()
419 if (!acx) { in wl1251_acx_group_address_tbl()
425 acx->enabled = 0; in wl1251_acx_group_address_tbl()
426 acx->num_groups = 0; in wl1251_acx_group_address_tbl()
427 memset(acx->mac_table, 0, ADDRESS_GROUP_MAX_LEN); in wl1251_acx_group_address_tbl()
430 acx, sizeof(*acx)); in wl1251_acx_group_address_tbl()
437 kfree(acx); in wl1251_acx_group_address_tbl()
557 struct acx_conn_monit_params *acx; in wl1251_acx_conn_monit_params() local
562 acx = kzalloc(sizeof(*acx), GFP_KERNEL); in wl1251_acx_conn_monit_params()
563 if (!acx) { in wl1251_acx_conn_monit_params()
568 acx->synch_fail_thold = SYNCH_FAIL_DEFAULT_THRESHOLD; in wl1251_acx_conn_monit_params()
569 acx->bss_lose_timeout = NO_BEACON_DEFAULT_TIMEOUT; in wl1251_acx_conn_monit_params()
572 acx, sizeof(*acx)); in wl1251_acx_conn_monit_params()
580 kfree(acx); in wl1251_acx_conn_monit_params()
802 struct acx_preamble *acx; in wl1251_acx_set_preamble() local
807 acx = kzalloc(sizeof(*acx), GFP_KERNEL); in wl1251_acx_set_preamble()
808 if (!acx) { in wl1251_acx_set_preamble()
813 acx->preamble = preamble; in wl1251_acx_set_preamble()
815 ret = wl1251_cmd_configure(wl, ACX_PREAMBLE_TYPE, acx, sizeof(*acx)); in wl1251_acx_set_preamble()
822 kfree(acx); in wl1251_acx_set_preamble()
829 struct acx_ctsprotect *acx; in wl1251_acx_cts_protect() local
834 acx = kzalloc(sizeof(*acx), GFP_KERNEL); in wl1251_acx_cts_protect()
835 if (!acx) { in wl1251_acx_cts_protect()
840 acx->ctsprotect = ctsprotect; in wl1251_acx_cts_protect()
842 ret = wl1251_cmd_configure(wl, ACX_CTS_PROTECTION, acx, sizeof(*acx)); in wl1251_acx_cts_protect()
849 kfree(acx); in wl1251_acx_cts_protect()
897 struct acx_rate_policy *acx; in wl1251_acx_rate_policies() local
902 acx = kzalloc(sizeof(*acx), GFP_KERNEL); in wl1251_acx_rate_policies()
904 if (!acx) { in wl1251_acx_rate_policies()
910 acx->rate_class_cnt = 1; in wl1251_acx_rate_policies()
911 acx->rate_class[0].enabled_rates = ACX_RATE_MASK_UNSPECIFIED; in wl1251_acx_rate_policies()
912 acx->rate_class[0].short_retry_limit = ACX_RATE_RETRY_LIMIT; in wl1251_acx_rate_policies()
913 acx->rate_class[0].long_retry_limit = ACX_RATE_RETRY_LIMIT; in wl1251_acx_rate_policies()
914 acx->rate_class[0].aflags = 0; in wl1251_acx_rate_policies()
916 ret = wl1251_cmd_configure(wl, ACX_RATE_POLICY, acx, sizeof(*acx)); in wl1251_acx_rate_policies()
923 kfree(acx); in wl1251_acx_rate_policies()
976 struct wl1251_acx_wr_tbtt_and_dtim *acx; in wl1251_acx_wr_tbtt_and_dtim() local
981 acx = kzalloc(sizeof(*acx), GFP_KERNEL); in wl1251_acx_wr_tbtt_and_dtim()
982 if (!acx) { in wl1251_acx_wr_tbtt_and_dtim()
987 acx->tbtt = tbtt; in wl1251_acx_wr_tbtt_and_dtim()
988 acx->dtim = dtim; in wl1251_acx_wr_tbtt_and_dtim()
991 acx, sizeof(*acx)); in wl1251_acx_wr_tbtt_and_dtim()
998 kfree(acx); in wl1251_acx_wr_tbtt_and_dtim()
1005 struct wl1251_acx_bet_enable *acx; in wl1251_acx_bet_enable() local
1010 acx = kzalloc(sizeof(*acx), GFP_KERNEL); in wl1251_acx_bet_enable()
1011 if (!acx) { in wl1251_acx_bet_enable()
1016 acx->enable = mode; in wl1251_acx_bet_enable()
1017 acx->max_consecutive = max_consecutive; in wl1251_acx_bet_enable()
1019 ret = wl1251_cmd_configure(wl, ACX_BET_ENABLE, acx, sizeof(*acx)); in wl1251_acx_bet_enable()
1026 kfree(acx); in wl1251_acx_bet_enable()
1033 struct wl1251_acx_ac_cfg *acx; in wl1251_acx_ac_cfg() local
1039 acx = kzalloc(sizeof(*acx), GFP_KERNEL); in wl1251_acx_ac_cfg()
1041 if (!acx) { in wl1251_acx_ac_cfg()
1046 acx->ac = ac; in wl1251_acx_ac_cfg()
1047 acx->cw_min = cw_min; in wl1251_acx_ac_cfg()
1048 acx->cw_max = cw_max; in wl1251_acx_ac_cfg()
1049 acx->aifsn = aifs; in wl1251_acx_ac_cfg()
1050 acx->txop_limit = txop; in wl1251_acx_ac_cfg()
1052 ret = wl1251_cmd_configure(wl, ACX_AC_CFG, acx, sizeof(*acx)); in wl1251_acx_ac_cfg()
1059 kfree(acx); in wl1251_acx_ac_cfg()
1068 struct wl1251_acx_tid_cfg *acx; in wl1251_acx_tid_cfg() local
1075 acx = kzalloc(sizeof(*acx), GFP_KERNEL); in wl1251_acx_tid_cfg()
1077 if (!acx) { in wl1251_acx_tid_cfg()
1082 acx->queue = queue; in wl1251_acx_tid_cfg()
1083 acx->type = type; in wl1251_acx_tid_cfg()
1084 acx->tsid = tsid; in wl1251_acx_tid_cfg()
1085 acx->ps_scheme = ps_scheme; in wl1251_acx_tid_cfg()
1086 acx->ack_policy = ack_policy; in wl1251_acx_tid_cfg()
1088 ret = wl1251_cmd_configure(wl, ACX_TID_CFG, acx, sizeof(*acx)); in wl1251_acx_tid_cfg()
1095 kfree(acx); in wl1251_acx_tid_cfg()