tx.c (d98be45b3657fc233f5a098279a4e42ab6f0fa4f) tx.c (60741361c3ca229a1dbb18e05d11e97b7ea75d69)
1/*
2 * Copyright 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,

--- 74 unchanged lines hidden (view full) ---

83 struct xmit_work *work;
84 struct ieee802154_sub_if_data *sdata;
85
86 if (!(local->phy->channels_supported[page] & (1 << chan))) {
87 WARN_ON(1);
88 goto err_tx;
89 }
90
1/*
2 * Copyright 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,

--- 74 unchanged lines hidden (view full) ---

83 struct xmit_work *work;
84 struct ieee802154_sub_if_data *sdata;
85
86 if (!(local->phy->channels_supported[page] & (1 << chan))) {
87 WARN_ON(1);
88 goto err_tx;
89 }
90
91 mac802154_monitors_rx(mac802154_to_priv(&local->hw), skb);
91 mac802154_monitors_rx(local, skb);
92
93 if (!(local->hw.flags & IEEE802154_HW_OMIT_CKSUM)) {
94 u16 crc = crc_ccitt(0, skb->data, skb->len);
95 u8 *data = skb_put(skb, 2);
96
97 data[0] = crc & 0xff;
98 data[1] = crc >> 8;
99 }

--- 30 unchanged lines hidden ---
92
93 if (!(local->hw.flags & IEEE802154_HW_OMIT_CKSUM)) {
94 u16 crc = crc_ccitt(0, skb->data, skb->len);
95 u8 *data = skb_put(skb, 2);
96
97 data[0] = crc & 0xff;
98 data[1] = crc >> 8;
99 }

--- 30 unchanged lines hidden ---