Skip to content

Commit

Permalink
iwn: Correct antenna numbers if NO MIMO flag is set.
Browse files Browse the repository at this point in the history
  • Loading branch information
zxystd committed Mar 19, 2024
1 parent e48e7cb commit 7b8ae28
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions itlwm/hal_iwn/ItlIwn.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -550,12 +550,12 @@ iwn_attach(struct iwn_softc *sc, struct pci_attach_args *pa)
ieee80211_std_rateset_11a;
}
if (sc->sc_flags & IWN_FLAG_HAS_11N) {
int ntxstreams = sc->ntxchains;
int nrxstreams = sc->nrxchains;

/* Set supported HT rates. */
if (ic->ic_userflags & IEEE80211_F_NOMIMO)
ntxstreams = nrxstreams = 1;
sc->ntxchains = sc->nrxchains = 1;

int ntxstreams = sc->ntxchains;
int nrxstreams = sc->nrxchains;

ic->ic_sup_mcs[0] = 0xff; /* MCS 0-7 */
if (nrxstreams > 1)
Expand Down

0 comments on commit 7b8ae28

Please sign in to comment.