From owner-freebsd-bugs@FreeBSD.ORG Sat Dec 1 08:10:05 2007 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8BCAA16A420 for ; Sat, 1 Dec 2007 08:10:05 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 7561D13C458 for ; Sat, 1 Dec 2007 08:10:05 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.2/8.14.2) with ESMTP id lB18A5ix026536 for ; Sat, 1 Dec 2007 08:10:05 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id lB18A5vh026535; Sat, 1 Dec 2007 08:10:05 GMT (envelope-from gnats) Resent-Date: Sat, 1 Dec 2007 08:10:05 GMT Resent-Message-Id: <200712010810.lB18A5vh026535@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Weongyo Jeong Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0E81816A419 for ; Sat, 1 Dec 2007 08:06:09 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21]) by mx1.freebsd.org (Postfix) with ESMTP id 0734413C455 for ; Sat, 1 Dec 2007 08:06:09 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.2/8.14.2) with ESMTP id lB185t58061085 for ; Sat, 1 Dec 2007 08:05:55 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.2/8.14.1/Submit) id lB185tQN061084; Sat, 1 Dec 2007 08:05:55 GMT (envelope-from nobody) Message-Id: <200712010805.lB185tQN061084@www.freebsd.org> Date: Sat, 1 Dec 2007 08:05:55 GMT From: Weongyo Jeong To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: kern/118369: [PATCH] ndis - a incorrect definition of struct ndis_wlan_bssid_ex X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 01 Dec 2007 08:10:05 -0000 >Number: 118369 >Category: kern >Synopsis: [PATCH] ndis - a incorrect definition of struct ndis_wlan_bssid_ex >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sat Dec 01 08:10:05 UTC 2007 >Closed-Date: >Last-Modified: >Originator: Weongyo Jeong >Release: FreeBSD-CURRENT >Organization: CDNetworks >Environment: >Description: Following http://msdn2.microsoft.com/en-us/library/ms799391.aspx, the last element of `struct _NDIS_WLAN_BSSID_EX' should `UCHAR IEs[1]' but in FreeBSD, it is defined as `uint32_t nwbx_ies[1]'. >How-To-Repeat: >Fix: Index: ndis_var.h =================================================================== RCS file: /data/ndis/ndis/ndis_var.h,v retrieving revision 1.1.1.1 diff -u -r1.1.1.1 ndis_var.h --- ndis_var.h 1 Dec 2007 06:23:11 -0000 1.1.1.1 +++ ndis_var.h 1 Dec 2007 06:45:05 -0000 @@ -466,7 +466,7 @@ uint32_t nwbx_netinfra; ndis_80211_rates_ex nwbx_supportedrates; uint32_t nwbx_ielen; - uint32_t nwbx_ies[1]; + uint8_t nwbx_ies[1]; }; typedef struct ndis_wlan_bssid_ex ndis_wlan_bssid_ex; Patch attached with submission follows: Index: ndis_var.h =================================================================== RCS file: /data/ndis/ndis/ndis_var.h,v retrieving revision 1.1.1.1 diff -u -r1.1.1.1 ndis_var.h --- ndis_var.h 1 Dec 2007 06:23:11 -0000 1.1.1.1 +++ ndis_var.h 1 Dec 2007 06:45:05 -0000 @@ -466,7 +466,7 @@ uint32_t nwbx_netinfra; ndis_80211_rates_ex nwbx_supportedrates; uint32_t nwbx_ielen; - uint32_t nwbx_ies[1]; + uint8_t nwbx_ies[1]; }; typedef struct ndis_wlan_bssid_ex ndis_wlan_bssid_ex; >Release-Note: >Audit-Trail: >Unformatted: