.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
---|
1 | 2 | /* |
---|
2 | 3 | |
---|
3 | 4 | Broadcom B43 wireless driver |
---|
.. | .. |
---|
10 | 11 | Copyright (C) 2005 Danny van Dyk <kugelfang@gentoo.org> |
---|
11 | 12 | Copyright (C) 2005 Andreas Jaggi <andreas.jaggi@waterwave.ch> |
---|
12 | 13 | |
---|
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. |
---|
27 | 14 | |
---|
28 | 15 | */ |
---|
29 | 16 | |
---|
.. | .. |
---|
435 | 422 | if ((rates[0].flags & IEEE80211_TX_RC_USE_RTS_CTS) || |
---|
436 | 423 | (rates[0].flags & IEEE80211_TX_RC_USE_CTS_PROTECT)) { |
---|
437 | 424 | unsigned int len; |
---|
438 | | - struct ieee80211_hdr *uninitialized_var(hdr); |
---|
| 425 | + struct ieee80211_hdr *hdr; |
---|
439 | 426 | int rts_rate, rts_rate_fb; |
---|
440 | 427 | int rts_rate_ofdm, rts_rate_fb_ofdm; |
---|
441 | | - struct b43_plcp_hdr6 *uninitialized_var(plcp); |
---|
| 428 | + struct b43_plcp_hdr6 *plcp; |
---|
442 | 429 | struct ieee80211_rate *rts_cts_rate; |
---|
443 | 430 | |
---|
444 | 431 | rts_cts_rate = ieee80211_get_rts_cts_rate(dev->wl->hw, info); |
---|
.. | .. |
---|
449 | 436 | rts_rate_fb_ofdm = b43_is_ofdm_rate(rts_rate_fb); |
---|
450 | 437 | |
---|
451 | 438 | if (rates[0].flags & IEEE80211_TX_RC_USE_CTS_PROTECT) { |
---|
452 | | - struct ieee80211_cts *uninitialized_var(cts); |
---|
| 439 | + struct ieee80211_cts *cts; |
---|
453 | 440 | |
---|
454 | 441 | switch (dev->fw.hdr_format) { |
---|
455 | 442 | case B43_FW_HDR_598: |
---|
.. | .. |
---|
471 | 458 | mac_ctl |= B43_TXH_MAC_SENDCTS; |
---|
472 | 459 | len = sizeof(struct ieee80211_cts); |
---|
473 | 460 | } else { |
---|
474 | | - struct ieee80211_rts *uninitialized_var(rts); |
---|
| 461 | + struct ieee80211_rts *rts; |
---|
475 | 462 | |
---|
476 | 463 | switch (dev->fw.hdr_format) { |
---|
477 | 464 | case B43_FW_HDR_598: |
---|
.. | .. |
---|
642 | 629 | return (s8) tmp; |
---|
643 | 630 | } |
---|
644 | 631 | |
---|
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 | | - |
---|
658 | 632 | void b43_rx(struct b43_wldev *dev, struct sk_buff *skb, const void *_rxhdr) |
---|
659 | 633 | { |
---|
660 | 634 | struct ieee80211_rx_status status; |
---|
.. | .. |
---|
663 | 637 | const struct b43_rxhdr_fw4 *rxhdr = _rxhdr; |
---|
664 | 638 | __le16 fctl; |
---|
665 | 639 | u16 phystat0, phystat3; |
---|
666 | | - u16 uninitialized_var(chanstat), uninitialized_var(mactime); |
---|
667 | | - u32 uninitialized_var(macstat); |
---|
| 640 | + u16 chanstat, mactime; |
---|
| 641 | + u32 macstat; |
---|
668 | 642 | u16 chanid; |
---|
669 | 643 | int padding, rate_idx; |
---|
670 | 644 | |
---|