Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/usb use ic_curchan not ic_ibss_chan
details: https://anonhg.NetBSD.org/src/rev/1e951f6d944e
branches: trunk
changeset: 784174:1e951f6d944e
user: jmcneill <jmcneill%NetBSD.org@localhost>
date: Sun Jan 20 23:13:43 2013 +0000
description:
use ic_curchan not ic_ibss_chan
diffstat:
sys/dev/usb/if_urtwn.c | 16 ++++++++--------
1 files changed, 8 insertions(+), 8 deletions(-)
diffs (58 lines):
diff -r 0d22d919de74 -r 1e951f6d944e sys/dev/usb/if_urtwn.c
--- a/sys/dev/usb/if_urtwn.c Sun Jan 20 22:32:59 2013 +0000
+++ b/sys/dev/usb/if_urtwn.c Sun Jan 20 23:13:43 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_urtwn.c,v 1.12 2013/01/20 20:21:57 christos Exp $ */
+/* $NetBSD: if_urtwn.c,v 1.13 2013/01/20 23:13:43 jmcneill Exp $ */
/* $OpenBSD: if_urtwn.c,v 1.20 2011/11/26 06:39:33 ckuethe Exp $ */
/*-
@@ -22,7 +22,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_urtwn.c,v 1.12 2013/01/20 20:21:57 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_urtwn.c,v 1.13 2013/01/20 23:13:43 jmcneill Exp $");
#ifdef _KERNEL_OPT
#include "opt_inet.h"
@@ -1687,7 +1687,7 @@
if (ic->ic_opmode == IEEE80211_M_MONITOR) {
/* Back to 20MHz mode */
- urtwn_set_chan(sc, ic->ic_ibss_chan,
+ urtwn_set_chan(sc, ic->ic_curchan,
IEEE80211_HTINFO_2NDCHAN_NONE);
/* Enable Rx of data frames. */
@@ -1991,8 +1991,8 @@
tap->wr_rate = 0x80 | (rate - 12);
}
tap->wr_dbm_antsignal = rssi;
- 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_curchan->ic_freq);
+ tap->wr_chan_flags = htole16(ic->ic_curchan->ic_flags);
bpf_mtap2(sc->sc_drvbpf, tap, sc->sc_rxtap_len, m);
}
@@ -2464,7 +2464,7 @@
if ((ifp->if_flags & (IFF_UP | IFF_RUNNING)) ==
(IFF_UP | IFF_RUNNING)) {
mutex_enter(&sc->sc_write_mtx);
- urtwn_set_chan(sc, ic->ic_ibss_chan,
+ urtwn_set_chan(sc, ic->ic_curchan,
IEEE80211_HTINFO_2NDCHAN_NONE);
mutex_exit(&sc->sc_write_mtx);
}
@@ -3787,8 +3787,8 @@
urtwn_write_1(sc, 0x15, 0xe9);
/* Set default channel. */
- ic->ic_bss->ni_chan = ic->ic_ibss_chan;
- urtwn_set_chan(sc, ic->ic_ibss_chan, IEEE80211_HTINFO_2NDCHAN_NONE);
+ ic->ic_bss->ni_chan = ic->ic_curchan;
+ urtwn_set_chan(sc, ic->ic_curchan, IEEE80211_HTINFO_2NDCHAN_NONE);
/* Queue Rx xfers. */
for (i = 0; i < URTWN_RX_LIST_COUNT; i++) {
Home |
Main Index |
Thread Index |
Old Index