.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
---|
1 | 2 | /****************************************************************************** |
---|
2 | 3 | |
---|
3 | 4 | Copyright(c) 2004-2005 Intel Corporation. All rights reserved. |
---|
.. | .. |
---|
8 | 9 | <j@w1.fi> |
---|
9 | 10 | Copyright (c) 2002-2003, Jouni Malinen <j@w1.fi> |
---|
10 | 11 | |
---|
11 | | - This program is free software; you can redistribute it and/or modify it |
---|
12 | | - under the terms of version 2 of the GNU General Public License as |
---|
13 | | - published by the Free Software Foundation. |
---|
14 | | - |
---|
15 | | - This program is distributed in the hope that it will be useful, but WITHOUT |
---|
16 | | - ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
---|
17 | | - FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for |
---|
18 | | - more details. |
---|
19 | | - |
---|
20 | | - You should have received a copy of the GNU General Public License along with |
---|
21 | | - this program; if not, write to the Free Software Foundation, Inc., 59 |
---|
22 | | - Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
---|
23 | | - |
---|
24 | | - The full GNU General Public License is included in this distribution in the |
---|
25 | | - file called LICENSE. |
---|
26 | 12 | |
---|
27 | 13 | Contact Information: |
---|
28 | 14 | Intel Linux Wireless <ilw@linux.intel.com> |
---|
.. | .. |
---|
227 | 213 | * for given network. */ |
---|
228 | 214 | iwe.cmd = IWEVCUSTOM; |
---|
229 | 215 | p = custom; |
---|
230 | | - p += snprintf(p, MAX_CUSTOM_LEN - (p - custom), |
---|
| 216 | + p += scnprintf(p, MAX_CUSTOM_LEN - (p - custom), |
---|
231 | 217 | " Last beacon: %ums ago", |
---|
232 | 218 | elapsed_jiffies_msecs(network->last_scanned)); |
---|
233 | 219 | iwe.u.data.length = p - custom; |
---|
.. | .. |
---|
237 | 223 | /* Add spectrum management information */ |
---|
238 | 224 | iwe.cmd = -1; |
---|
239 | 225 | p = custom; |
---|
240 | | - p += snprintf(p, MAX_CUSTOM_LEN - (p - custom), " Channel flags: "); |
---|
| 226 | + p += scnprintf(p, MAX_CUSTOM_LEN - (p - custom), " Channel flags: "); |
---|
241 | 227 | |
---|
242 | 228 | if (libipw_get_channel_flags(ieee, network->channel) & |
---|
243 | 229 | LIBIPW_CH_INVALID) { |
---|
244 | 230 | iwe.cmd = IWEVCUSTOM; |
---|
245 | | - p += snprintf(p, MAX_CUSTOM_LEN - (p - custom), "INVALID "); |
---|
| 231 | + p += scnprintf(p, MAX_CUSTOM_LEN - (p - custom), "INVALID "); |
---|
246 | 232 | } |
---|
247 | 233 | |
---|
248 | 234 | if (libipw_get_channel_flags(ieee, network->channel) & |
---|
249 | 235 | LIBIPW_CH_RADAR_DETECT) { |
---|
250 | 236 | iwe.cmd = IWEVCUSTOM; |
---|
251 | | - p += snprintf(p, MAX_CUSTOM_LEN - (p - custom), "DFS "); |
---|
| 237 | + p += scnprintf(p, MAX_CUSTOM_LEN - (p - custom), "DFS "); |
---|
252 | 238 | } |
---|
253 | 239 | |
---|
254 | 240 | if (iwe.cmd == IWEVCUSTOM) { |
---|