hc
2023-12-09 b22da3d8526a935aa31e086e63f60ff3246cb61c
kernel/drivers/net/wireless/intel/iwlwifi/dvm/rx.c
....@@ -1,26 +1,12 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /******************************************************************************
23 *
34 * Copyright(c) 2003 - 2014 Intel Corporation. All rights reserved.
45 * Copyright(c) 2015 Intel Deutschland GmbH
6
+ * Copyright(c) 2018 Intel Corporation
57 *
68 * Portions of this file are derived from the ipw3945 project, as well
79 * 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.
2410 *
2511 * Contact Information:
2612 * Intel Linux Wireless <linuxwifi@intel.com>
....@@ -146,7 +132,7 @@
146132 priv->ibss_manager = le32_to_cpu(beacon->ibss_mgr_status);
147133 }
148134
149
-/**
135
+/*
150136 * iwl_good_plcp_health - checks for plcp error.
151137 *
152138 * When the plcp error is exceeding the thresholds, reset the radio
....@@ -596,7 +582,7 @@
596582 if ((decrypt_res & RX_RES_STATUS_DECRYPT_TYPE_MSK) ==
597583 RX_RES_STATUS_BAD_KEY_TTAK)
598584 break;
599
-
585
+ /* fall through */
600586 case RX_RES_STATUS_SEC_TYPE_WEP:
601587 if ((decrypt_res & RX_RES_STATUS_DECRYPT_TYPE_MSK) ==
602588 RX_RES_STATUS_BAD_ICV_MIC) {
....@@ -605,6 +591,7 @@
605591 IWL_DEBUG_RX(priv, "Packet destroyed\n");
606592 return -1;
607593 }
594
+ /* fall through */
608595 case RX_RES_STATUS_SEC_TYPE_CCMP:
609596 if ((decrypt_res & RX_RES_STATUS_DECRYPT_TYPE_MSK) ==
610597 RX_RES_STATUS_DECRYPT_OK) {
....@@ -733,7 +720,7 @@
733720 decrypt_out |= RX_RES_STATUS_BAD_KEY_TTAK;
734721 break;
735722 }
736
- /* fall through if TTAK OK */
723
+ /* fall through */
737724 default:
738725 if (!(decrypt_in & RX_MPDU_RES_STATUS_ICV_OK))
739726 decrypt_out |= RX_RES_STATUS_BAD_ICV_MIC;
....@@ -942,7 +929,7 @@
942929 kfree_rcu(old_data, rcu_head);
943930 }
944931
945
-/**
932
+/*
946933 * iwl_setup_rx_handlers - Initialize Rx handler callbacks
947934 *
948935 * Setup the RX handlers for each of the reply types sent from the uCode