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()
58 return ret; in wl1251_acx_station_id()
64 int ret; in wl1251_acx_default_key() local
74 ret = wl1251_cmd_configure(wl, DOT11_DEFAULT_KEY, in wl1251_acx_default_key()
76 if (ret < 0) { in wl1251_acx_default_key()
85 return ret; in wl1251_acx_default_key()
92 int ret; in wl1251_acx_wake_up_conditions() local
103 ret = wl1251_cmd_configure(wl, ACX_WAKE_UP_CONDITIONS, in wl1251_acx_wake_up_conditions()
105 if (ret < 0) { in wl1251_acx_wake_up_conditions()
106 wl1251_warning("could not set wake up conditions: %d", ret); in wl1251_acx_wake_up_conditions()
112 return ret; in wl1251_acx_wake_up_conditions()
118 int ret; in wl1251_acx_sleep_auth() local
128 ret = wl1251_cmd_configure(wl, ACX_SLEEP_AUTH, auth, sizeof(*auth)); in wl1251_acx_sleep_auth()
131 return ret; in wl1251_acx_sleep_auth()
137 int ret; in wl1251_acx_fw_version() local
145 ret = wl1251_cmd_interrogate(wl, ACX_FW_REV, rev, sizeof(*rev)); in wl1251_acx_fw_version()
146 if (ret < 0) { in wl1251_acx_fw_version()
163 return ret; in wl1251_acx_fw_version()
169 int ret; in wl1251_acx_tx_power() local
182 ret = wl1251_cmd_configure(wl, DOT11_CUR_TX_PWR, acx, sizeof(*acx)); in wl1251_acx_tx_power()
183 if (ret < 0) { in wl1251_acx_tx_power()
184 wl1251_warning("configure of tx power failed: %d", ret); in wl1251_acx_tx_power()
190 return ret; in wl1251_acx_tx_power()
196 int ret; in wl1251_acx_feature_cfg() local
208 ret = wl1251_cmd_configure(wl, ACX_FEATURE_CFG, in wl1251_acx_feature_cfg()
210 if (ret < 0) { in wl1251_acx_feature_cfg()
217 return ret; in wl1251_acx_feature_cfg()
223 int ret; in wl1251_acx_mem_map() local
227 ret = wl1251_cmd_interrogate(wl, ACX_MEM_MAP, mem_map, len); in wl1251_acx_mem_map()
228 if (ret < 0) in wl1251_acx_mem_map()
229 return ret; in wl1251_acx_mem_map()
238 int ret; in wl1251_acx_data_path_params() local
258 ret = wl1251_cmd_configure(wl, ACX_DATA_PATH_PARAMS, in wl1251_acx_data_path_params()
260 if (ret < 0) in wl1251_acx_data_path_params()
264 ret = wl1251_cmd_interrogate(wl, ACX_DATA_PATH_PARAMS, in wl1251_acx_data_path_params()
267 if (ret < 0) { in wl1251_acx_data_path_params()
268 wl1251_warning("failed to read data path parameters: %d", ret); in wl1251_acx_data_path_params()
272 ret = -EIO; in wl1251_acx_data_path_params()
278 return ret; in wl1251_acx_data_path_params()
284 int ret; in wl1251_acx_rx_msdu_life_time() local
293 ret = wl1251_cmd_configure(wl, DOT11_RX_MSDU_LIFE_TIME, in wl1251_acx_rx_msdu_life_time()
295 if (ret < 0) { in wl1251_acx_rx_msdu_life_time()
296 wl1251_warning("failed to set rx msdu life time: %d", ret); in wl1251_acx_rx_msdu_life_time()
302 return ret; in wl1251_acx_rx_msdu_life_time()
308 int ret; in wl1251_acx_rx_config() local
319 ret = wl1251_cmd_configure(wl, ACX_RX_CFG, in wl1251_acx_rx_config()
321 if (ret < 0) { in wl1251_acx_rx_config()
322 wl1251_warning("failed to set rx config: %d", ret); in wl1251_acx_rx_config()
328 return ret; in wl1251_acx_rx_config()
334 int ret; in wl1251_acx_pd_threshold() local
344 ret = wl1251_cmd_configure(wl, ACX_PD_THRESHOLD, pd, sizeof(*pd)); in wl1251_acx_pd_threshold()
345 if (ret < 0) { in wl1251_acx_pd_threshold()
346 wl1251_warning("failed to set pd threshold: %d", ret); in wl1251_acx_pd_threshold()
352 return ret; in wl1251_acx_pd_threshold()
358 int ret; in wl1251_acx_slot() local
369 ret = wl1251_cmd_configure(wl, ACX_SLOT, slot, sizeof(*slot)); in wl1251_acx_slot()
370 if (ret < 0) { in wl1251_acx_slot()
371 wl1251_warning("failed to set slot time: %d", ret); in wl1251_acx_slot()
377 return ret; in wl1251_acx_slot()
384 int ret; in wl1251_acx_group_address_tbl() local
397 ret = wl1251_cmd_configure(wl, DOT11_GROUP_ADDRESS_TBL, in wl1251_acx_group_address_tbl()
399 if (ret < 0) { in wl1251_acx_group_address_tbl()
400 wl1251_warning("failed to set group addr table: %d", ret); in wl1251_acx_group_address_tbl()
406 return ret; in wl1251_acx_group_address_tbl()
412 int ret; in wl1251_acx_service_period_timeout() local
423 ret = wl1251_cmd_configure(wl, ACX_SERVICE_PERIOD_TIMEOUT, in wl1251_acx_service_period_timeout()
425 if (ret < 0) { in wl1251_acx_service_period_timeout()
427 ret); in wl1251_acx_service_period_timeout()
433 return ret; in wl1251_acx_service_period_timeout()
439 int ret; in wl1251_acx_rts_threshold() local
449 ret = wl1251_cmd_configure(wl, DOT11_RTS_THRESHOLD, rts, sizeof(*rts)); in wl1251_acx_rts_threshold()
450 if (ret < 0) { in wl1251_acx_rts_threshold()
451 wl1251_warning("failed to set rts threshold: %d", ret); in wl1251_acx_rts_threshold()
457 return ret; in wl1251_acx_rts_threshold()
463 int ret; in wl1251_acx_beacon_filter_opt() local
474 ret = wl1251_cmd_configure(wl, ACX_BEACON_FILTER_OPT, in wl1251_acx_beacon_filter_opt()
476 if (ret < 0) { in wl1251_acx_beacon_filter_opt()
477 wl1251_warning("failed to set beacon filter opt: %d", ret); in wl1251_acx_beacon_filter_opt()
483 return ret; in wl1251_acx_beacon_filter_opt()
490 int ret; in wl1251_acx_beacon_filter_table() local
503 ret = wl1251_cmd_configure(wl, ACX_BEACON_FILTER_TABLE, in wl1251_acx_beacon_filter_table()
505 if (ret < 0) { in wl1251_acx_beacon_filter_table()
506 wl1251_warning("failed to set beacon filter table: %d", ret); in wl1251_acx_beacon_filter_table()
512 return ret; in wl1251_acx_beacon_filter_table()
518 int ret; in wl1251_acx_conn_monit_params() local
529 ret = wl1251_cmd_configure(wl, ACX_CONN_MONIT_PARAMS, in wl1251_acx_conn_monit_params()
531 if (ret < 0) { in wl1251_acx_conn_monit_params()
533 "parameters: %d", ret); in wl1251_acx_conn_monit_params()
539 return ret; in wl1251_acx_conn_monit_params()
545 int ret; in wl1251_acx_sg_enable() local
555 ret = wl1251_cmd_configure(wl, ACX_SG_ENABLE, pta, sizeof(*pta)); in wl1251_acx_sg_enable()
556 if (ret < 0) { in wl1251_acx_sg_enable()
557 wl1251_warning("failed to set softgemini enable: %d", ret); in wl1251_acx_sg_enable()
563 return ret; in wl1251_acx_sg_enable()
569 int ret; in wl1251_acx_sg_cfg() local
607 ret = wl1251_cmd_configure(wl, ACX_SG_CFG, param, sizeof(*param)); in wl1251_acx_sg_cfg()
608 if (ret < 0) { in wl1251_acx_sg_cfg()
609 wl1251_warning("failed to set sg config: %d", ret); in wl1251_acx_sg_cfg()
615 return ret; in wl1251_acx_sg_cfg()
621 int ret; in wl1251_acx_cca_threshold() local
632 ret = wl1251_cmd_configure(wl, ACX_CCA_THRESHOLD, in wl1251_acx_cca_threshold()
634 if (ret < 0) in wl1251_acx_cca_threshold()
635 wl1251_warning("failed to set cca threshold: %d", ret); in wl1251_acx_cca_threshold()
638 return ret; in wl1251_acx_cca_threshold()
644 int ret; in wl1251_acx_bcn_dtim_options() local
657 ret = wl1251_cmd_configure(wl, ACX_BCN_DTIM_OPTIONS, bb, sizeof(*bb)); in wl1251_acx_bcn_dtim_options()
658 if (ret < 0) { in wl1251_acx_bcn_dtim_options()
659 wl1251_warning("failed to set rx config: %d", ret); in wl1251_acx_bcn_dtim_options()
665 return ret; in wl1251_acx_bcn_dtim_options()
671 int ret; in wl1251_acx_aid() local
681 ret = wl1251_cmd_configure(wl, ACX_AID, acx_aid, sizeof(*acx_aid)); in wl1251_acx_aid()
682 if (ret < 0) { in wl1251_acx_aid()
683 wl1251_warning("failed to set aid: %d", ret); in wl1251_acx_aid()
689 return ret; in wl1251_acx_aid()
695 int ret; in wl1251_acx_event_mbox_mask() local
708 ret = wl1251_cmd_configure(wl, ACX_EVENT_MBOX_MASK, in wl1251_acx_event_mbox_mask()
710 if (ret < 0) { in wl1251_acx_event_mbox_mask()
711 wl1251_warning("failed to set acx_event_mbox_mask: %d", ret); in wl1251_acx_event_mbox_mask()
717 return ret; in wl1251_acx_event_mbox_mask()
724 int ret; in wl1251_acx_low_rssi() local
737 ret = wl1251_cmd_configure(wl, ACX_LOW_RSSI, rssi, sizeof(*rssi)); in wl1251_acx_low_rssi()
738 if (ret < 0) in wl1251_acx_low_rssi()
739 wl1251_warning("failed to set low rssi threshold: %d", ret); in wl1251_acx_low_rssi()
742 return ret; in wl1251_acx_low_rssi()
748 int ret; in wl1251_acx_set_preamble() local
758 ret = wl1251_cmd_configure(wl, ACX_PREAMBLE_TYPE, acx, sizeof(*acx)); in wl1251_acx_set_preamble()
759 if (ret < 0) { in wl1251_acx_set_preamble()
760 wl1251_warning("Setting of preamble failed: %d", ret); in wl1251_acx_set_preamble()
766 return ret; in wl1251_acx_set_preamble()
773 int ret; in wl1251_acx_cts_protect() local
783 ret = wl1251_cmd_configure(wl, ACX_CTS_PROTECTION, acx, sizeof(*acx)); in wl1251_acx_cts_protect()
784 if (ret < 0) { in wl1251_acx_cts_protect()
785 wl1251_warning("Setting of ctsprotect failed: %d", ret); in wl1251_acx_cts_protect()
791 return ret; in wl1251_acx_cts_protect()
797 int ret; in wl1251_acx_tsf_info() local
803 ret = wl1251_cmd_interrogate(wl, ACX_TSF_INFO, in wl1251_acx_tsf_info()
805 if (ret < 0) { in wl1251_acx_tsf_info()
815 return ret; in wl1251_acx_tsf_info()
820 int ret; in wl1251_acx_statistics() local
824 ret = wl1251_cmd_interrogate(wl, ACX_STATISTICS, stats, in wl1251_acx_statistics()
826 if (ret < 0) { in wl1251_acx_statistics()
827 wl1251_warning("acx statistics failed: %d", ret); in wl1251_acx_statistics()
837 int ret = 0; in wl1251_acx_rate_policies() local
858 ret = wl1251_cmd_configure(wl, ACX_RATE_POLICY, acx, sizeof(*acx)); in wl1251_acx_rate_policies()
859 if (ret < 0) { in wl1251_acx_rate_policies()
860 wl1251_warning("Setting of rate policies failed: %d", ret); in wl1251_acx_rate_policies()
866 return ret; in wl1251_acx_rate_policies()
872 int ret, i; in wl1251_acx_mem_cfg() local
902 ret = wl1251_cmd_configure(wl, ACX_MEM_CFG, mem_conf, in wl1251_acx_mem_cfg()
904 if (ret < 0) { in wl1251_acx_mem_cfg()
905 wl1251_warning("wl1251 mem config failed: %d", ret); in wl1251_acx_mem_cfg()
911 return ret; in wl1251_acx_mem_cfg()
917 int ret; in wl1251_acx_wr_tbtt_and_dtim() local
928 ret = wl1251_cmd_configure(wl, ACX_WR_TBTT_AND_DTIM, in wl1251_acx_wr_tbtt_and_dtim()
930 if (ret < 0) { in wl1251_acx_wr_tbtt_and_dtim()
931 wl1251_warning("failed to set tbtt and dtim: %d", ret); in wl1251_acx_wr_tbtt_and_dtim()
937 return ret; in wl1251_acx_wr_tbtt_and_dtim()
944 int ret; in wl1251_acx_bet_enable() local
955 ret = wl1251_cmd_configure(wl, ACX_BET_ENABLE, acx, sizeof(*acx)); in wl1251_acx_bet_enable()
956 if (ret < 0) { in wl1251_acx_bet_enable()
957 wl1251_warning("wl1251 acx bet enable failed: %d", ret); in wl1251_acx_bet_enable()
963 return ret; in wl1251_acx_bet_enable()
969 int ret; in wl1251_acx_arp_ip_filter() local
983 ret = wl1251_cmd_configure(wl, ACX_ARP_IP_FILTER, in wl1251_acx_arp_ip_filter()
985 if (ret < 0) in wl1251_acx_arp_ip_filter()
986 wl1251_warning("failed to set arp ip filter: %d", ret); in wl1251_acx_arp_ip_filter()
989 return ret; in wl1251_acx_arp_ip_filter()
996 int ret = 0; in wl1251_acx_ac_cfg() local
1011 ret = wl1251_cmd_configure(wl, ACX_AC_CFG, acx, sizeof(*acx)); in wl1251_acx_ac_cfg()
1012 if (ret < 0) { in wl1251_acx_ac_cfg()
1013 wl1251_warning("acx ac cfg failed: %d", ret); in wl1251_acx_ac_cfg()
1019 return ret; in wl1251_acx_ac_cfg()
1028 int ret = 0; in wl1251_acx_tid_cfg() local
1044 ret = wl1251_cmd_configure(wl, ACX_TID_CFG, acx, sizeof(*acx)); in wl1251_acx_tid_cfg()
1045 if (ret < 0) { in wl1251_acx_tid_cfg()
1046 wl1251_warning("acx tid cfg failed: %d", ret); in wl1251_acx_tid_cfg()
1052 return ret; in wl1251_acx_tid_cfg()