Lines Matching refs:ret

15 	int ret;  in wl1251_acx_frame_rates()  local
28 ret = wl1251_cmd_configure(wl, ACX_FW_GEN_FRAME_RATES, in wl1251_acx_frame_rates()
30 if (ret < 0) { in wl1251_acx_frame_rates()
37 return ret; in wl1251_acx_frame_rates()
44 int ret, i; in wl1251_acx_station_id() local
55 ret = wl1251_cmd_configure(wl, DOT11_STATION_ID, mac, sizeof(*mac)); in wl1251_acx_station_id()
56 if (ret < 0) in wl1251_acx_station_id()
61 return ret; in wl1251_acx_station_id()
67 int ret; in wl1251_acx_default_key() local
77 ret = wl1251_cmd_configure(wl, DOT11_DEFAULT_KEY, in wl1251_acx_default_key()
79 if (ret < 0) { in wl1251_acx_default_key()
88 return ret; in wl1251_acx_default_key()
95 int ret; in wl1251_acx_wake_up_conditions() local
106 ret = wl1251_cmd_configure(wl, ACX_WAKE_UP_CONDITIONS, in wl1251_acx_wake_up_conditions()
108 if (ret < 0) { in wl1251_acx_wake_up_conditions()
109 wl1251_warning("could not set wake up conditions: %d", ret); in wl1251_acx_wake_up_conditions()
115 return ret; in wl1251_acx_wake_up_conditions()
121 int ret; in wl1251_acx_sleep_auth() local
131 ret = wl1251_cmd_configure(wl, ACX_SLEEP_AUTH, auth, sizeof(*auth)); in wl1251_acx_sleep_auth()
134 return ret; in wl1251_acx_sleep_auth()
140 int ret; in wl1251_acx_fw_version() local
148 ret = wl1251_cmd_interrogate(wl, ACX_FW_REV, rev, sizeof(*rev)); in wl1251_acx_fw_version()
149 if (ret < 0) { in wl1251_acx_fw_version()
166 return ret; in wl1251_acx_fw_version()
172 int ret; in wl1251_acx_tx_power() local
185 ret = wl1251_cmd_configure(wl, DOT11_CUR_TX_PWR, acx, sizeof(*acx)); in wl1251_acx_tx_power()
186 if (ret < 0) { in wl1251_acx_tx_power()
187 wl1251_warning("configure of tx power failed: %d", ret); in wl1251_acx_tx_power()
193 return ret; in wl1251_acx_tx_power()
199 int ret; in wl1251_acx_feature_cfg() local
211 ret = wl1251_cmd_configure(wl, ACX_FEATURE_CFG, in wl1251_acx_feature_cfg()
213 if (ret < 0) { in wl1251_acx_feature_cfg()
220 return ret; in wl1251_acx_feature_cfg()
226 int ret; in wl1251_acx_mem_map() local
230 ret = wl1251_cmd_interrogate(wl, ACX_MEM_MAP, mem_map, len); in wl1251_acx_mem_map()
231 if (ret < 0) in wl1251_acx_mem_map()
232 return ret; in wl1251_acx_mem_map()
241 int ret; in wl1251_acx_data_path_params() local
261 ret = wl1251_cmd_configure(wl, ACX_DATA_PATH_PARAMS, in wl1251_acx_data_path_params()
263 if (ret < 0) in wl1251_acx_data_path_params()
267 ret = wl1251_cmd_interrogate(wl, ACX_DATA_PATH_PARAMS, in wl1251_acx_data_path_params()
270 if (ret < 0) { in wl1251_acx_data_path_params()
271 wl1251_warning("failed to read data path parameters: %d", ret); in wl1251_acx_data_path_params()
275 ret = -EIO; in wl1251_acx_data_path_params()
281 return ret; in wl1251_acx_data_path_params()
287 int ret; in wl1251_acx_rx_msdu_life_time() local
296 ret = wl1251_cmd_configure(wl, DOT11_RX_MSDU_LIFE_TIME, in wl1251_acx_rx_msdu_life_time()
298 if (ret < 0) { in wl1251_acx_rx_msdu_life_time()
299 wl1251_warning("failed to set rx msdu life time: %d", ret); in wl1251_acx_rx_msdu_life_time()
305 return ret; in wl1251_acx_rx_msdu_life_time()
311 int ret; in wl1251_acx_rx_config() local
322 ret = wl1251_cmd_configure(wl, ACX_RX_CFG, in wl1251_acx_rx_config()
324 if (ret < 0) { in wl1251_acx_rx_config()
325 wl1251_warning("failed to set rx config: %d", ret); in wl1251_acx_rx_config()
331 return ret; in wl1251_acx_rx_config()
337 int ret; in wl1251_acx_pd_threshold() local
347 ret = wl1251_cmd_configure(wl, ACX_PD_THRESHOLD, pd, sizeof(*pd)); in wl1251_acx_pd_threshold()
348 if (ret < 0) { in wl1251_acx_pd_threshold()
349 wl1251_warning("failed to set pd threshold: %d", ret); in wl1251_acx_pd_threshold()
355 return ret; in wl1251_acx_pd_threshold()
361 int ret; in wl1251_acx_slot() local
372 ret = wl1251_cmd_configure(wl, ACX_SLOT, slot, sizeof(*slot)); in wl1251_acx_slot()
373 if (ret < 0) { in wl1251_acx_slot()
374 wl1251_warning("failed to set slot time: %d", ret); in wl1251_acx_slot()
380 return ret; in wl1251_acx_slot()
387 int ret; in wl1251_acx_group_address_tbl() local
400 ret = wl1251_cmd_configure(wl, DOT11_GROUP_ADDRESS_TBL, in wl1251_acx_group_address_tbl()
402 if (ret < 0) { in wl1251_acx_group_address_tbl()
403 wl1251_warning("failed to set group addr table: %d", ret); in wl1251_acx_group_address_tbl()
409 return ret; in wl1251_acx_group_address_tbl()
415 int ret; in wl1251_acx_service_period_timeout() local
426 ret = wl1251_cmd_configure(wl, ACX_SERVICE_PERIOD_TIMEOUT, in wl1251_acx_service_period_timeout()
428 if (ret < 0) { in wl1251_acx_service_period_timeout()
430 ret); in wl1251_acx_service_period_timeout()
436 return ret; in wl1251_acx_service_period_timeout()
442 int ret; in wl1251_acx_rts_threshold() local
452 ret = wl1251_cmd_configure(wl, DOT11_RTS_THRESHOLD, rts, sizeof(*rts)); in wl1251_acx_rts_threshold()
453 if (ret < 0) { in wl1251_acx_rts_threshold()
454 wl1251_warning("failed to set rts threshold: %d", ret); in wl1251_acx_rts_threshold()
460 return ret; in wl1251_acx_rts_threshold()
466 int ret; in wl1251_acx_beacon_filter_opt() local
477 ret = wl1251_cmd_configure(wl, ACX_BEACON_FILTER_OPT, in wl1251_acx_beacon_filter_opt()
479 if (ret < 0) { in wl1251_acx_beacon_filter_opt()
480 wl1251_warning("failed to set beacon filter opt: %d", ret); in wl1251_acx_beacon_filter_opt()
486 return ret; in wl1251_acx_beacon_filter_opt()
493 int ret; in wl1251_acx_beacon_filter_table() local
506 ret = wl1251_cmd_configure(wl, ACX_BEACON_FILTER_TABLE, in wl1251_acx_beacon_filter_table()
508 if (ret < 0) { in wl1251_acx_beacon_filter_table()
509 wl1251_warning("failed to set beacon filter table: %d", ret); in wl1251_acx_beacon_filter_table()
515 return ret; in wl1251_acx_beacon_filter_table()
521 int ret; in wl1251_acx_conn_monit_params() local
532 ret = wl1251_cmd_configure(wl, ACX_CONN_MONIT_PARAMS, in wl1251_acx_conn_monit_params()
534 if (ret < 0) { in wl1251_acx_conn_monit_params()
536 "parameters: %d", ret); in wl1251_acx_conn_monit_params()
542 return ret; in wl1251_acx_conn_monit_params()
548 int ret; in wl1251_acx_sg_enable() local
558 ret = wl1251_cmd_configure(wl, ACX_SG_ENABLE, pta, sizeof(*pta)); in wl1251_acx_sg_enable()
559 if (ret < 0) { in wl1251_acx_sg_enable()
560 wl1251_warning("failed to set softgemini enable: %d", ret); in wl1251_acx_sg_enable()
566 return ret; in wl1251_acx_sg_enable()
572 int ret; in wl1251_acx_sg_cfg() local
610 ret = wl1251_cmd_configure(wl, ACX_SG_CFG, param, sizeof(*param)); in wl1251_acx_sg_cfg()
611 if (ret < 0) { in wl1251_acx_sg_cfg()
612 wl1251_warning("failed to set sg config: %d", ret); in wl1251_acx_sg_cfg()
618 return ret; in wl1251_acx_sg_cfg()
624 int ret; in wl1251_acx_cca_threshold() local
635 ret = wl1251_cmd_configure(wl, ACX_CCA_THRESHOLD, in wl1251_acx_cca_threshold()
637 if (ret < 0) in wl1251_acx_cca_threshold()
638 wl1251_warning("failed to set cca threshold: %d", ret); in wl1251_acx_cca_threshold()
641 return ret; in wl1251_acx_cca_threshold()
647 int ret; in wl1251_acx_bcn_dtim_options() local
660 ret = wl1251_cmd_configure(wl, ACX_BCN_DTIM_OPTIONS, bb, sizeof(*bb)); in wl1251_acx_bcn_dtim_options()
661 if (ret < 0) { in wl1251_acx_bcn_dtim_options()
662 wl1251_warning("failed to set rx config: %d", ret); in wl1251_acx_bcn_dtim_options()
668 return ret; in wl1251_acx_bcn_dtim_options()
674 int ret; in wl1251_acx_aid() local
684 ret = wl1251_cmd_configure(wl, ACX_AID, acx_aid, sizeof(*acx_aid)); in wl1251_acx_aid()
685 if (ret < 0) { in wl1251_acx_aid()
686 wl1251_warning("failed to set aid: %d", ret); in wl1251_acx_aid()
692 return ret; in wl1251_acx_aid()
698 int ret; in wl1251_acx_event_mbox_mask() local
711 ret = wl1251_cmd_configure(wl, ACX_EVENT_MBOX_MASK, in wl1251_acx_event_mbox_mask()
713 if (ret < 0) { in wl1251_acx_event_mbox_mask()
714 wl1251_warning("failed to set acx_event_mbox_mask: %d", ret); in wl1251_acx_event_mbox_mask()
720 return ret; in wl1251_acx_event_mbox_mask()
727 int ret; in wl1251_acx_low_rssi() local
740 ret = wl1251_cmd_configure(wl, ACX_LOW_RSSI, rssi, sizeof(*rssi)); in wl1251_acx_low_rssi()
741 if (ret < 0) in wl1251_acx_low_rssi()
742 wl1251_warning("failed to set low rssi threshold: %d", ret); in wl1251_acx_low_rssi()
745 return ret; in wl1251_acx_low_rssi()
751 int ret; in wl1251_acx_set_preamble() local
761 ret = wl1251_cmd_configure(wl, ACX_PREAMBLE_TYPE, acx, sizeof(*acx)); in wl1251_acx_set_preamble()
762 if (ret < 0) { in wl1251_acx_set_preamble()
763 wl1251_warning("Setting of preamble failed: %d", ret); in wl1251_acx_set_preamble()
769 return ret; in wl1251_acx_set_preamble()
776 int ret; in wl1251_acx_cts_protect() local
786 ret = wl1251_cmd_configure(wl, ACX_CTS_PROTECTION, acx, sizeof(*acx)); in wl1251_acx_cts_protect()
787 if (ret < 0) { in wl1251_acx_cts_protect()
788 wl1251_warning("Setting of ctsprotect failed: %d", ret); in wl1251_acx_cts_protect()
794 return ret; in wl1251_acx_cts_protect()
800 int ret; in wl1251_acx_tsf_info() local
806 ret = wl1251_cmd_interrogate(wl, ACX_TSF_INFO, in wl1251_acx_tsf_info()
808 if (ret < 0) { in wl1251_acx_tsf_info()
818 return ret; in wl1251_acx_tsf_info()
823 int ret; in wl1251_acx_statistics() local
827 ret = wl1251_cmd_interrogate(wl, ACX_STATISTICS, stats, in wl1251_acx_statistics()
829 if (ret < 0) { in wl1251_acx_statistics()
830 wl1251_warning("acx statistics failed: %d", ret); in wl1251_acx_statistics()
840 int ret = 0; in wl1251_acx_rate_policies() local
861 ret = wl1251_cmd_configure(wl, ACX_RATE_POLICY, acx, sizeof(*acx)); in wl1251_acx_rate_policies()
862 if (ret < 0) { in wl1251_acx_rate_policies()
863 wl1251_warning("Setting of rate policies failed: %d", ret); in wl1251_acx_rate_policies()
869 return ret; in wl1251_acx_rate_policies()
875 int ret, i; in wl1251_acx_mem_cfg() local
905 ret = wl1251_cmd_configure(wl, ACX_MEM_CFG, mem_conf, in wl1251_acx_mem_cfg()
907 if (ret < 0) { in wl1251_acx_mem_cfg()
908 wl1251_warning("wl1251 mem config failed: %d", ret); in wl1251_acx_mem_cfg()
914 return ret; in wl1251_acx_mem_cfg()
920 int ret; in wl1251_acx_wr_tbtt_and_dtim() local
931 ret = wl1251_cmd_configure(wl, ACX_WR_TBTT_AND_DTIM, in wl1251_acx_wr_tbtt_and_dtim()
933 if (ret < 0) { in wl1251_acx_wr_tbtt_and_dtim()
934 wl1251_warning("failed to set tbtt and dtim: %d", ret); in wl1251_acx_wr_tbtt_and_dtim()
940 return ret; in wl1251_acx_wr_tbtt_and_dtim()
947 int ret; in wl1251_acx_bet_enable() local
958 ret = wl1251_cmd_configure(wl, ACX_BET_ENABLE, acx, sizeof(*acx)); in wl1251_acx_bet_enable()
959 if (ret < 0) { in wl1251_acx_bet_enable()
960 wl1251_warning("wl1251 acx bet enable failed: %d", ret); in wl1251_acx_bet_enable()
966 return ret; in wl1251_acx_bet_enable()
972 int ret; in wl1251_acx_arp_ip_filter() local
986 ret = wl1251_cmd_configure(wl, ACX_ARP_IP_FILTER, in wl1251_acx_arp_ip_filter()
988 if (ret < 0) in wl1251_acx_arp_ip_filter()
989 wl1251_warning("failed to set arp ip filter: %d", ret); in wl1251_acx_arp_ip_filter()
992 return ret; in wl1251_acx_arp_ip_filter()
999 int ret = 0; in wl1251_acx_ac_cfg() local
1014 ret = wl1251_cmd_configure(wl, ACX_AC_CFG, acx, sizeof(*acx)); in wl1251_acx_ac_cfg()
1015 if (ret < 0) { in wl1251_acx_ac_cfg()
1016 wl1251_warning("acx ac cfg failed: %d", ret); in wl1251_acx_ac_cfg()
1022 return ret; in wl1251_acx_ac_cfg()
1031 int ret = 0; in wl1251_acx_tid_cfg() local
1047 ret = wl1251_cmd_configure(wl, ACX_TID_CFG, acx, sizeof(*acx)); in wl1251_acx_tid_cfg()
1048 if (ret < 0) { in wl1251_acx_tid_cfg()
1049 wl1251_warning("acx tid cfg failed: %d", ret); in wl1251_acx_tid_cfg()
1055 return ret; in wl1251_acx_tid_cfg()