Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/pci should be able to use 5GHz wireless network.
details: https://anonhg.NetBSD.org/src/rev/e471c7336425
branches: trunk
changeset: 338245:e471c7336425
user: nonaka <nonaka%NetBSD.org@localhost>
date: Sat May 16 07:58:19 2015 +0000
description:
should be able to use 5GHz wireless network.
diffstat:
sys/dev/pci/if_iwm.c | 12 ++++++++++--
1 files changed, 10 insertions(+), 2 deletions(-)
diffs (40 lines):
diff -r bb6e21bfe15a -r e471c7336425 sys/dev/pci/if_iwm.c
--- a/sys/dev/pci/if_iwm.c Sat May 16 07:22:37 2015 +0000
+++ b/sys/dev/pci/if_iwm.c Sat May 16 07:58:19 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_iwm.c,v 1.33 2015/05/15 08:44:15 knakahara Exp $ */
+/* $NetBSD: if_iwm.c,v 1.34 2015/05/16 07:58:19 nonaka Exp $ */
/* OpenBSD: if_iwm.c,v 1.39 2015/03/23 00:35:19 jsg Exp */
/*
@@ -105,7 +105,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_iwm.c,v 1.33 2015/05/15 08:44:15 knakahara Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_iwm.c,v 1.34 2015/05/16 07:58:19 nonaka Exp $");
#include <sys/param.h>
#include <sys/conf.h>
@@ -500,6 +500,7 @@
static void
iwm_fix_channel(struct ieee80211com *ic, struct mbuf *m)
{
+ struct iwm_softc *sc = ic->ic_ifp->if_softc;
struct ieee80211_frame *wh;
uint8_t subtype;
uint8_t *frm, *efrm;
@@ -515,6 +516,13 @@
subtype != IEEE80211_FC0_SUBTYPE_PROBE_RESP)
return;
+ if (sc->sc_scanband == IEEE80211_CHAN_5GHZ) {
+ int chan = le32toh(sc->sc_last_phy_info.channel);
+ if (chan < __arraycount(ic->ic_channels))
+ ic->ic_curchan = &ic->ic_channels[chan];
+ return;
+ }
+
frm = (uint8_t *)(wh + 1);
efrm = mtod(m, uint8_t *) + m->m_len;
Home |
Main Index |
Thread Index |
Old Index