summaryrefslogtreecommitdiff
path: root/sys/dev/pci
diff options
context:
space:
mode:
authorDamien Bergamini <damien@cvs.openbsd.org>2005-05-22 16:05:48 +0000
committerDamien Bergamini <damien@cvs.openbsd.org>2005-05-22 16:05:48 +0000
commit1c3712c418a4628c8877b2bdeb6e9ceea3ae4ff3 (patch)
tree287c513108c18d1eb832d7090db86a56df3f3a4d /sys/dev/pci
parent141bf7f9d501b90858e2f16425a70d6e95fb4e68 (diff)
set fragmentation threshold in iwi_config().
Diffstat (limited to 'sys/dev/pci')
-rw-r--r--sys/dev/pci/if_iwi.c8
-rw-r--r--sys/dev/pci/if_iwireg.h3
2 files changed, 9 insertions, 2 deletions
diff --git a/sys/dev/pci/if_iwi.c b/sys/dev/pci/if_iwi.c
index b027dea352f..557e14700bd 100644
--- a/sys/dev/pci/if_iwi.c
+++ b/sys/dev/pci/if_iwi.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_iwi.c,v 1.41 2005/05/22 15:28:45 damien Exp $ */
+/* $OpenBSD: if_iwi.c,v 1.42 2005/05/22 16:05:47 damien Exp $ */
/*-
* Copyright (c) 2004, 2005
@@ -1686,6 +1686,12 @@ iwi_config(struct iwi_softc *sc)
if (error != 0)
return error;
+ data = htole32(ic->ic_fragthreshold);
+ DPRINTF(("Setting fragmentation threshold to %u\n", letoh32(data)));
+ error = iwi_cmd(sc, IWI_CMD_SET_FRAG_THRESHOLD, &data, sizeof data, 0);
+ if (error != 0)
+ return error;
+
if (ic->ic_opmode == IEEE80211_M_IBSS) {
power.mode = IWI_MODE_11B;
power.nchan = 11;
diff --git a/sys/dev/pci/if_iwireg.h b/sys/dev/pci/if_iwireg.h
index 5b2dde71012..6216778aaf7 100644
--- a/sys/dev/pci/if_iwireg.h
+++ b/sys/dev/pci/if_iwireg.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_iwireg.h,v 1.14 2005/05/22 15:28:45 damien Exp $ */
+/* $OpenBSD: if_iwireg.h,v 1.15 2005/05/22 16:05:47 damien Exp $ */
/*-
* Copyright (c) 2004, 2005
@@ -244,6 +244,7 @@ struct iwi_cmd_desc {
#define IWI_CMD_SET_ESSID 8
#define IWI_CMD_SET_MAC_ADDRESS 11
#define IWI_CMD_SET_RTS_THRESHOLD 15
+#define IWI_CMD_SET_FRAG_THRESHOLD 16
#define IWI_CMD_SET_POWER_MODE 17
#define IWI_CMD_SET_WEP_KEY 18
#define IWI_CMD_SCAN 20