summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkettenis <kettenis@openbsd.org>2011-09-02 18:49:36 +0000
committerkettenis <kettenis@openbsd.org>2011-09-02 18:49:36 +0000
commit31c769e593bfa4e5831226d5909a374cfdeaed7a (patch)
tree136e71af0ee8f5abb45a3d61104a51836f73163b
parentAdd tests for relayd http put and https. (diff)
downloadwireguard-openbsd-31c769e593bfa4e5831226d5909a374cfdeaed7a.tar.xz
wireguard-openbsd-31c769e593bfa4e5831226d5909a374cfdeaed7a.zip
Differential gain calibration makes the 6005 firmware crap out, so skip it for
now until we figure out why. This probably means the device won't function optimally, but that's better than not functioning at all. Makes my "Intel Centrinto Advanced-N 6205" work quite well.
-rw-r--r--sys/dev/pci/if_iwn.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/sys/dev/pci/if_iwn.c b/sys/dev/pci/if_iwn.c
index fba7401767a..d57835e6dcb 100644
--- a/sys/dev/pci/if_iwn.c
+++ b/sys/dev/pci/if_iwn.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_iwn.c,v 1.111 2011/09/01 18:49:56 kettenis Exp $ */
+/* $OpenBSD: if_iwn.c,v 1.112 2011/09/02 18:49:36 kettenis Exp $ */
/*-
* Copyright (c) 2007-2010 Damien Bergamini <damien.bergamini@free.fr>
@@ -2161,6 +2161,14 @@ iwn_rx_statistics(struct iwn_softc *sc, struct iwn_rx_desc *desc,
return;
}
+ /*
+ * XXX Differential gain calibration makes the 6005 firmware
+ * crap out, so skip it for now. This effectively disables
+ * sensitivity tuning as well.
+ */
+ if (sc->hw_type == IWN_HW_REV_TYPE_6005)
+ return;
+
if (calib->state == IWN_CALIB_STATE_ASSOC)
iwn_collect_noise(sc, &stats->rx.general);
else if (calib->state == IWN_CALIB_STATE_RUN)