.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
---|
1 | 2 | /****************************************************************************** |
---|
2 | 3 | * |
---|
3 | 4 | * Copyright(c) 2003 - 2014 Intel Corporation. All rights reserved. |
---|
4 | 5 | * Copyright(c) 2015 Intel Deutschland GmbH |
---|
| 6 | + * Copyright(c) 2018 Intel Corporation |
---|
5 | 7 | * |
---|
6 | 8 | * Portions of this file are derived from the ipw3945 project, as well |
---|
7 | 9 | * as portionhelp of the ieee80211 subsystem header files. |
---|
8 | | - * |
---|
9 | | - * This program is free software; you can redistribute it and/or modify it |
---|
10 | | - * under the terms of version 2 of the GNU General Public License as |
---|
11 | | - * published by the Free Software Foundation. |
---|
12 | | - * |
---|
13 | | - * This program is distributed in the hope that it will be useful, but WITHOUT |
---|
14 | | - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
---|
15 | | - * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for |
---|
16 | | - * more details. |
---|
17 | | - * |
---|
18 | | - * You should have received a copy of the GNU General Public License along with |
---|
19 | | - * this program; if not, write to the Free Software Foundation, Inc., |
---|
20 | | - * 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA |
---|
21 | | - * |
---|
22 | | - * The full GNU General Public License is included in this distribution in the |
---|
23 | | - * file called LICENSE. |
---|
24 | 10 | * |
---|
25 | 11 | * Contact Information: |
---|
26 | 12 | * Intel Linux Wireless <linuxwifi@intel.com> |
---|
.. | .. |
---|
146 | 132 | priv->ibss_manager = le32_to_cpu(beacon->ibss_mgr_status); |
---|
147 | 133 | } |
---|
148 | 134 | |
---|
149 | | -/** |
---|
| 135 | +/* |
---|
150 | 136 | * iwl_good_plcp_health - checks for plcp error. |
---|
151 | 137 | * |
---|
152 | 138 | * When the plcp error is exceeding the thresholds, reset the radio |
---|
.. | .. |
---|
596 | 582 | if ((decrypt_res & RX_RES_STATUS_DECRYPT_TYPE_MSK) == |
---|
597 | 583 | RX_RES_STATUS_BAD_KEY_TTAK) |
---|
598 | 584 | break; |
---|
599 | | - |
---|
| 585 | + /* fall through */ |
---|
600 | 586 | case RX_RES_STATUS_SEC_TYPE_WEP: |
---|
601 | 587 | if ((decrypt_res & RX_RES_STATUS_DECRYPT_TYPE_MSK) == |
---|
602 | 588 | RX_RES_STATUS_BAD_ICV_MIC) { |
---|
.. | .. |
---|
605 | 591 | IWL_DEBUG_RX(priv, "Packet destroyed\n"); |
---|
606 | 592 | return -1; |
---|
607 | 593 | } |
---|
| 594 | + /* fall through */ |
---|
608 | 595 | case RX_RES_STATUS_SEC_TYPE_CCMP: |
---|
609 | 596 | if ((decrypt_res & RX_RES_STATUS_DECRYPT_TYPE_MSK) == |
---|
610 | 597 | RX_RES_STATUS_DECRYPT_OK) { |
---|
.. | .. |
---|
733 | 720 | decrypt_out |= RX_RES_STATUS_BAD_KEY_TTAK; |
---|
734 | 721 | break; |
---|
735 | 722 | } |
---|
736 | | - /* fall through if TTAK OK */ |
---|
| 723 | + /* fall through */ |
---|
737 | 724 | default: |
---|
738 | 725 | if (!(decrypt_in & RX_MPDU_RES_STATUS_ICV_OK)) |
---|
739 | 726 | decrypt_out |= RX_RES_STATUS_BAD_ICV_MIC; |
---|
.. | .. |
---|
942 | 929 | kfree_rcu(old_data, rcu_head); |
---|
943 | 930 | } |
---|
944 | 931 | |
---|
945 | | -/** |
---|
| 932 | +/* |
---|
946 | 933 | * iwl_setup_rx_handlers - Initialize Rx handler callbacks |
---|
947 | 934 | * |
---|
948 | 935 | * Setup the RX handlers for each of the reply types sent from the uCode |
---|