summaryrefslogtreecommitdiff
path: root/sys/dev/pci/if_iwmreg.h
diff options
context:
space:
mode:
authorStefan Sperling <stsp@cvs.openbsd.org>2016-02-07 12:16:25 +0000
committerStefan Sperling <stsp@cvs.openbsd.org>2016-02-07 12:16:25 +0000
commit03e1f4d1d322640fea2abd94639c0c441433a444 (patch)
tree44419cac53833f6d4589e38285b8d9115e5e298c /sys/dev/pci/if_iwmreg.h
parent471ba4ba6599dba05bf86b59bc3fc3067007e15c (diff)
Make sure the maximum iwm(4) firmware command payload size fits into
the 12 bits available for it in struct iwm_tfd_tb.hi_n_len. Patch by Imre Vadasz via tech@
Diffstat (limited to 'sys/dev/pci/if_iwmreg.h')
-rw-r--r--sys/dev/pci/if_iwmreg.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/pci/if_iwmreg.h b/sys/dev/pci/if_iwmreg.h
index fb6b93aaf2a..adfda2b53f2 100644
--- a/sys/dev/pci/if_iwmreg.h
+++ b/sys/dev/pci/if_iwmreg.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_iwmreg.h,v 1.9 2015/12/14 08:34:56 stsp Exp $ */
+/* $OpenBSD: if_iwmreg.h,v 1.10 2016/02/07 12:16:24 stsp Exp $ */
/******************************************************************************
*
@@ -5231,7 +5231,7 @@ enum iwm_power_scheme {
};
#define IWM_DEF_CMD_PAYLOAD_SIZE 320
-#define IWM_MAX_CMD_PAYLOAD_SIZE (4096 - sizeof(struct iwm_cmd_header))
+#define IWM_MAX_CMD_PAYLOAD_SIZE ((4096 - 4) - sizeof(struct iwm_cmd_header))
#define IWM_CMD_FAILED_MSK 0x40
struct iwm_device_cmd {