diff options
author | Claudio Jeker <claudio@cvs.openbsd.org> | 2007-03-29 12:37:48 +0000 |
---|---|---|
committer | Claudio Jeker <claudio@cvs.openbsd.org> | 2007-03-29 12:37:48 +0000 |
commit | f37e254a47e3bbdb0a0f8c58d0f675075965f9ff (patch) | |
tree | e10dac8d18420d61e84e1cecb6ad3440e2d098e6 /sys/dev/ic/acxreg.h | |
parent | 21dcecf9f153e5319e9589dba6e52bae3634333a (diff) |
The message size calculated by BSS_JOIN_PARAM_SIZE() is off by one. The
first byte of the essid is counted double once in the sizeof() and once
via essidlen. Luckily the FW command ignored the additional byte.
OK mglocker@
Diffstat (limited to 'sys/dev/ic/acxreg.h')
-rw-r--r-- | sys/dev/ic/acxreg.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/ic/acxreg.h b/sys/dev/ic/acxreg.h index 3a2e779b38a..680a734f3b7 100644 --- a/sys/dev/ic/acxreg.h +++ b/sys/dev/ic/acxreg.h @@ -1,4 +1,4 @@ -/* $OpenBSD: acxreg.h,v 1.10 2007/02/28 09:26:26 claudio Exp $ */ +/* $OpenBSD: acxreg.h,v 1.11 2007/03/29 12:37:47 claudio Exp $ */ /* * Copyright (c) 2006 Jonathan Gray <jsg@openbsd.org> @@ -486,7 +486,7 @@ struct bss_join_hdr { #define BSS_JOIN_BUFLEN \ (sizeof(struct bss_join_hdr) + IEEE80211_NWID_LEN - 1) #define BSS_JOIN_PARAM_SIZE(bj) \ - (sizeof(struct bss_join_hdr) + (bj)->esslen) + (sizeof(struct bss_join_hdr) + (bj)->esslen - 1) #define PCIR_BAR(x) (PCI_MAPS + (x) * 4) |