alex.bluesman.smirnov@gmail.com | 1cd829c | 2012-05-15 20:50:21 +0000 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2007-2012 Siemens AG |
| 3 | * |
| 4 | * This program is free software; you can redistribute it and/or modify |
| 5 | * it under the terms of the GNU General Public License version 2 |
| 6 | * as published by the Free Software Foundation. |
| 7 | * |
| 8 | * This program is distributed in the hope that it will be useful, |
| 9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 11 | * GNU General Public License for more details. |
| 12 | * |
alex.bluesman.smirnov@gmail.com | 1cd829c | 2012-05-15 20:50:21 +0000 | [diff] [blame] | 13 | * Written by: |
| 14 | * Pavel Smolenskiy <pavel.smolenskiy@gmail.com> |
| 15 | * Maxim Gorbachyov <maxim.gorbachev@siemens.com> |
| 16 | * Dmitry Eremin-Solenikov <dbaryshkov@gmail.com> |
| 17 | * Alexander Smirnov <alex.bluesman.smirnov@gmail.com> |
| 18 | */ |
| 19 | |
| 20 | #include <linux/kernel.h> |
| 21 | #include <linux/module.h> |
alex.bluesman.smirnov@gmail.com | 1cd829c | 2012-05-15 20:50:21 +0000 | [diff] [blame] | 22 | #include <linux/netdevice.h> |
| 23 | #include <linux/crc-ccitt.h> |
Alexander Aring | b788949 | 2014-10-29 21:34:36 +0100 | [diff] [blame] | 24 | #include <asm/unaligned.h> |
alex.bluesman.smirnov@gmail.com | 1cd829c | 2012-05-15 20:50:21 +0000 | [diff] [blame] | 25 | |
| 26 | #include <net/mac802154.h> |
| 27 | #include <net/ieee802154_netdev.h> |
Alexander Aring | 944742a | 2014-11-17 08:20:49 +0100 | [diff] [blame] | 28 | #include <net/nl802154.h> |
alex.bluesman.smirnov@gmail.com | 1cd829c | 2012-05-15 20:50:21 +0000 | [diff] [blame] | 29 | |
Alexander Aring | 0f1556b | 2014-10-25 09:41:00 +0200 | [diff] [blame] | 30 | #include "ieee802154_i.h" |
alex.bluesman.smirnov@gmail.com | 1cd829c | 2012-05-15 20:50:21 +0000 | [diff] [blame] | 31 | |
Alexander Aring | 08c511a | 2014-10-29 21:34:35 +0100 | [diff] [blame] | 32 | static int ieee802154_deliver_skb(struct sk_buff *skb) |
Alexander Aring | 2a9820c | 2014-10-27 17:13:32 +0100 | [diff] [blame] | 33 | { |
Alexander Aring | 75a46f0 | 2014-10-27 17:13:36 +0100 | [diff] [blame] | 34 | skb->ip_summed = CHECKSUM_UNNECESSARY; |
Alexander Aring | 702dcf9 | 2014-10-27 17:13:35 +0100 | [diff] [blame] | 35 | skb->protocol = htons(ETH_P_IEEE802154); |
| 36 | |
Alexander Aring | 2a9820c | 2014-10-27 17:13:32 +0100 | [diff] [blame] | 37 | return netif_receive_skb(skb); |
| 38 | } |
| 39 | |
| 40 | static int |
Alexander Aring | be9d215 | 2014-10-27 17:13:43 +0100 | [diff] [blame] | 41 | ieee802154_subif_frame(struct ieee802154_sub_if_data *sdata, |
| 42 | struct sk_buff *skb, const struct ieee802154_hdr *hdr) |
Alexander Aring | 2a9820c | 2014-10-27 17:13:32 +0100 | [diff] [blame] | 43 | { |
Alexander Aring | 863e88f | 2014-11-09 08:36:45 +0100 | [diff] [blame] | 44 | struct wpan_dev *wpan_dev = &sdata->wpan_dev; |
Alexander Aring | 2a9820c | 2014-10-27 17:13:32 +0100 | [diff] [blame] | 45 | __le16 span, sshort; |
| 46 | int rc; |
| 47 | |
| 48 | pr_debug("getting packet via slave interface %s\n", sdata->dev->name); |
| 49 | |
Alexander Aring | 863e88f | 2014-11-09 08:36:45 +0100 | [diff] [blame] | 50 | span = wpan_dev->pan_id; |
| 51 | sshort = wpan_dev->short_addr; |
Alexander Aring | 2a9820c | 2014-10-27 17:13:32 +0100 | [diff] [blame] | 52 | |
| 53 | switch (mac_cb(skb)->dest.mode) { |
| 54 | case IEEE802154_ADDR_NONE: |
| 55 | if (mac_cb(skb)->dest.mode != IEEE802154_ADDR_NONE) |
| 56 | /* FIXME: check if we are PAN coordinator */ |
| 57 | skb->pkt_type = PACKET_OTHERHOST; |
| 58 | else |
| 59 | /* ACK comes with both addresses empty */ |
| 60 | skb->pkt_type = PACKET_HOST; |
| 61 | break; |
| 62 | case IEEE802154_ADDR_LONG: |
| 63 | if (mac_cb(skb)->dest.pan_id != span && |
| 64 | mac_cb(skb)->dest.pan_id != cpu_to_le16(IEEE802154_PANID_BROADCAST)) |
| 65 | skb->pkt_type = PACKET_OTHERHOST; |
Alexander Aring | 863e88f | 2014-11-09 08:36:45 +0100 | [diff] [blame] | 66 | else if (mac_cb(skb)->dest.extended_addr == wpan_dev->extended_addr) |
Alexander Aring | 2a9820c | 2014-10-27 17:13:32 +0100 | [diff] [blame] | 67 | skb->pkt_type = PACKET_HOST; |
| 68 | else |
| 69 | skb->pkt_type = PACKET_OTHERHOST; |
| 70 | break; |
| 71 | case IEEE802154_ADDR_SHORT: |
| 72 | if (mac_cb(skb)->dest.pan_id != span && |
| 73 | mac_cb(skb)->dest.pan_id != cpu_to_le16(IEEE802154_PANID_BROADCAST)) |
| 74 | skb->pkt_type = PACKET_OTHERHOST; |
| 75 | else if (mac_cb(skb)->dest.short_addr == sshort) |
| 76 | skb->pkt_type = PACKET_HOST; |
| 77 | else if (mac_cb(skb)->dest.short_addr == |
| 78 | cpu_to_le16(IEEE802154_ADDR_BROADCAST)) |
| 79 | skb->pkt_type = PACKET_BROADCAST; |
| 80 | else |
| 81 | skb->pkt_type = PACKET_OTHERHOST; |
| 82 | break; |
| 83 | default: |
Alexander Aring | 2a9820c | 2014-10-27 17:13:32 +0100 | [diff] [blame] | 84 | pr_debug("invalid dest mode\n"); |
Varka Bhadram | bcb47aa | 2014-12-05 17:19:09 +0530 | [diff] [blame] | 85 | goto fail; |
Alexander Aring | 2a9820c | 2014-10-27 17:13:32 +0100 | [diff] [blame] | 86 | } |
| 87 | |
Alexander Aring | 2a9820c | 2014-10-27 17:13:32 +0100 | [diff] [blame] | 88 | skb->dev = sdata->dev; |
| 89 | |
Alexander Aring | d58a2fa | 2015-09-28 09:00:26 +0200 | [diff] [blame] | 90 | /* TODO this should be moved after netif_receive_skb call, otherwise |
| 91 | * wireshark will show a mac header with security fields and the |
| 92 | * payload is already decrypted. |
| 93 | */ |
Alexander Aring | 2a9820c | 2014-10-27 17:13:32 +0100 | [diff] [blame] | 94 | rc = mac802154_llsec_decrypt(&sdata->sec, skb); |
| 95 | if (rc) { |
| 96 | pr_debug("decryption failed: %i\n", rc); |
| 97 | goto fail; |
| 98 | } |
| 99 | |
| 100 | sdata->dev->stats.rx_packets++; |
| 101 | sdata->dev->stats.rx_bytes += skb->len; |
| 102 | |
| 103 | switch (mac_cb(skb)->type) { |
Aristeu Rozanski | ca1de81 | 2016-07-25 11:46:40 -0400 | [diff] [blame] | 104 | case IEEE802154_FC_TYPE_BEACON: |
| 105 | case IEEE802154_FC_TYPE_ACK: |
| 106 | case IEEE802154_FC_TYPE_MAC_CMD: |
| 107 | goto fail; |
| 108 | |
Alexander Aring | 2a9820c | 2014-10-27 17:13:32 +0100 | [diff] [blame] | 109 | case IEEE802154_FC_TYPE_DATA: |
Alexander Aring | 08c511a | 2014-10-29 21:34:35 +0100 | [diff] [blame] | 110 | return ieee802154_deliver_skb(skb); |
Alexander Aring | 2a9820c | 2014-10-27 17:13:32 +0100 | [diff] [blame] | 111 | default: |
Aristeu Rozanski | bd89bb6 | 2016-07-25 11:46:41 -0400 | [diff] [blame] | 112 | pr_warn_ratelimited("ieee802154: bad frame received " |
| 113 | "(type = %d)\n", mac_cb(skb)->type); |
Alexander Aring | 2a9820c | 2014-10-27 17:13:32 +0100 | [diff] [blame] | 114 | goto fail; |
| 115 | } |
| 116 | |
| 117 | fail: |
| 118 | kfree_skb(skb); |
| 119 | return NET_RX_DROP; |
| 120 | } |
| 121 | |
Alexander Aring | be9d215 | 2014-10-27 17:13:43 +0100 | [diff] [blame] | 122 | static void |
| 123 | ieee802154_print_addr(const char *name, const struct ieee802154_addr *addr) |
Alexander Aring | 2a9820c | 2014-10-27 17:13:32 +0100 | [diff] [blame] | 124 | { |
| 125 | if (addr->mode == IEEE802154_ADDR_NONE) |
| 126 | pr_debug("%s not present\n", name); |
| 127 | |
| 128 | pr_debug("%s PAN ID: %04x\n", name, le16_to_cpu(addr->pan_id)); |
| 129 | if (addr->mode == IEEE802154_ADDR_SHORT) { |
| 130 | pr_debug("%s is short: %04x\n", name, |
| 131 | le16_to_cpu(addr->short_addr)); |
| 132 | } else { |
| 133 | u64 hw = swab64((__force u64)addr->extended_addr); |
| 134 | |
| 135 | pr_debug("%s is hardware: %8phC\n", name, &hw); |
| 136 | } |
| 137 | } |
| 138 | |
Alexander Aring | be9d215 | 2014-10-27 17:13:43 +0100 | [diff] [blame] | 139 | static int |
| 140 | ieee802154_parse_frame_start(struct sk_buff *skb, struct ieee802154_hdr *hdr) |
Alexander Aring | 2a9820c | 2014-10-27 17:13:32 +0100 | [diff] [blame] | 141 | { |
| 142 | int hlen; |
| 143 | struct ieee802154_mac_cb *cb = mac_cb_init(skb); |
| 144 | |
Alexander Aring | 9cf215d | 2014-10-27 17:13:38 +0100 | [diff] [blame] | 145 | skb_reset_mac_header(skb); |
| 146 | |
Alexander Aring | 2a9820c | 2014-10-27 17:13:32 +0100 | [diff] [blame] | 147 | hlen = ieee802154_hdr_pull(skb, hdr); |
| 148 | if (hlen < 0) |
| 149 | return -EINVAL; |
| 150 | |
| 151 | skb->mac_len = hlen; |
| 152 | |
| 153 | pr_debug("fc: %04x dsn: %02x\n", le16_to_cpup((__le16 *)&hdr->fc), |
| 154 | hdr->seq); |
| 155 | |
| 156 | cb->type = hdr->fc.type; |
| 157 | cb->ackreq = hdr->fc.ack_request; |
| 158 | cb->secen = hdr->fc.security_enabled; |
| 159 | |
Alexander Aring | be9d215 | 2014-10-27 17:13:43 +0100 | [diff] [blame] | 160 | ieee802154_print_addr("destination", &hdr->dest); |
| 161 | ieee802154_print_addr("source", &hdr->source); |
Alexander Aring | 2a9820c | 2014-10-27 17:13:32 +0100 | [diff] [blame] | 162 | |
| 163 | cb->source = hdr->source; |
| 164 | cb->dest = hdr->dest; |
| 165 | |
| 166 | if (hdr->fc.security_enabled) { |
| 167 | u64 key; |
| 168 | |
| 169 | pr_debug("seclevel %i\n", hdr->sec.level); |
| 170 | |
| 171 | switch (hdr->sec.key_id_mode) { |
| 172 | case IEEE802154_SCF_KEY_IMPLICIT: |
| 173 | pr_debug("implicit key\n"); |
| 174 | break; |
| 175 | |
| 176 | case IEEE802154_SCF_KEY_INDEX: |
| 177 | pr_debug("key %02x\n", hdr->sec.key_id); |
| 178 | break; |
| 179 | |
| 180 | case IEEE802154_SCF_KEY_SHORT_INDEX: |
| 181 | pr_debug("key %04x:%04x %02x\n", |
| 182 | le32_to_cpu(hdr->sec.short_src) >> 16, |
| 183 | le32_to_cpu(hdr->sec.short_src) & 0xffff, |
| 184 | hdr->sec.key_id); |
| 185 | break; |
| 186 | |
| 187 | case IEEE802154_SCF_KEY_HW_INDEX: |
| 188 | key = swab64((__force u64)hdr->sec.extended_src); |
| 189 | pr_debug("key source %8phC %02x\n", &key, |
| 190 | hdr->sec.key_id); |
| 191 | break; |
| 192 | } |
| 193 | } |
| 194 | |
| 195 | return 0; |
| 196 | } |
| 197 | |
| 198 | static void |
Alexander Aring | be9d215 | 2014-10-27 17:13:43 +0100 | [diff] [blame] | 199 | __ieee802154_rx_handle_packet(struct ieee802154_local *local, |
| 200 | struct sk_buff *skb) |
Alexander Aring | 2a9820c | 2014-10-27 17:13:32 +0100 | [diff] [blame] | 201 | { |
| 202 | int ret; |
| 203 | struct ieee802154_sub_if_data *sdata; |
| 204 | struct ieee802154_hdr hdr; |
| 205 | |
Alexander Aring | be9d215 | 2014-10-27 17:13:43 +0100 | [diff] [blame] | 206 | ret = ieee802154_parse_frame_start(skb, &hdr); |
Alexander Aring | 2a9820c | 2014-10-27 17:13:32 +0100 | [diff] [blame] | 207 | if (ret) { |
| 208 | pr_debug("got invalid frame\n"); |
| 209 | kfree_skb(skb); |
| 210 | return; |
| 211 | } |
| 212 | |
Alexander Aring | 2a9820c | 2014-10-27 17:13:32 +0100 | [diff] [blame] | 213 | list_for_each_entry_rcu(sdata, &local->interfaces, list) { |
Varka Bhadram | 1bc1754 | 2015-06-12 12:44:24 +0530 | [diff] [blame] | 214 | if (sdata->wpan_dev.iftype != NL802154_IFTYPE_NODE) |
| 215 | continue; |
| 216 | |
| 217 | if (!ieee802154_sdata_running(sdata)) |
Alexander Aring | 2a9820c | 2014-10-27 17:13:32 +0100 | [diff] [blame] | 218 | continue; |
| 219 | |
Alexander Aring | be9d215 | 2014-10-27 17:13:43 +0100 | [diff] [blame] | 220 | ieee802154_subif_frame(sdata, skb, &hdr); |
Alexander Aring | 2a9820c | 2014-10-27 17:13:32 +0100 | [diff] [blame] | 221 | skb = NULL; |
| 222 | break; |
| 223 | } |
Alexander Aring | 2a9820c | 2014-10-27 17:13:32 +0100 | [diff] [blame] | 224 | |
Markus Elfring | 56f9ebe | 2015-11-14 20:22:41 +0100 | [diff] [blame] | 225 | kfree_skb(skb); |
Alexander Aring | 2a9820c | 2014-10-27 17:13:32 +0100 | [diff] [blame] | 226 | } |
| 227 | |
Alexander Aring | 4ca18be | 2014-10-27 17:13:33 +0100 | [diff] [blame] | 228 | static void |
Alexander Aring | be9d215 | 2014-10-27 17:13:43 +0100 | [diff] [blame] | 229 | ieee802154_monitors_rx(struct ieee802154_local *local, struct sk_buff *skb) |
Alexander Aring | 2a9820c | 2014-10-27 17:13:32 +0100 | [diff] [blame] | 230 | { |
| 231 | struct sk_buff *skb2; |
| 232 | struct ieee802154_sub_if_data *sdata; |
Alexander Aring | 2a9820c | 2014-10-27 17:13:32 +0100 | [diff] [blame] | 233 | |
Alexander Aring | 9cf215d | 2014-10-27 17:13:38 +0100 | [diff] [blame] | 234 | skb_reset_mac_header(skb); |
Alexander Aring | 75a46f0 | 2014-10-27 17:13:36 +0100 | [diff] [blame] | 235 | skb->ip_summed = CHECKSUM_UNNECESSARY; |
Alexander Aring | c9ca640 | 2014-10-27 17:13:37 +0100 | [diff] [blame] | 236 | skb->pkt_type = PACKET_OTHERHOST; |
Alexander Aring | 702dcf9 | 2014-10-27 17:13:35 +0100 | [diff] [blame] | 237 | skb->protocol = htons(ETH_P_IEEE802154); |
| 238 | |
Alexander Aring | 2a9820c | 2014-10-27 17:13:32 +0100 | [diff] [blame] | 239 | list_for_each_entry_rcu(sdata, &local->interfaces, list) { |
Alexander Aring | ed65963 | 2015-06-06 17:30:46 +0200 | [diff] [blame] | 240 | if (sdata->wpan_dev.iftype != NL802154_IFTYPE_MONITOR) |
Alexander Aring | 20b4812 | 2014-10-29 21:34:41 +0100 | [diff] [blame] | 241 | continue; |
| 242 | |
| 243 | if (!ieee802154_sdata_running(sdata)) |
Alexander Aring | 2a9820c | 2014-10-27 17:13:32 +0100 | [diff] [blame] | 244 | continue; |
| 245 | |
| 246 | skb2 = skb_clone(skb, GFP_ATOMIC); |
Alexander Aring | 05f7de6 | 2014-10-29 21:34:42 +0100 | [diff] [blame] | 247 | if (skb2) { |
| 248 | skb2->dev = sdata->dev; |
| 249 | ieee802154_deliver_skb(skb2); |
Alexander Aring | 2a9820c | 2014-10-27 17:13:32 +0100 | [diff] [blame] | 250 | |
Alexander Aring | 05f7de6 | 2014-10-29 21:34:42 +0100 | [diff] [blame] | 251 | sdata->dev->stats.rx_packets++; |
| 252 | sdata->dev->stats.rx_bytes += skb->len; |
| 253 | } |
Alexander Aring | 2a9820c | 2014-10-27 17:13:32 +0100 | [diff] [blame] | 254 | } |
Alexander Aring | 2a9820c | 2014-10-27 17:13:32 +0100 | [diff] [blame] | 255 | } |
| 256 | |
Varka Bhadram | d10270c | 2015-07-07 10:50:43 +0530 | [diff] [blame] | 257 | void ieee802154_rx(struct ieee802154_local *local, struct sk_buff *skb) |
alex.bluesman.smirnov@gmail.com | 1cd829c | 2012-05-15 20:50:21 +0000 | [diff] [blame] | 258 | { |
Alexander Aring | ec718f3 | 2014-10-29 21:34:37 +0100 | [diff] [blame] | 259 | u16 crc; |
alex.bluesman.smirnov@gmail.com | 1cd829c | 2012-05-15 20:50:21 +0000 | [diff] [blame] | 260 | |
Alexander Aring | 469100d | 2014-10-27 17:13:34 +0100 | [diff] [blame] | 261 | WARN_ON_ONCE(softirq_count() == 0); |
| 262 | |
Alexander Aring | 3cf24cf | 2015-06-24 11:36:36 +0200 | [diff] [blame] | 263 | if (local->suspended) |
| 264 | goto drop; |
| 265 | |
Alexander Aring | b788949 | 2014-10-29 21:34:36 +0100 | [diff] [blame] | 266 | /* TODO: When a transceiver omits the checksum here, we |
| 267 | * add an own calculated one. This is currently an ugly |
| 268 | * solution because the monitor needs a crc here. |
| 269 | */ |
| 270 | if (local->hw.flags & IEEE802154_HW_RX_OMIT_CKSUM) { |
Alexander Aring | ec718f3 | 2014-10-29 21:34:37 +0100 | [diff] [blame] | 271 | crc = crc_ccitt(0, skb->data, skb->len); |
Alexander Aring | b788949 | 2014-10-29 21:34:36 +0100 | [diff] [blame] | 272 | put_unaligned_le16(crc, skb_put(skb, 2)); |
alex.bluesman.smirnov@gmail.com | 1cd829c | 2012-05-15 20:50:21 +0000 | [diff] [blame] | 273 | } |
| 274 | |
Alexander Aring | e176b68 | 2014-10-27 17:13:39 +0100 | [diff] [blame] | 275 | rcu_read_lock(); |
| 276 | |
Alexander Aring | be9d215 | 2014-10-27 17:13:43 +0100 | [diff] [blame] | 277 | ieee802154_monitors_rx(local, skb); |
Alexander Aring | b788949 | 2014-10-29 21:34:36 +0100 | [diff] [blame] | 278 | |
Alexander Aring | ec718f3 | 2014-10-29 21:34:37 +0100 | [diff] [blame] | 279 | /* Check if transceiver doesn't validate the checksum. |
| 280 | * If not we validate the checksum here. |
| 281 | */ |
| 282 | if (local->hw.flags & IEEE802154_HW_RX_DROP_BAD_CKSUM) { |
| 283 | crc = crc_ccitt(0, skb->data, skb->len); |
| 284 | if (crc) { |
| 285 | rcu_read_unlock(); |
Alexander Aring | 3cf24cf | 2015-06-24 11:36:36 +0200 | [diff] [blame] | 286 | goto drop; |
Alexander Aring | ec718f3 | 2014-10-29 21:34:37 +0100 | [diff] [blame] | 287 | } |
| 288 | } |
Alexander Aring | b788949 | 2014-10-29 21:34:36 +0100 | [diff] [blame] | 289 | /* remove crc */ |
| 290 | skb_trim(skb, skb->len - 2); |
| 291 | |
Alexander Aring | be9d215 | 2014-10-27 17:13:43 +0100 | [diff] [blame] | 292 | __ieee802154_rx_handle_packet(local, skb); |
Phoebe Buckheister | 2d3b5b0 | 2014-06-11 12:03:07 +0200 | [diff] [blame] | 293 | |
Alexander Aring | e176b68 | 2014-10-27 17:13:39 +0100 | [diff] [blame] | 294 | rcu_read_unlock(); |
Alexander Aring | 3cf24cf | 2015-06-24 11:36:36 +0200 | [diff] [blame] | 295 | |
| 296 | return; |
| 297 | drop: |
| 298 | kfree_skb(skb); |
alex.bluesman.smirnov@gmail.com | 1cd829c | 2012-05-15 20:50:21 +0000 | [diff] [blame] | 299 | } |
alex.bluesman.smirnov@gmail.com | 1cd829c | 2012-05-15 20:50:21 +0000 | [diff] [blame] | 300 | |
| 301 | void |
Alexander Aring | 5a50439 | 2014-10-25 17:16:34 +0200 | [diff] [blame] | 302 | ieee802154_rx_irqsafe(struct ieee802154_hw *hw, struct sk_buff *skb, u8 lqi) |
alex.bluesman.smirnov@gmail.com | 1cd829c | 2012-05-15 20:50:21 +0000 | [diff] [blame] | 303 | { |
Alexander Aring | 6074136 | 2014-10-25 17:16:39 +0200 | [diff] [blame] | 304 | struct ieee802154_local *local = hw_to_local(hw); |
alex.bluesman.smirnov@gmail.com | 1cd829c | 2012-05-15 20:50:21 +0000 | [diff] [blame] | 305 | |
Alexander Aring | c5c47e6 | 2014-10-27 17:13:30 +0100 | [diff] [blame] | 306 | mac_cb(skb)->lqi = lqi; |
| 307 | skb->pkt_type = IEEE802154_RX_MSG; |
| 308 | skb_queue_tail(&local->skb_queue, skb); |
| 309 | tasklet_schedule(&local->tasklet); |
alex.bluesman.smirnov@gmail.com | 1cd829c | 2012-05-15 20:50:21 +0000 | [diff] [blame] | 310 | } |
| 311 | EXPORT_SYMBOL(ieee802154_rx_irqsafe); |