summaryrefslogtreecommitdiff
path: root/sys/dev/ic/if_wi.c
diff options
context:
space:
mode:
authorReyk Floeter <reyk@cvs.openbsd.org>2006-07-01 20:22:23 +0000
committerReyk Floeter <reyk@cvs.openbsd.org>2006-07-01 20:22:23 +0000
commit030973ef7bde4f5193a68e81bd08f76a2022eeb1 (patch)
tree70f6e0c48d43a7b3952f2f10d5757ee26b588093 /sys/dev/ic/if_wi.c
parent4edf6156be16f3facacc7b9fa7076a650edfb27e (diff)
always report the channel as type 802.11b (IEEE802_CHAN_B) in the
net80211 node wrappers.
Diffstat (limited to 'sys/dev/ic/if_wi.c')
-rw-r--r--sys/dev/ic/if_wi.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/dev/ic/if_wi.c b/sys/dev/ic/if_wi.c
index d3edc64a5ab..5bd2de0ae0a 100644
--- a/sys/dev/ic/if_wi.c
+++ b/sys/dev/ic/if_wi.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_wi.c,v 1.132 2006/07/01 19:30:51 reyk Exp $ */
+/* $OpenBSD: if_wi.c,v 1.133 2006/07/01 20:22:22 reyk Exp $ */
/*
* Copyright (c) 1997, 1998, 1999
@@ -127,7 +127,7 @@ u_int32_t widebug = WIDEBUG;
#if !defined(lint) && !defined(__OpenBSD__)
static const char rcsid[] =
- "$OpenBSD: if_wi.c,v 1.132 2006/07/01 19:30:51 reyk Exp $";
+ "$OpenBSD: if_wi.c,v 1.133 2006/07/01 20:22:22 reyk Exp $";
#endif /* lint */
#ifdef foo
@@ -1955,6 +1955,7 @@ wi_ioctl(struct ifnet *ifp, u_long command, caddr_t data)
IEEE80211_ADDR_COPY(nr.nr_macaddr, res->wi_bssid);
IEEE80211_ADDR_COPY(nr.nr_bssid, res->wi_bssid);
nr.nr_channel = letoh16(res->wi_chan);
+ nr.nr_chan_flags = IEEE80211_CHAN_B;
nr.nr_rssi = letoh16(res->wi_signal);
nr.nr_max_rssi = 0; /* XXX */
nr.nr_nwid_len = letoh16(res->wi_ssid_len);