Lines Matching refs:ret

26 	int ret;
33 ret = -ENOMEM;
41 ret = wl1271_cmd_configure(wl, ACX_WAKE_UP_CONDITIONS,
43 if (ret < 0) {
44 wl1271_warning("could not set wake up conditions: %d", ret);
50 return ret;
56 int ret;
62 ret = -ENOMEM;
68 ret = wl1271_cmd_configure(wl, ACX_SLEEP_AUTH, auth, sizeof(*auth));
69 if (ret < 0) {
71 sleep_auth, ret);
78 return ret;
86 int ret;
95 ret = -ENOMEM;
102 ret = wl1271_cmd_configure(wl, DOT11_CUR_TX_PWR, acx, sizeof(*acx));
103 if (ret < 0) {
104 wl1271_warning("configure of tx power failed: %d", ret);
110 return ret;
116 int ret;
122 ret = -ENOMEM;
131 ret = wl1271_cmd_configure(wl, ACX_FEATURE_CFG,
133 if (ret < 0) {
140 return ret;
146 int ret;
150 ret = wl1271_cmd_interrogate(wl, ACX_MEM_MAP, mem_map,
152 if (ret < 0)
153 return ret;
161 int ret;
167 ret = -ENOMEM;
172 ret = wl1271_cmd_configure(wl, DOT11_RX_MSDU_LIFE_TIME,
174 if (ret < 0) {
175 wl1271_warning("failed to set rx msdu life time: %d", ret);
181 return ret;
188 int ret;
194 ret = -ENOMEM;
202 ret = wl1271_cmd_configure(wl, ACX_SLOT, slot, sizeof(*slot));
203 if (ret < 0) {
204 wl1271_warning("failed to set slot time: %d", ret);
210 return ret;
217 int ret;
223 ret = -ENOMEM;
233 ret = wl1271_cmd_configure(wl, DOT11_GROUP_ADDRESS_TBL,
235 if (ret < 0) {
236 wl1271_warning("failed to set group addr table: %d", ret);
242 return ret;
249 int ret;
253 ret = -ENOMEM;
263 ret = wl1271_cmd_configure(wl, ACX_SERVICE_PERIOD_TIMEOUT,
265 if (ret < 0) {
267 ret);
273 return ret;
280 int ret;
293 ret = -ENOMEM;
300 ret = wl1271_cmd_configure(wl, DOT11_RTS_THRESHOLD, rts, sizeof(*rts));
301 if (ret < 0) {
302 wl1271_warning("failed to set rts threshold: %d", ret);
308 return ret;
315 int ret;
321 ret = -ENOMEM;
328 ret = wl1271_cmd_configure(wl, ACX_SET_DCO_ITRIM_PARAMS,
330 if (ret < 0) {
331 wl1271_warning("failed to set dco itrim parameters: %d", ret);
337 return ret;
344 int ret = 0;
355 ret = -ENOMEM;
368 ret = wl1271_cmd_configure(wl, ACX_BEACON_FILTER_OPT,
370 if (ret < 0) {
371 wl1271_warning("failed to set beacon filter opt: %d", ret);
377 return ret;
385 int ret;
392 ret = -ENOMEM;
424 ret = wl1271_cmd_configure(wl, ACX_BEACON_FILTER_TABLE,
426 if (ret < 0) {
427 wl1271_warning("failed to set beacon filter table: %d", ret);
433 return ret;
444 int ret;
451 ret = -ENOMEM;
464 ret = wl1271_cmd_configure(wl, ACX_CONN_MONIT_PARAMS,
466 if (ret < 0) {
468 "parameters: %d", ret);
474 return ret;
481 int ret;
487 ret = -ENOMEM;
496 ret = wl1271_cmd_configure(wl, ACX_SG_ENABLE, pta, sizeof(*pta));
497 if (ret < 0) {
498 wl1271_warning("failed to set softgemini enable: %d", ret);
504 return ret;
511 int i, ret;
517 ret = -ENOMEM;
526 ret = wl1271_cmd_configure(wl, ACX_SG_CFG, param, sizeof(*param));
527 if (ret < 0) {
528 wl1271_warning("failed to set sg config: %d", ret);
534 return ret;
540 int ret;
546 ret = -ENOMEM;
553 ret = wl1271_cmd_configure(wl, ACX_CCA_THRESHOLD,
555 if (ret < 0)
556 wl1271_warning("failed to set cca threshold: %d", ret);
560 return ret;
566 int ret;
572 ret = -ENOMEM;
582 ret = wl1271_cmd_configure(wl, ACX_BCN_DTIM_OPTIONS, bb, sizeof(*bb));
583 if (ret < 0) {
584 wl1271_warning("failed to set rx config: %d", ret);
590 return ret;
596 int ret;
602 ret = -ENOMEM;
609 ret = wl1271_cmd_configure(wl, ACX_AID, acx_aid, sizeof(*acx_aid));
610 if (ret < 0) {
611 wl1271_warning("failed to set aid: %d", ret);
617 return ret;
623 int ret;
629 ret = -ENOMEM;
637 ret = wl1271_cmd_configure(wl, ACX_EVENT_MBOX_MASK,
639 if (ret < 0) {
640 wl1271_warning("failed to set acx_event_mbox_mask: %d", ret);
646 return ret;
653 int ret;
659 ret = -ENOMEM;
666 ret = wl1271_cmd_configure(wl, ACX_PREAMBLE_TYPE, acx, sizeof(*acx));
667 if (ret < 0) {
668 wl1271_warning("Setting of preamble failed: %d", ret);
674 return ret;
681 int ret;
687 ret = -ENOMEM;
694 ret = wl1271_cmd_configure(wl, ACX_CTS_PROTECTION, acx, sizeof(*acx));
695 if (ret < 0) {
696 wl1271_warning("Setting of ctsprotect failed: %d", ret);
702 return ret;
707 int ret;
711 ret = wl1271_cmd_interrogate(wl, ACX_STATISTICS, stats,
714 if (ret < 0) {
715 wl1271_warning("acx statistics failed: %d", ret);
726 int ret = 0;
733 ret = -ENOMEM;
747 ret = wl1271_cmd_configure(wl, ACX_RATE_POLICY, acx, sizeof(*acx));
748 if (ret < 0) {
749 wl1271_warning("Setting of rate policies failed: %d", ret);
763 ret = wl1271_cmd_configure(wl, ACX_RATE_POLICY, acx, sizeof(*acx));
764 if (ret < 0) {
765 wl1271_warning("Setting of rate policies failed: %d", ret);
781 ret = wl1271_cmd_configure(wl, ACX_RATE_POLICY, acx, sizeof(*acx));
782 if (ret < 0) {
783 wl1271_warning("Setting of rate policies failed: %d", ret);
789 return ret;
796 int ret = 0;
803 ret = -ENOMEM;
814 ret = wl1271_cmd_configure(wl, ACX_RATE_POLICY, acx, sizeof(*acx));
815 if (ret < 0) {
816 wl1271_warning("Setting of ap rate policy failed: %d", ret);
822 return ret;
829 int ret = 0;
837 ret = -ENOMEM;
848 ret = wl1271_cmd_configure(wl, ACX_AC_CFG, acx, sizeof(*acx));
849 if (ret < 0) {
850 wl1271_warning("acx ac cfg failed: %d", ret);
856 return ret;
865 int ret = 0;
872 ret = -ENOMEM;
885 ret = wl1271_cmd_configure(wl, ACX_TID_CFG, acx, sizeof(*acx));
886 if (ret < 0) {
887 wl1271_warning("Setting of tid config failed: %d", ret);
893 return ret;
899 int ret = 0;
913 ret = -ENOMEM;
918 ret = wl1271_cmd_configure(wl, ACX_FRAG_CFG, acx, sizeof(*acx));
919 if (ret < 0) {
920 wl1271_warning("Setting of frag threshold failed: %d", ret);
926 return ret;
932 int ret = 0;
939 ret = -ENOMEM;
945 ret = wl1271_cmd_configure(wl, ACX_TX_CONFIG_OPT, acx, sizeof(*acx));
946 if (ret < 0) {
947 wl1271_warning("Setting of tx options failed: %d", ret);
953 return ret;
960 int ret;
966 ret = -ENOMEM;
984 ret = wl1271_cmd_configure(wl, ACX_MEM_CFG, mem_conf,
986 if (ret < 0) {
987 wl1271_warning("wl1271 mem config failed: %d", ret);
993 return ret;
999 int ret;
1009 ret = wl1271_acx_mem_map(wl, (void *)wl->target_mem_map,
1011 if (ret < 0) {
1015 return ret;
1031 int ret;
1037 ret = -ENOMEM;
1046 ret = wl1271_cmd_configure(wl, ACX_RX_CONFIG_OPT, rx_conf,
1048 if (ret < 0) {
1049 wl1271_warning("wl1271 rx config opt failed: %d", ret);
1055 return ret;
1062 int ret = 0;
1071 ret = -ENOMEM;
1079 ret = wl1271_cmd_configure(wl, ACX_BET_ENABLE, acx, sizeof(*acx));
1080 if (ret < 0) {
1081 wl1271_warning("acx bet enable failed: %d", ret);
1087 return ret;
1094 int ret;
1100 ret = -ENOMEM;
1111 ret = wl1271_cmd_configure(wl, ACX_ARP_IP_FILTER,
1113 if (ret < 0) {
1114 wl1271_warning("failed to set arp ip filter: %d", ret);
1120 return ret;
1127 int ret = 0;
1133 ret = -ENOMEM;
1140 ret = wl1271_cmd_configure(wl, ACX_PM_CONFIG, acx, sizeof(*acx));
1141 if (ret < 0) {
1142 wl1271_warning("acx pm config failed: %d", ret);
1148 return ret;
1156 int ret = 0;
1162 ret = -ENOMEM;
1169 ret = wl1271_cmd_configure(wl, ACX_KEEP_ALIVE_MODE, acx, sizeof(*acx));
1170 if (ret < 0) {
1171 wl1271_warning("acx keep alive mode failed: %d", ret);
1177 return ret;
1184 int ret = 0;
1190 ret = -ENOMEM;
1200 ret = wl1271_cmd_configure(wl, ACX_SET_KEEP_ALIVE_CONFIG,
1202 if (ret < 0) {
1203 wl1271_warning("acx keep alive config failed: %d", ret);
1209 return ret;
1216 int ret = 0;
1222 ret = -ENOMEM;
1242 ret = wl1271_cmd_configure(wl, ACX_RSSI_SNR_TRIGGER, acx, sizeof(*acx));
1243 if (ret < 0) {
1244 wl1271_warning("acx rssi snr trigger setting failed: %d", ret);
1250 return ret;
1258 int ret = 0;
1264 ret = -ENOMEM;
1274 ret = wl1271_cmd_configure(wl, ACX_RSSI_SNR_WEIGHTS, acx, sizeof(*acx));
1275 if (ret < 0) {
1276 wl1271_warning("acx rssi snr trigger weights failed: %d", ret);
1282 return ret;
1290 int ret = 0;
1299 ret = -ENOMEM;
1321 ret = wl1271_cmd_configure(wl, ACX_PEER_HT_CAP, acx, sizeof(*acx));
1322 if (ret < 0) {
1323 wl1271_warning("acx ht capabilities setting failed: %d", ret);
1329 return ret;
1339 int ret = 0;
1345 ret = -ENOMEM;
1358 ret = wl1271_cmd_configure(wl, ACX_HT_BSS_OPERATION, acx, sizeof(*acx));
1360 if (ret < 0) {
1361 wl1271_warning("acx ht information setting failed: %d", ret);
1367 return ret;
1375 int ret;
1381 ret = -ENOMEM;
1391 ret = wl1271_cmd_configure(wl,
1395 if (ret < 0) {
1396 wl1271_warning("acx ba initiator policy failed: %d", ret);
1402 return ret;
1411 int ret;
1417 ret = -ENOMEM;
1427 ret = wlcore_cmd_configure_failsafe(wl, ACX_BA_SESSION_RX_SETUP, acx,
1430 if (ret < 0) {
1431 wl1271_warning("acx ba receiver session failed: %d", ret);
1436 if (ret == CMD_STATUS_NO_RX_BA_SESSION) {
1438 ret = -EBUSY;
1442 ret = 0;
1445 return ret;
1452 int ret;
1456 ret = -ENOMEM;
1462 ret = wl1271_cmd_interrogate(wl, ACX_TSF_INFO, tsf_info,
1464 if (ret < 0) {
1474 return ret;
1482 int i, ret = 0;
1488 ret = -ENOMEM;
1513 ret = wl1271_cmd_configure(wl, ACX_PS_RX_STREAMING,
1516 if (ret < 0) {
1517 wl1271_warning("acx ps rx streaming failed: %d", ret);
1523 return ret;
1529 int ret;
1540 ret = wl1271_cmd_configure(wl, ACX_MAX_TX_FAILURE, acx, sizeof(*acx));
1541 if (ret < 0) {
1542 wl1271_warning("acx ap max tx retry failed: %d", ret);
1548 return ret;
1554 int ret;
1560 ret = -ENOMEM;
1568 ret = wl1271_cmd_configure(wl, ACX_CONFIG_PS, config_ps,
1571 if (ret < 0) {
1572 wl1271_warning("acx config ps failed: %d", ret);
1578 return ret;
1585 int ret;
1596 ret = wl1271_cmd_configure(wl, ACX_UPDATE_INCONNECTION_STA_LIST,
1598 if (ret < 0) {
1599 wl1271_warning("acx set inconnaction sta failed: %d", ret);
1605 return ret;
1611 int ret;
1617 ret = -ENOMEM;
1637 ret = wl1271_cmd_configure(wl, ACX_FM_COEX_CFG, acx, sizeof(*acx));
1638 if (ret < 0) {
1639 wl1271_warning("acx fm coex setting failed: %d", ret);
1645 return ret;
1652 int ret;
1678 ret = wl1271_cmd_configure(wl, ACX_SET_RATE_MGMT_PARAMS,
1680 if (ret < 0) {
1681 wl1271_warning("acx set rate mgmt params failed: %d", ret);
1687 return ret;
1694 int ret;
1700 ret = -ENOMEM;
1716 ret = wl1271_cmd_configure(wl, ACX_CONFIG_HANGOVER, acx,
1719 if (ret < 0) {
1720 wl1271_warning("acx config hangover failed: %d", ret);
1726 return ret;
1734 int ret = 0;
1740 ret = -ENOMEM;
1745 ret = wl1271_cmd_interrogate(wl, ACX_ROAMING_STATISTICS_TBL,
1747 if (ret < 0) {
1748 wl1271_warning("acx roaming statistics failed: %d", ret);
1749 ret = -ENOMEM;
1756 return ret;
1765 int ret;
1777 ret = wl1271_cmd_configure(wl, ACX_ENABLE_RX_DATA_FILTER, acx,
1779 if (ret < 0) {
1780 wl1271_warning("acx default rx filter enable failed: %d", ret);
1786 return ret;
1796 int ret;
1829 ret = wl1271_cmd_configure(wl, ACX_SET_RX_DATA_FILTER, acx, acx_size);
1830 if (ret < 0) {
1831 wl1271_warning("setting rx filter failed: %d", ret);
1837 return ret;