| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * Original code based Host AP (software wireless LAN access point) driver |
|---|
| 3 | 4 | * for Intersil Prism2/2.5/3 - hostap.o module, common routines |
|---|
| .. | .. |
|---|
| 6 | 7 | * <j@w1.fi> |
|---|
| 7 | 8 | * Copyright (c) 2002-2003, Jouni Malinen <j@w1.fi> |
|---|
| 8 | 9 | * 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. |
|---|
| 14 | 10 | */ |
|---|
| 15 | 11 | |
|---|
| 16 | 12 | #include <linux/compiler.h> |
|---|
| .. | .. |
|---|
| 1003 | 999 | /* |
|---|
| 1004 | 1000 | * Write QoS parameters from the ac parameters. |
|---|
| 1005 | 1001 | */ |
|---|
| 1006 | | -static int libipw_qos_convert_ac_to_parameters(struct |
|---|
| 1002 | +static void libipw_qos_convert_ac_to_parameters(struct |
|---|
| 1007 | 1003 | libipw_qos_parameter_info |
|---|
| 1008 | 1004 | *param_elm, struct |
|---|
| 1009 | 1005 | libipw_qos_parameters |
|---|
| 1010 | 1006 | *qos_param) |
|---|
| 1011 | 1007 | { |
|---|
| 1012 | | - int rc = 0; |
|---|
| 1013 | 1008 | int i; |
|---|
| 1014 | 1009 | struct libipw_qos_ac_parameter *ac_params; |
|---|
| 1015 | 1010 | u32 txop; |
|---|
| .. | .. |
|---|
| 1034 | 1029 | txop = le16_to_cpu(ac_params->tx_op_limit) * 32; |
|---|
| 1035 | 1030 | qos_param->tx_op_limit[i] = cpu_to_le16(txop); |
|---|
| 1036 | 1031 | } |
|---|
| 1037 | | - return rc; |
|---|
| 1038 | 1032 | } |
|---|
| 1039 | 1033 | |
|---|
| 1040 | 1034 | /* |
|---|
| .. | .. |
|---|
| 1162 | 1156 | for (i = 0; i < network->rates_len; i++) { |
|---|
| 1163 | 1157 | network->rates[i] = info_element->data[i]; |
|---|
| 1164 | 1158 | #ifdef CONFIG_LIBIPW_DEBUG |
|---|
| 1165 | | - p += snprintf(p, sizeof(rates_str) - |
|---|
| 1159 | + p += scnprintf(p, sizeof(rates_str) - |
|---|
| 1166 | 1160 | (p - rates_str), "%02X ", |
|---|
| 1167 | 1161 | network->rates[i]); |
|---|
| 1168 | 1162 | #endif |
|---|
| .. | .. |
|---|
| 1189 | 1183 | for (i = 0; i < network->rates_ex_len; i++) { |
|---|
| 1190 | 1184 | network->rates_ex[i] = info_element->data[i]; |
|---|
| 1191 | 1185 | #ifdef CONFIG_LIBIPW_DEBUG |
|---|
| 1192 | | - p += snprintf(p, sizeof(rates_str) - |
|---|
| 1186 | + p += scnprintf(p, sizeof(rates_str) - |
|---|
| 1193 | 1187 | (p - rates_str), "%02X ", |
|---|
| 1194 | 1188 | network->rates_ex[i]); |
|---|
| 1195 | 1189 | #endif |
|---|