diff options
author | 2013-11-16 12:46:29 +0000 | |
---|---|---|
committer | 2013-11-16 12:46:29 +0000 | |
commit | 1b23d44d546baefae547ff541283d4ff998d6857 (patch) | |
tree | 5669c98ee7f6f93075b7be402575ee7b30c931ee | |
parent | _kvm_syserr() is printf-like too (diff) | |
download | wireguard-openbsd-1b23d44d546baefae547ff541283d4ff998d6857.tar.xz wireguard-openbsd-1b23d44d546baefae547ff541283d4ff998d6857.zip |
Enable 802.11a support. Seems to work fine on:
wpi0 at pci2 dev 0 function 0 "Intel PRO/Wireless 3945ABG" rev 0x02: msi, MoW2
ok jsg@
-rw-r--r-- | sys/dev/pci/if_wpi.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/dev/pci/if_wpi.c b/sys/dev/pci/if_wpi.c index 4cd8114daf1..5071f5a3485 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.114 2013/11/14 12:34:30 dlg Exp $ */ +/* $OpenBSD: if_wpi.c,v 1.115 2013/11/16 12:46:29 kettenis Exp $ */ /*- * Copyright (c) 2006-2008 @@ -922,6 +922,8 @@ wpi_read_eeprom_channels(struct wpi_softc *sc, int n) ic->ic_channels[chan].ic_freq = ieee80211_ieee2mhz(chan, IEEE80211_CHAN_5GHZ); ic->ic_channels[chan].ic_flags = IEEE80211_CHAN_A; + /* We have at least one valid 5GHz channel. */ + sc->sc_flags |= WPI_FLAG_HAS_5GHZ; } /* Is active scan allowed on this channel? */ |