Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src-draft/trunk]: src/sys/dev/pci Remove more unused/undefined variables fro...



details:   https://anonhg.NetBSD.org/src-all/rev/610777d579e1
branches:  trunk
changeset: 362223:610777d579e1
user:      Nathanial Sloss <nat%netbsd.org@localhost>
date:      Thu Sep 03 21:28:00 2020 +1000

description:
Remove more unused/undefined variables from iwm_config as they were carried
over from the original iwn implementation and are not used on iwm.

diffstat:

 sys/dev/pci/if_iwm.c |  16 +---------------
 1 files changed, 1 insertions(+), 15 deletions(-)

diffs (47 lines):

diff -r 246d908b6d56 -r 610777d579e1 sys/dev/pci/if_iwm.c
--- a/sys/dev/pci/if_iwm.c      Thu Sep 03 21:16:14 2020 +1000
+++ b/sys/dev/pci/if_iwm.c      Thu Sep 03 21:28:00 2020 +1000
@@ -8263,10 +8263,6 @@
        if (ic->ic_name != NULL && strcmp("iwm", ic->ic_name) == 0)
                return 0;
 
-       aprint_normal_dev(self, "MIMO %dT%dR, %.4s, address %s\n",
-           sc->ntxchains, sc->nrxchains, sc->eeprom_domain,
-           ether_sprintf(ic->ic_macaddr));
-
        ic->ic_name = "iwm";
        ic->ic_softc = sc;
        ic->ic_phytype = IEEE80211_T_OFDM;      /* not only, but not used */
@@ -8316,7 +8312,7 @@
 #endif
            IEEE80211_C_SHSLOT |        /* short slot time supported */
            IEEE80211_C_SHPREAMBLE |    /* short preamble supported */
-           IEEE80211_C_WEP |           /* WEP */
+//         IEEE80211_C_WEP |           /* WEP */
            IEEE80211_C_WPA |           /* 802.11i */
            IEEE80211_C_WME;            /* 802.11e */
 
@@ -8336,13 +8332,6 @@
 
 #endif /* !IEEE80211_NO_HT */
 
-       ic->ic_txstream = sc->ntxchains;
-       ic->ic_rxstream = sc->nrxchains;
-       if (ic->ic_rxstream > 2)
-               ic->ic_rxstream = 2;
-       if (ic->ic_txstream > 2)
-               ic->ic_txstream = 2;
-
        ic->ic_flags = IFF_BROADCAST | IFF_SIMPLEX | IFF_MULTICAST;
 
        /* Set supported legacy rates. */
@@ -8400,9 +8389,6 @@
            iwm_media_change, ieee80211_media_status, &sc->sc_media_mtx);
 #endif
 
-       sc->amrr.amrr_min_success_threshold =  1;
-       sc->amrr.amrr_max_success_threshold = 15;
-
        /* Use common softint-based if_input */
        /* XXX NetBSD add call to ieee80211_announce for dmesg. */
 



Home | Main Index | Thread Index | Old Index