hc
2024-01-05 071106ecf68c401173c58808b1cf5f68cc50d390
kernel/drivers/net/wireless/intel/iwlwifi/dvm/lib.c
....@@ -1,25 +1,7 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /******************************************************************************
23 *
3
- * GPL LICENSE SUMMARY
4
- *
54 * Copyright(c) 2008 - 2014 Intel Corporation. All rights reserved.
6
- *
7
- * This program is free software; you can redistribute it and/or modify
8
- * it under the terms of version 2 of the GNU General Public License as
9
- * published by the Free Software Foundation.
10
- *
11
- * This program is distributed in the hope that it will be useful, but
12
- * WITHOUT ANY WARRANTY; without even the implied warranty of
13
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14
- * General Public License for more details.
15
- *
16
- * You should have received a copy of the GNU General Public License
17
- * along with this program; if not, write to the Free Software
18
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110,
19
- * USA
20
- *
21
- * The full GNU General Public License is included in this distribution
22
- * in the file called COPYING.
235 *
246 * Contact Information:
257 * Intel Linux Wireless <linuxwifi@intel.com>
....@@ -128,7 +110,7 @@
128110 vif->bss_conf.bssid);
129111 }
130112
131
-/**
113
+/*
132114 * iwlagn_txfifo_flush: send REPLY_TXFIFO_FLUSH command to uCode
133115 *
134116 * pre-requirements:
....@@ -787,7 +769,7 @@
787769 return res;
788770 }
789771
790
-/**
772
+/*
791773 * iwlagn_set_rxon_chain - Set up Rx chain usage in "staging" RXON image
792774 *
793775 * Selects how many and which Rx receivers/antennas/chains to use.
....@@ -1027,8 +1009,7 @@
10271009 if (!wowlan->n_patterns)
10281010 return 0;
10291011
1030
- cmd.len[0] = sizeof(*pattern_cmd) +
1031
- wowlan->n_patterns * sizeof(struct iwlagn_wowlan_pattern);
1012
+ cmd.len[0] = struct_size(pattern_cmd, patterns, wowlan->n_patterns);
10321013
10331014 pattern_cmd = kmalloc(cmd.len[0], GFP_KERNEL);
10341015 if (!pattern_cmd)