Lines Matching refs:ret

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