Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/usb ic->ic_bss->ni_chan -> ic->ic_curchan



details:   https://anonhg.NetBSD.org/src/rev/acffa7cd10c5
branches:  trunk
changeset: 784177:acffa7cd10c5
user:      jmcneill <jmcneill%NetBSD.org@localhost>
date:      Mon Jan 21 00:02:11 2013 +0000

description:
ic->ic_bss->ni_chan -> ic->ic_curchan

diffstat:

 sys/dev/usb/if_urtwn.c |  11 +++++------
 1 files changed, 5 insertions(+), 6 deletions(-)

diffs (46 lines):

diff -r 94b2858910fa -r acffa7cd10c5 sys/dev/usb/if_urtwn.c
--- a/sys/dev/usb/if_urtwn.c    Sun Jan 20 23:52:43 2013 +0000
+++ b/sys/dev/usb/if_urtwn.c    Mon Jan 21 00:02:11 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_urtwn.c,v 1.13 2013/01/20 23:13:43 jmcneill Exp $   */
+/*     $NetBSD: if_urtwn.c,v 1.14 2013/01/21 00:02:11 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.13 2013/01/20 23:13:43 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_urtwn.c,v 1.14 2013/01/21 00:02:11 jmcneill Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_inet.h"
@@ -1570,7 +1570,7 @@
                      R92C_BCN_CTRL_DIS_TSF_UDT0);
 
                /* Back to 20MHz mode */
-               urtwn_set_chan(sc, ic->ic_bss->ni_chan,
+               urtwn_set_chan(sc, ic->ic_curchan,
                    IEEE80211_HTINFO_2NDCHAN_NONE);
 
                if (ic->ic_opmode == IEEE80211_M_IBSS ||
@@ -2153,8 +2153,8 @@
                struct urtwn_tx_radiotap_header *tap = &sc->sc_txtap;
 
                tap->wt_flags = 0;
-               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_chan_freq = htole16(ic->ic_curchan->ic_freq);
+               tap->wt_chan_flags = htole16(ic->ic_curchan->ic_flags);
                if (wh->i_fc[1] & IEEE80211_FC1_WEP)
                        tap->wt_flags |= IEEE80211_RADIOTAP_F_WEP;
 
@@ -3787,7 +3787,6 @@
        urtwn_write_1(sc, 0x15, 0xe9);
 
        /* Set default channel. */
-       ic->ic_bss->ni_chan = ic->ic_curchan;
        urtwn_set_chan(sc, ic->ic_curchan, IEEE80211_HTINFO_2NDCHAN_NONE);
 
        /* Queue Rx xfers. */



Home | Main Index | Thread Index | Old Index