diff options
author | 2006-07-02 00:56:14 +0000 | |
---|---|---|
committer | 2006-07-02 00:56:14 +0000 | |
commit | ab55d8964d99ea41f0cd1f85adb4db38f915e762 (patch) | |
tree | abec992368d46d5dd4089c17cf2ec8156f8c0405 /sys/dev/usb/if_ral.c | |
parent | fix the hw rev id for the 8168 and add the id for the 8111 (diff) | |
download | wireguard-openbsd-ab55d8964d99ea41f0cd1f85adb4db38f915e762.tar.xz wireguard-openbsd-ab55d8964d99ea41f0cd1f85adb4db38f915e762.zip |
Fix channel frequency/flags in radiotap structures.
Now I can see probes cycling 1->14 instead of just
sitting at channel 1.
Diffstat (limited to 'sys/dev/usb/if_ral.c')
-rw-r--r-- | sys/dev/usb/if_ral.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/sys/dev/usb/if_ral.c b/sys/dev/usb/if_ral.c index dfb4c485f1f..8a5bf9add89 100644 --- a/sys/dev/usb/if_ral.c +++ b/sys/dev/usb/if_ral.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_ral.c,v 1.70 2006/06/23 06:27:11 miod Exp $ */ +/* $OpenBSD: if_ral.c,v 1.71 2006/07/02 00:56:14 jsg Exp $ */ /*- * Copyright (c) 2005, 2006 @@ -821,8 +821,8 @@ ural_rxeof(usbd_xfer_handle xfer, usbd_private_handle priv, usbd_status status) tap->wr_flags = 0; tap->wr_rate = ural_rxrate(desc); - tap->wr_chan_freq = htole16(ic->ic_ibss_chan->ic_freq); - tap->wr_chan_flags = htole16(ic->ic_ibss_chan->ic_flags); + tap->wr_chan_freq = htole16(ic->ic_bss->ni_chan->ic_freq); + tap->wr_chan_flags = htole16(ic->ic_bss->ni_chan->ic_flags); tap->wr_antenna = sc->rx_ant; tap->wr_antsignal = desc->rssi; @@ -1118,8 +1118,8 @@ ural_tx_mgt(struct ural_softc *sc, struct mbuf *m0, struct ieee80211_node *ni) tap->wt_flags = 0; tap->wt_rate = rate; - tap->wt_chan_freq = htole16(ic->ic_ibss_chan->ic_freq); - tap->wt_chan_flags = htole16(ic->ic_ibss_chan->ic_flags); + tap->wt_chan_freq = htole16(ic->ic_bss->ni_chan->ic_freq); + tap->wt_chan_flags = htole16(ic->ic_bss->ni_chan->ic_flags); tap->wt_antenna = sc->tx_ant; M_DUP_PKTHDR(&mb, m0); @@ -1221,8 +1221,8 @@ ural_tx_data(struct ural_softc *sc, struct mbuf *m0, struct ieee80211_node *ni) tap->wt_flags = 0; tap->wt_rate = rate; - tap->wt_chan_freq = htole16(ic->ic_ibss_chan->ic_freq); - tap->wt_chan_flags = htole16(ic->ic_ibss_chan->ic_flags); + tap->wt_chan_freq = htole16(ic->ic_bss->ni_chan->ic_freq); + tap->wt_chan_flags = htole16(ic->ic_bss->ni_chan->ic_flags); tap->wt_antenna = sc->tx_ant; M_DUP_PKTHDR(&mb, m0); |