From f37e254a47e3bbdb0a0f8c58d0f675075965f9ff Mon Sep 17 00:00:00 2001 From: Claudio Jeker Date: Thu, 29 Mar 2007 12:37:48 +0000 Subject: 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@ --- sys/dev/ic/acxreg.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/dev/ic/acxreg.h') 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 @@ -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) -- cgit v1.2.3