forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-02-19 1c055e55a242a33e574e48be530e06770a210dcd
kernel/drivers/net/wireless/intel/iwlwifi/dvm/scan.c
....@@ -1,25 +1,8 @@
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.
5
+ * Copyright(c) 2018 Intel Corporation
236 *
247 * Contact Information:
258 * Intel Linux Wireless <linuxwifi@intel.com>
....@@ -203,7 +186,7 @@
203186 IWL_DEBUG_SCAN(priv, "Successfully send scan abort\n");
204187 }
205188
206
-/**
189
+/*
207190 * iwl_scan_cancel - Cancel any currently executing HW scan
208191 */
209192 int iwl_scan_cancel(struct iwl_priv *priv)
....@@ -213,10 +196,9 @@
213196 return 0;
214197 }
215198
216
-/**
199
+/*
217200 * iwl_scan_cancel_timeout - Cancel any currently executing HW scan
218201 * @ms: amount of time to wait (in milliseconds) for scan to abort
219
- *
220202 */
221203 void iwl_scan_cancel_timeout(struct iwl_priv *priv, unsigned long ms)
222204 {
....@@ -423,7 +405,7 @@
423405 limit = (limits[1] * 98) / 100 - IWL_CHANNEL_TUNE_TIME * 2;
424406 limit /= 2;
425407 dwell_time = min(limit, dwell_time);
426
- /* fall through to limit further */
408
+ /* fall through */
427409 case 1:
428410 limit = (limits[0] * 98) / 100 - IWL_CHANNEL_TUNE_TIME * 2;
429411 limit /= n_active;
....@@ -577,10 +559,9 @@
577559 return added;
578560 }
579561
580
-/**
562
+/*
581563 * iwl_fill_probe_req - fill in all required fields and IE for probe request
582564 */
583
-
584565 static u16 iwl_fill_probe_req(struct ieee80211_mgmt *frame, const u8 *ta,
585566 const u8 *ies, int ie_len, const u8 *ssid,
586567 u8 ssid_len, int left)