From c29cce51cb8a27c26293aee003848b18479ce284 Mon Sep 17 00:00:00 2001 From: Damien Bergamini Date: Fri, 4 Aug 2006 14:30:04 +0000 Subject: extend the set of supported 802.11a channels (100-140). --- sys/dev/pci/if_wpi.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/sys/dev/pci/if_wpi.c b/sys/dev/pci/if_wpi.c index 2cf1d20935c..c1ea7af0328 100644 --- a/sys/dev/pci/if_wpi.c +++ b/sys/dev/pci/if_wpi.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_wpi.c,v 1.24 2006/08/03 09:45:20 damien Exp $ */ +/* $OpenBSD: if_wpi.c,v 1.25 2006/08/04 14:30:03 damien Exp $ */ /*- * Copyright (c) 2006 @@ -292,6 +292,11 @@ wpi_attach(struct device *parent, struct device *self, void *aux) ieee80211_ieee2mhz(i, IEEE80211_CHAN_5GHZ); ic->ic_channels[i].ic_flags = IEEE80211_CHAN_A; } + for (i = 100; i <= 140; i += 4) { + ic->ic_channels[i].ic_freq = + ieee80211_ieee2mhz(i, IEEE80211_CHAN_5GHZ); + ic->ic_channels[i].ic_flags = IEEE80211_CHAN_A; + } for (i = 149; i <= 165; i += 4) { ic->ic_channels[i].ic_freq = ieee80211_ieee2mhz(i, IEEE80211_CHAN_5GHZ); -- cgit v1.2.3