forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-13 9d77db3c730780c8ef5ccd4b66403ff5675cfe4e
kernel/drivers/net/wireless/broadcom/b43/xmit.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23
34 Broadcom B43 wireless driver
....@@ -10,20 +11,6 @@
1011 Copyright (C) 2005 Danny van Dyk <kugelfang@gentoo.org>
1112 Copyright (C) 2005 Andreas Jaggi <andreas.jaggi@waterwave.ch>
1213
13
- This program is free software; you can redistribute it and/or modify
14
- it under the terms of the GNU General Public License as published by
15
- the Free Software Foundation; either version 2 of the License, or
16
- (at your option) any later version.
17
-
18
- This program is distributed in the hope that it will be useful,
19
- but WITHOUT ANY WARRANTY; without even the implied warranty of
20
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21
- GNU General Public License for more details.
22
-
23
- You should have received a copy of the GNU General Public License
24
- along with this program; see the file COPYING. If not, write to
25
- the Free Software Foundation, Inc., 51 Franklin Steet, Fifth Floor,
26
- Boston, MA 02110-1301, USA.
2714
2815 */
2916
....@@ -435,10 +422,10 @@
435422 if ((rates[0].flags & IEEE80211_TX_RC_USE_RTS_CTS) ||
436423 (rates[0].flags & IEEE80211_TX_RC_USE_CTS_PROTECT)) {
437424 unsigned int len;
438
- struct ieee80211_hdr *uninitialized_var(hdr);
425
+ struct ieee80211_hdr *hdr;
439426 int rts_rate, rts_rate_fb;
440427 int rts_rate_ofdm, rts_rate_fb_ofdm;
441
- struct b43_plcp_hdr6 *uninitialized_var(plcp);
428
+ struct b43_plcp_hdr6 *plcp;
442429 struct ieee80211_rate *rts_cts_rate;
443430
444431 rts_cts_rate = ieee80211_get_rts_cts_rate(dev->wl->hw, info);
....@@ -449,7 +436,7 @@
449436 rts_rate_fb_ofdm = b43_is_ofdm_rate(rts_rate_fb);
450437
451438 if (rates[0].flags & IEEE80211_TX_RC_USE_CTS_PROTECT) {
452
- struct ieee80211_cts *uninitialized_var(cts);
439
+ struct ieee80211_cts *cts;
453440
454441 switch (dev->fw.hdr_format) {
455442 case B43_FW_HDR_598:
....@@ -471,7 +458,7 @@
471458 mac_ctl |= B43_TXH_MAC_SENDCTS;
472459 len = sizeof(struct ieee80211_cts);
473460 } else {
474
- struct ieee80211_rts *uninitialized_var(rts);
461
+ struct ieee80211_rts *rts;
475462
476463 switch (dev->fw.hdr_format) {
477464 case B43_FW_HDR_598:
....@@ -642,19 +629,6 @@
642629 return (s8) tmp;
643630 }
644631
645
-//TODO
646
-#if 0
647
-static s8 b43_rssinoise_postprocess(struct b43_wldev *dev, u8 in_rssi)
648
-{
649
- struct b43_phy *phy = &dev->phy;
650
- s8 ret;
651
-
652
- ret = b43_rssi_postprocess(dev, in_rssi, 0, 1, 1);
653
-
654
- return ret;
655
-}
656
-#endif
657
-
658632 void b43_rx(struct b43_wldev *dev, struct sk_buff *skb, const void *_rxhdr)
659633 {
660634 struct ieee80211_rx_status status;
....@@ -663,8 +637,8 @@
663637 const struct b43_rxhdr_fw4 *rxhdr = _rxhdr;
664638 __le16 fctl;
665639 u16 phystat0, phystat3;
666
- u16 uninitialized_var(chanstat), uninitialized_var(mactime);
667
- u32 uninitialized_var(macstat);
640
+ u16 chanstat, mactime;
641
+ u32 macstat;
668642 u16 chanid;
669643 int padding, rate_idx;
670644