.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
---|
1 | 2 | /****************************************************************************** |
---|
2 | 3 | * |
---|
3 | | - * GPL LICENSE SUMMARY |
---|
4 | | - * |
---|
5 | 4 | * 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. |
---|
23 | 5 | * |
---|
24 | 6 | * Contact Information: |
---|
25 | 7 | * Intel Linux Wireless <linuxwifi@intel.com> |
---|
.. | .. |
---|
128 | 110 | vif->bss_conf.bssid); |
---|
129 | 111 | } |
---|
130 | 112 | |
---|
131 | | -/** |
---|
| 113 | +/* |
---|
132 | 114 | * iwlagn_txfifo_flush: send REPLY_TXFIFO_FLUSH command to uCode |
---|
133 | 115 | * |
---|
134 | 116 | * pre-requirements: |
---|
.. | .. |
---|
787 | 769 | return res; |
---|
788 | 770 | } |
---|
789 | 771 | |
---|
790 | | -/** |
---|
| 772 | +/* |
---|
791 | 773 | * iwlagn_set_rxon_chain - Set up Rx chain usage in "staging" RXON image |
---|
792 | 774 | * |
---|
793 | 775 | * Selects how many and which Rx receivers/antennas/chains to use. |
---|
.. | .. |
---|
1027 | 1009 | if (!wowlan->n_patterns) |
---|
1028 | 1010 | return 0; |
---|
1029 | 1011 | |
---|
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); |
---|
1032 | 1013 | |
---|
1033 | 1014 | pattern_cmd = kmalloc(cmd.len[0], GFP_KERNEL); |
---|
1034 | 1015 | if (!pattern_cmd) |
---|