Module Name:    src
Committed By:   khorben
Date:           Sat May 12 13:40:21 UTC 2012

Modified Files:
        src/sys/dev/pci: if_wpi.c

Log Message:
No longer wrongly advertise ad-hoc (IBSS) mode as being supported.

Fixes kern/46101

No objection from current-users@


To generate a diff of this commit:
cvs rdiff -u -r1.50 -r1.51 src/sys/dev/pci/if_wpi.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/dev/pci/if_wpi.c
diff -u src/sys/dev/pci/if_wpi.c:1.50 src/sys/dev/pci/if_wpi.c:1.51
--- src/sys/dev/pci/if_wpi.c:1.50	Mon Jan 30 19:41:21 2012
+++ src/sys/dev/pci/if_wpi.c	Sat May 12 13:40:21 2012
@@ -1,4 +1,4 @@
-/*  $NetBSD: if_wpi.c,v 1.50 2012/01/30 19:41:21 drochner Exp $    */
+/*  $NetBSD: if_wpi.c,v 1.51 2012/05/12 13:40:21 khorben Exp $    */
 
 /*-
  * Copyright (c) 2006, 2007
@@ -18,7 +18,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_wpi.c,v 1.50 2012/01/30 19:41:21 drochner Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_wpi.c,v 1.51 2012/05/12 13:40:21 khorben Exp $");
 
 /*
  * Driver for Intel PRO/Wireless 3945ABG 802.11 network adapters.
@@ -310,7 +310,9 @@ wpi_attach(device_t parent __unused, dev
 
 	/* set device capabilities */
 	ic->ic_caps =
+#ifdef netyet
 		IEEE80211_C_IBSS |       /* IBSS mode support */
+#endif
 		IEEE80211_C_WPA |        /* 802.11i */
 		IEEE80211_C_MONITOR |    /* monitor mode supported */
 		IEEE80211_C_TXPMGT |     /* tx power management */

Reply via email to