forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-01-04 1543e317f1da31b75942316931e8f491a8920811
kernel/drivers/net/wireless/intel/ipw2x00/libipw_rx.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * Original code based Host AP (software wireless LAN access point) driver
34 * for Intersil Prism2/2.5/3 - hostap.o module, common routines
....@@ -6,11 +7,6 @@
67 * <j@w1.fi>
78 * Copyright (c) 2002-2003, Jouni Malinen <j@w1.fi>
89 * Copyright (c) 2004-2005, Intel Corporation
9
- *
10
- * This program is free software; you can redistribute it and/or modify
11
- * it under the terms of the GNU General Public License version 2 as
12
- * published by the Free Software Foundation. See README and COPYING for
13
- * more details.
1410 */
1511
1612 #include <linux/compiler.h>
....@@ -1003,13 +999,12 @@
1003999 /*
10041000 * Write QoS parameters from the ac parameters.
10051001 */
1006
-static int libipw_qos_convert_ac_to_parameters(struct
1002
+static void libipw_qos_convert_ac_to_parameters(struct
10071003 libipw_qos_parameter_info
10081004 *param_elm, struct
10091005 libipw_qos_parameters
10101006 *qos_param)
10111007 {
1012
- int rc = 0;
10131008 int i;
10141009 struct libipw_qos_ac_parameter *ac_params;
10151010 u32 txop;
....@@ -1034,7 +1029,6 @@
10341029 txop = le16_to_cpu(ac_params->tx_op_limit) * 32;
10351030 qos_param->tx_op_limit[i] = cpu_to_le16(txop);
10361031 }
1037
- return rc;
10381032 }
10391033
10401034 /*
....@@ -1162,7 +1156,7 @@
11621156 for (i = 0; i < network->rates_len; i++) {
11631157 network->rates[i] = info_element->data[i];
11641158 #ifdef CONFIG_LIBIPW_DEBUG
1165
- p += snprintf(p, sizeof(rates_str) -
1159
+ p += scnprintf(p, sizeof(rates_str) -
11661160 (p - rates_str), "%02X ",
11671161 network->rates[i]);
11681162 #endif
....@@ -1189,7 +1183,7 @@
11891183 for (i = 0; i < network->rates_ex_len; i++) {
11901184 network->rates_ex[i] = info_element->data[i];
11911185 #ifdef CONFIG_LIBIPW_DEBUG
1192
- p += snprintf(p, sizeof(rates_str) -
1186
+ p += scnprintf(p, sizeof(rates_str) -
11931187 (p - rates_str), "%02X ",
11941188 network->rates_ex[i]);
11951189 #endif