forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-13 9d77db3c730780c8ef5ccd4b66403ff5675cfe4e
kernel/drivers/net/wireless/broadcom/b43/phy_g.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23
34 Broadcom B43 wireless driver
....@@ -9,20 +10,6 @@
910 Copyright (c) 2005, 2006 Danny van Dyk <kugelfang@gentoo.org>
1011 Copyright (c) 2005, 2006 Andreas Jaggi <andreas.jaggi@waterwave.ch>
1112
12
- This program is free software; you can redistribute it and/or modify
13
- it under the terms of the GNU General Public License as published by
14
- the Free Software Foundation; either version 2 of the License, or
15
- (at your option) any later version.
16
-
17
- This program is distributed in the hope that it will be useful,
18
- but WITHOUT ANY WARRANTY; without even the implied warranty of
19
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20
- GNU General Public License for more details.
21
-
22
- You should have received a copy of the GNU General Public License
23
- along with this program; see the file COPYING. If not, write to
24
- the Free Software Foundation, Inc., 51 Franklin Steet, Fifth Floor,
25
- Boston, MA 02110-1301, USA.
2613
2714 */
2815
....@@ -370,14 +357,14 @@
370357 b43_dummy_transmission(dev, false, true);
371358 }
372359
373
-/* http://bcm-specs.sipsolutions.net/NRSSILookupTable */
360
+/* https://bcm-specs.sipsolutions.net/NRSSILookupTable */
374361 static void b43_nrssi_hw_write(struct b43_wldev *dev, u16 offset, s16 val)
375362 {
376363 b43_phy_write(dev, B43_PHY_NRSSILT_CTRL, offset);
377364 b43_phy_write(dev, B43_PHY_NRSSILT_DATA, (u16) val);
378365 }
379366
380
-/* http://bcm-specs.sipsolutions.net/NRSSILookupTable */
367
+/* https://bcm-specs.sipsolutions.net/NRSSILookupTable */
381368 static s16 b43_nrssi_hw_read(struct b43_wldev *dev, u16 offset)
382369 {
383370 u16 val;
....@@ -388,7 +375,7 @@
388375 return (s16) val;
389376 }
390377
391
-/* http://bcm-specs.sipsolutions.net/NRSSILookupTable */
378
+/* https://bcm-specs.sipsolutions.net/NRSSILookupTable */
392379 static void b43_nrssi_hw_update(struct b43_wldev *dev, u16 val)
393380 {
394381 u16 i;
....@@ -402,7 +389,7 @@
402389 }
403390 }
404391
405
-/* http://bcm-specs.sipsolutions.net/NRSSILookupTable */
392
+/* https://bcm-specs.sipsolutions.net/NRSSILookupTable */
406393 static void b43_nrssi_mem_update(struct b43_wldev *dev)
407394 {
408395 struct b43_phy_g *gphy = dev->phy.g;
....@@ -1588,7 +1575,7 @@
15881575 b43_write16(dev, 0x03E4, (b43_read16(dev, 0x03E4) & 0xFFC0) | 0x0004);
15891576 }
15901577
1591
-/* http://bcm-v4.sipsolutions.net/802.11/PHY/Init/B6 */
1578
+/* https://bcm-v4.sipsolutions.net/802.11/PHY/Init/B6 */
15921579 static void b43_phy_initb6(struct b43_wldev *dev)
15931580 {
15941581 struct b43_phy *phy = &dev->phy;
....@@ -2759,7 +2746,7 @@
27592746 return 0;
27602747 }
27612748
2762
-/* http://bcm-specs.sipsolutions.net/EstimatePowerOut
2749
+/* https://bcm-specs.sipsolutions.net/EstimatePowerOut
27632750 * This function converts a TSSI value to dBm in Q5.2
27642751 */
27652752 static s8 b43_gphy_estimate_power_out(struct b43_wldev *dev, s8 tssi)