Lines Matching refs:ret

41 	int ret;
48 ret = -ENOMEM;
56 ret = wl1271_cmd_configure(wl, ACX_WAKE_UP_CONDITIONS,
58 if (ret < 0) {
59 wl1271_warning("could not set wake up conditions: %d", ret);
65 return ret;
71 int ret;
77 ret = -ENOMEM;
83 ret = wl1271_cmd_configure(wl, ACX_SLEEP_AUTH, auth, sizeof(*auth));
84 if (ret < 0) {
86 sleep_auth, ret);
93 return ret;
101 int ret;
110 ret = -ENOMEM;
117 ret = wl1271_cmd_configure(wl, DOT11_CUR_TX_PWR, acx, sizeof(*acx));
118 if (ret < 0) {
119 wl1271_warning("configure of tx power failed: %d", ret);
125 return ret;
131 int ret;
137 ret = -ENOMEM;
146 ret = wl1271_cmd_configure(wl, ACX_FEATURE_CFG,
148 if (ret < 0) {
155 return ret;
161 int ret;
165 ret = wl1271_cmd_interrogate(wl, ACX_MEM_MAP, mem_map,
167 if (ret < 0)
168 return ret;
176 int ret;
182 ret = -ENOMEM;
187 ret = wl1271_cmd_configure(wl, DOT11_RX_MSDU_LIFE_TIME,
189 if (ret < 0) {
190 wl1271_warning("failed to set rx msdu life time: %d", ret);
196 return ret;
203 int ret;
209 ret = -ENOMEM;
217 ret = wl1271_cmd_configure(wl, ACX_SLOT, slot, sizeof(*slot));
218 if (ret < 0) {
219 wl1271_warning("failed to set slot time: %d", ret);
225 return ret;
232 int ret;
238 ret = -ENOMEM;
248 ret = wl1271_cmd_configure(wl, DOT11_GROUP_ADDRESS_TBL,
250 if (ret < 0) {
251 wl1271_warning("failed to set group addr table: %d", ret);
257 return ret;
264 int ret;
268 ret = -ENOMEM;
278 ret = wl1271_cmd_configure(wl, ACX_SERVICE_PERIOD_TIMEOUT,
280 if (ret < 0) {
282 ret);
288 return ret;
295 int ret;
308 ret = -ENOMEM;
315 ret = wl1271_cmd_configure(wl, DOT11_RTS_THRESHOLD, rts, sizeof(*rts));
316 if (ret < 0) {
317 wl1271_warning("failed to set rts threshold: %d", ret);
323 return ret;
330 int ret;
336 ret = -ENOMEM;
343 ret = wl1271_cmd_configure(wl, ACX_SET_DCO_ITRIM_PARAMS,
345 if (ret < 0) {
346 wl1271_warning("failed to set dco itrim parameters: %d", ret);
352 return ret;
359 int ret = 0;
370 ret = -ENOMEM;
383 ret = wl1271_cmd_configure(wl, ACX_BEACON_FILTER_OPT,
385 if (ret < 0) {
386 wl1271_warning("failed to set beacon filter opt: %d", ret);
392 return ret;
400 int ret;
407 ret = -ENOMEM;
439 ret = wl1271_cmd_configure(wl, ACX_BEACON_FILTER_TABLE,
441 if (ret < 0) {
442 wl1271_warning("failed to set beacon filter table: %d", ret);
448 return ret;
459 int ret;
466 ret = -ENOMEM;
479 ret = wl1271_cmd_configure(wl, ACX_CONN_MONIT_PARAMS,
481 if (ret < 0) {
483 "parameters: %d", ret);
489 return ret;
496 int ret;
502 ret = -ENOMEM;
511 ret = wl1271_cmd_configure(wl, ACX_SG_ENABLE, pta, sizeof(*pta));
512 if (ret < 0) {
513 wl1271_warning("failed to set softgemini enable: %d", ret);
519 return ret;
526 int i, ret;
532 ret = -ENOMEM;
541 ret = wl1271_cmd_configure(wl, ACX_SG_CFG, param, sizeof(*param));
542 if (ret < 0) {
543 wl1271_warning("failed to set sg config: %d", ret);
549 return ret;
555 int ret;
561 ret = -ENOMEM;
568 ret = wl1271_cmd_configure(wl, ACX_CCA_THRESHOLD,
570 if (ret < 0)
571 wl1271_warning("failed to set cca threshold: %d", ret);
575 return ret;
581 int ret;
587 ret = -ENOMEM;
597 ret = wl1271_cmd_configure(wl, ACX_BCN_DTIM_OPTIONS, bb, sizeof(*bb));
598 if (ret < 0) {
599 wl1271_warning("failed to set rx config: %d", ret);
605 return ret;
611 int ret;
617 ret = -ENOMEM;
624 ret = wl1271_cmd_configure(wl, ACX_AID, acx_aid, sizeof(*acx_aid));
625 if (ret < 0) {
626 wl1271_warning("failed to set aid: %d", ret);
632 return ret;
638 int ret;
644 ret = -ENOMEM;
652 ret = wl1271_cmd_configure(wl, ACX_EVENT_MBOX_MASK,
654 if (ret < 0) {
655 wl1271_warning("failed to set acx_event_mbox_mask: %d", ret);
661 return ret;
668 int ret;
674 ret = -ENOMEM;
681 ret = wl1271_cmd_configure(wl, ACX_PREAMBLE_TYPE, acx, sizeof(*acx));
682 if (ret < 0) {
683 wl1271_warning("Setting of preamble failed: %d", ret);
689 return ret;
696 int ret;
702 ret = -ENOMEM;
709 ret = wl1271_cmd_configure(wl, ACX_CTS_PROTECTION, acx, sizeof(*acx));
710 if (ret < 0) {
711 wl1271_warning("Setting of ctsprotect failed: %d", ret);
717 return ret;
722 int ret;
726 ret = wl1271_cmd_interrogate(wl, ACX_STATISTICS, stats,
729 if (ret < 0) {
730 wl1271_warning("acx statistics failed: %d", ret);
741 int ret = 0;
748 ret = -ENOMEM;
762 ret = wl1271_cmd_configure(wl, ACX_RATE_POLICY, acx, sizeof(*acx));
763 if (ret < 0) {
764 wl1271_warning("Setting of rate policies failed: %d", ret);
778 ret = wl1271_cmd_configure(wl, ACX_RATE_POLICY, acx, sizeof(*acx));
779 if (ret < 0) {
780 wl1271_warning("Setting of rate policies failed: %d", ret);
796 ret = wl1271_cmd_configure(wl, ACX_RATE_POLICY, acx, sizeof(*acx));
797 if (ret < 0) {
798 wl1271_warning("Setting of rate policies failed: %d", ret);
804 return ret;
811 int ret = 0;
818 ret = -ENOMEM;
829 ret = wl1271_cmd_configure(wl, ACX_RATE_POLICY, acx, sizeof(*acx));
830 if (ret < 0) {
831 wl1271_warning("Setting of ap rate policy failed: %d", ret);
837 return ret;
844 int ret = 0;
852 ret = -ENOMEM;
863 ret = wl1271_cmd_configure(wl, ACX_AC_CFG, acx, sizeof(*acx));
864 if (ret < 0) {
865 wl1271_warning("acx ac cfg failed: %d", ret);
871 return ret;
880 int ret = 0;
887 ret = -ENOMEM;
900 ret = wl1271_cmd_configure(wl, ACX_TID_CFG, acx, sizeof(*acx));
901 if (ret < 0) {
902 wl1271_warning("Setting of tid config failed: %d", ret);
908 return ret;
914 int ret = 0;
928 ret = -ENOMEM;
933 ret = wl1271_cmd_configure(wl, ACX_FRAG_CFG, acx, sizeof(*acx));
934 if (ret < 0) {
935 wl1271_warning("Setting of frag threshold failed: %d", ret);
941 return ret;
947 int ret = 0;
954 ret = -ENOMEM;
960 ret = wl1271_cmd_configure(wl, ACX_TX_CONFIG_OPT, acx, sizeof(*acx));
961 if (ret < 0) {
962 wl1271_warning("Setting of tx options failed: %d", ret);
968 return ret;
975 int ret;
981 ret = -ENOMEM;
999 ret = wl1271_cmd_configure(wl, ACX_MEM_CFG, mem_conf,
1001 if (ret < 0) {
1002 wl1271_warning("wl1271 mem config failed: %d", ret);
1008 return ret;
1014 int ret;
1024 ret = wl1271_acx_mem_map(wl, (void *)wl->target_mem_map,
1026 if (ret < 0) {
1030 return ret;
1046 int ret;
1052 ret = -ENOMEM;
1061 ret = wl1271_cmd_configure(wl, ACX_RX_CONFIG_OPT, rx_conf,
1063 if (ret < 0) {
1064 wl1271_warning("wl1271 rx config opt failed: %d", ret);
1070 return ret;
1077 int ret = 0;
1086 ret = -ENOMEM;
1094 ret = wl1271_cmd_configure(wl, ACX_BET_ENABLE, acx, sizeof(*acx));
1095 if (ret < 0) {
1096 wl1271_warning("acx bet enable failed: %d", ret);
1102 return ret;
1109 int ret;
1115 ret = -ENOMEM;
1126 ret = wl1271_cmd_configure(wl, ACX_ARP_IP_FILTER,
1128 if (ret < 0) {
1129 wl1271_warning("failed to set arp ip filter: %d", ret);
1135 return ret;
1142 int ret = 0;
1148 ret = -ENOMEM;
1155 ret = wl1271_cmd_configure(wl, ACX_PM_CONFIG, acx, sizeof(*acx));
1156 if (ret < 0) {
1157 wl1271_warning("acx pm config failed: %d", ret);
1163 return ret;
1171 int ret = 0;
1177 ret = -ENOMEM;
1184 ret = wl1271_cmd_configure(wl, ACX_KEEP_ALIVE_MODE, acx, sizeof(*acx));
1185 if (ret < 0) {
1186 wl1271_warning("acx keep alive mode failed: %d", ret);
1192 return ret;
1199 int ret = 0;
1205 ret = -ENOMEM;
1215 ret = wl1271_cmd_configure(wl, ACX_SET_KEEP_ALIVE_CONFIG,
1217 if (ret < 0) {
1218 wl1271_warning("acx keep alive config failed: %d", ret);
1224 return ret;
1231 int ret = 0;
1237 ret = -ENOMEM;
1257 ret = wl1271_cmd_configure(wl, ACX_RSSI_SNR_TRIGGER, acx, sizeof(*acx));
1258 if (ret < 0) {
1259 wl1271_warning("acx rssi snr trigger setting failed: %d", ret);
1265 return ret;
1273 int ret = 0;
1279 ret = -ENOMEM;
1289 ret = wl1271_cmd_configure(wl, ACX_RSSI_SNR_WEIGHTS, acx, sizeof(*acx));
1290 if (ret < 0) {
1291 wl1271_warning("acx rssi snr trigger weights failed: %d", ret);
1297 return ret;
1305 int ret = 0;
1314 ret = -ENOMEM;
1336 ret = wl1271_cmd_configure(wl, ACX_PEER_HT_CAP, acx, sizeof(*acx));
1337 if (ret < 0) {
1338 wl1271_warning("acx ht capabilities setting failed: %d", ret);
1344 return ret;
1354 int ret = 0;
1360 ret = -ENOMEM;
1373 ret = wl1271_cmd_configure(wl, ACX_HT_BSS_OPERATION, acx, sizeof(*acx));
1375 if (ret < 0) {
1376 wl1271_warning("acx ht information setting failed: %d", ret);
1382 return ret;
1390 int ret;
1396 ret = -ENOMEM;
1406 ret = wl1271_cmd_configure(wl,
1410 if (ret < 0) {
1411 wl1271_warning("acx ba initiator policy failed: %d", ret);
1417 return ret;
1425 int ret;
1431 ret = -ENOMEM;
1441 ret = wlcore_cmd_configure_failsafe(wl, ACX_BA_SESSION_RX_SETUP, acx,
1444 if (ret < 0) {
1445 wl1271_warning("acx ba receiver session failed: %d", ret);
1450 if (ret == CMD_STATUS_NO_RX_BA_SESSION) {
1452 ret = -EBUSY;
1456 ret = 0;
1459 return ret;
1466 int ret;
1470 ret = -ENOMEM;
1476 ret = wl1271_cmd_interrogate(wl, ACX_TSF_INFO, tsf_info,
1478 if (ret < 0) {
1488 return ret;
1496 int i, ret = 0;
1502 ret = -ENOMEM;
1527 ret = wl1271_cmd_configure(wl, ACX_PS_RX_STREAMING,
1530 if (ret < 0) {
1531 wl1271_warning("acx ps rx streaming failed: %d", ret);
1537 return ret;
1543 int ret;
1554 ret = wl1271_cmd_configure(wl, ACX_MAX_TX_FAILURE, acx, sizeof(*acx));
1555 if (ret < 0) {
1556 wl1271_warning("acx ap max tx retry failed: %d", ret);
1562 return ret;
1568 int ret;
1574 ret = -ENOMEM;
1582 ret = wl1271_cmd_configure(wl, ACX_CONFIG_PS, config_ps,
1585 if (ret < 0) {
1586 wl1271_warning("acx config ps failed: %d", ret);
1592 return ret;
1599 int ret;
1610 ret = wl1271_cmd_configure(wl, ACX_UPDATE_INCONNECTION_STA_LIST,
1612 if (ret < 0) {
1613 wl1271_warning("acx set inconnaction sta failed: %d", ret);
1619 return ret;
1625 int ret;
1631 ret = -ENOMEM;
1651 ret = wl1271_cmd_configure(wl, ACX_FM_COEX_CFG, acx, sizeof(*acx));
1652 if (ret < 0) {
1653 wl1271_warning("acx fm coex setting failed: %d", ret);
1659 return ret;
1666 int ret;
1692 ret = wl1271_cmd_configure(wl, ACX_SET_RATE_MGMT_PARAMS,
1694 if (ret < 0) {
1695 wl1271_warning("acx set rate mgmt params failed: %d", ret);
1701 return ret;
1708 int ret;
1714 ret = -ENOMEM;
1730 ret = wl1271_cmd_configure(wl, ACX_CONFIG_HANGOVER, acx,
1733 if (ret < 0) {
1734 wl1271_warning("acx config hangover failed: %d", ret);
1740 return ret;
1748 int ret = 0;
1754 ret = -ENOMEM;
1759 ret = wl1271_cmd_interrogate(wl, ACX_ROAMING_STATISTICS_TBL,
1761 if (ret < 0) {
1762 wl1271_warning("acx roaming statistics failed: %d", ret);
1763 ret = -ENOMEM;
1770 return ret;
1779 int ret;
1791 ret = wl1271_cmd_configure(wl, ACX_ENABLE_RX_DATA_FILTER, acx,
1793 if (ret < 0) {
1794 wl1271_warning("acx default rx filter enable failed: %d", ret);
1800 return ret;
1810 int ret;
1843 ret = wl1271_cmd_configure(wl, ACX_SET_RX_DATA_FILTER, acx, acx_size);
1844 if (ret < 0) {
1845 wl1271_warning("setting rx filter failed: %d", ret);
1851 return ret;