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 Re enable iwm_fix_channel.
details: https://anonhg.NetBSD.org/src-all/rev/27406779bf6a
branches: trunk
changeset: 377166:27406779bf6a
user: Nathanial Sloss <nat%netbsd.org@localhost>
date: Thu Jun 29 03:18:03 2023 +1000
description:
Re enable iwm_fix_channel.
With this I'm able to see other wifi channels other than ch. 1.
diffstat:
sys/dev/pci/if_iwm.c | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
diffs (31 lines):
diff -r cd297b9e354c -r 27406779bf6a sys/dev/pci/if_iwm.c
--- a/sys/dev/pci/if_iwm.c Thu Jun 29 01:04:58 2023 +1000
+++ b/sys/dev/pci/if_iwm.c Thu Jun 29 03:18:03 2023 +1000
@@ -589,7 +589,7 @@ iwm_firmload(struct iwm_softc *sc)
/*
* just maintaining status quo.
*/
-static void __unused
+static void
iwm_fix_channel(struct iwm_softc *sc, struct mbuf *m)
{
struct ieee80211com *ic = &sc->sc_ic;
@@ -4030,6 +4030,7 @@ static void
iwm_rx_rx_mpdu(struct iwm_softc *sc, struct iwm_rx_packet *pkt,
struct iwm_rx_data *data)
{
+ struct ieee80211vap *vap = TAILQ_FIRST(&sc->sc_ic.ic_vaps);
struct ieee80211com *ic = &sc->sc_ic;
struct mbuf *m;
struct iwm_rx_phy_info *phy_info;
@@ -4072,10 +4073,8 @@ iwm_rx_rx_mpdu(struct iwm_softc *sc, str
}
rssi = -rssi;
-#if 0
if (vap->iv_state == IEEE80211_S_SCAN)
iwm_fix_channel(sc, m);
-#endif
if (iwm_rx_addbuf(sc, IWM_RBUF_SIZE, sc->rxq.cur) != 0) {
return;
Home |
Main Index |
Thread Index |
Old Index