Lines Matching +full:mic +full:- +full:channel +full:- +full:c
2 * Copyright (c) 2020 Manivannan Sadhasivam <mani@kernel.org>
4 * SPDX-License-Identifier: Apache-2.0
26 [LORAMAC_STATUS_DUTYCYCLE_RESTRICTED] = "Duty-cycle restricted",
27 [LORAMAC_STATUS_NO_CHANNEL_FOUND] = "No channel found",
28 [LORAMAC_STATUS_NO_FREE_CHANNEL_FOUND] = "No free channel found",
32 "Busy ping-slot window time",
65 [LORAMAC_EVENT_INFO_STATUS_MIC_FAIL] = "MIC fail",
84 * which the error originated rather than its cause or meaning. -EINVAL has been
89 [LORAMAC_STATUS_BUSY] = -EBUSY,
90 [LORAMAC_STATUS_SERVICE_UNKNOWN] = -ENOPROTOOPT,
91 [LORAMAC_STATUS_PARAMETER_INVALID] = -EINVAL,
92 [LORAMAC_STATUS_FREQUENCY_INVALID] = -EINVAL,
93 [LORAMAC_STATUS_DATARATE_INVALID] = -EINVAL,
94 [LORAMAC_STATUS_FREQ_AND_DR_INVALID] = -EINVAL,
95 [LORAMAC_STATUS_NO_NETWORK_JOINED] = -ENOTCONN,
96 [LORAMAC_STATUS_LENGTH_ERROR] = -EMSGSIZE,
97 [LORAMAC_STATUS_REGION_NOT_SUPPORTED] = -EPFNOSUPPORT,
98 [LORAMAC_STATUS_SKIPPED_APP_DATA] = -EMSGSIZE,
99 [LORAMAC_STATUS_DUTYCYCLE_RESTRICTED] = -ECONNREFUSED,
100 [LORAMAC_STATUS_NO_CHANNEL_FOUND] = -ENOTCONN,
101 [LORAMAC_STATUS_NO_FREE_CHANNEL_FOUND] = -ENOTCONN,
102 [LORAMAC_STATUS_BUSY_BEACON_RESERVED_TIME] = -EBUSY,
103 [LORAMAC_STATUS_BUSY_PING_SLOT_WINDOW_TIME] = -EBUSY,
104 [LORAMAC_STATUS_BUSY_UPLINK_COLLISION] = -EBUSY,
105 [LORAMAC_STATUS_CRYPTO_ERROR] = -EINVAL,
106 [LORAMAC_STATUS_FCNT_HANDLER_ERROR] = -EINVAL,
107 [LORAMAC_STATUS_MAC_COMMAD_ERROR] = -EINVAL,
108 [LORAMAC_STATUS_CLASS_B_ERROR] = -EINVAL,
109 [LORAMAC_STATUS_CONFIRM_QUEUE_ERROR] = -EINVAL,
110 [LORAMAC_STATUS_MC_GROUP_UNDEFINED] = -EINVAL,
118 return status == LORAMAC_STATUS_OK ? 0 : -EINVAL; in lorawan_status2errno()
123 [LORAMAC_EVENT_INFO_STATUS_ERROR] = -EINVAL,
124 [LORAMAC_EVENT_INFO_STATUS_TX_TIMEOUT] = -ETIMEDOUT,
125 [LORAMAC_EVENT_INFO_STATUS_RX1_TIMEOUT] = -ETIMEDOUT,
126 [LORAMAC_EVENT_INFO_STATUS_RX2_TIMEOUT] = -ETIMEDOUT,
127 [LORAMAC_EVENT_INFO_STATUS_RX1_ERROR] = -EINVAL,
128 [LORAMAC_EVENT_INFO_STATUS_RX2_ERROR] = -EINVAL,
129 [LORAMAC_EVENT_INFO_STATUS_JOIN_FAIL] = -EINVAL,
130 [LORAMAC_EVENT_INFO_STATUS_DOWNLINK_REPEATED] = -ECONNRESET,
131 [LORAMAC_EVENT_INFO_STATUS_TX_DR_PAYLOAD_SIZE_ERROR] = -EMSGSIZE,
132 [LORAMAC_EVENT_INFO_STATUS_ADDRESS_FAIL] = -EACCES,
133 [LORAMAC_EVENT_INFO_STATUS_MIC_FAIL] = -EACCES,
134 [LORAMAC_EVENT_INFO_STATUS_MULTICAST_FAIL] = -EINVAL,
135 [LORAMAC_EVENT_INFO_STATUS_BEACON_LOCKED] = -EINVAL,
136 [LORAMAC_EVENT_INFO_STATUS_BEACON_LOST] = -EINVAL,
137 [LORAMAC_EVENT_INFO_STATUS_BEACON_NOT_FOUND] = -EINVAL,
146 return status == LORAMAC_EVENT_INFO_STATUS_OK ? 0 : -EINVAL; in lorawan_eventinfo2errno()