From hartzell@kong.alerce.com  Sat Sep 24 18:02:31 2005
Return-Path: <hartzell@kong.alerce.com>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 6F7E416A41F
	for <FreeBSD-gnats-submit@freebsd.org>; Sat, 24 Sep 2005 18:02:31 +0000 (GMT)
	(envelope-from hartzell@kong.alerce.com)
Received: from kong.alerce.com (w092.z064001164.sjc-ca.dsl.cnc.net [64.1.164.92])
	by mx1.FreeBSD.org (Postfix) with ESMTP id CD68943D58
	for <FreeBSD-gnats-submit@freebsd.org>; Sat, 24 Sep 2005 18:02:30 +0000 (GMT)
	(envelope-from hartzell@kong.alerce.com)
Received: from kong.alerce.com (localhost [127.0.0.1])
	by kong.alerce.com (8.13.4/8.13.4) with ESMTP id j8OI2I0K001023
	for <FreeBSD-gnats-submit@freebsd.org>; Sat, 24 Sep 2005 11:02:19 -0700 (PDT)
	(envelope-from hartzell@kong.alerce.com)
Received: (from hartzell@localhost)
	by kong.alerce.com (8.13.4/8.13.1/Submit) id j8OI2HIP001022;
	Sat, 24 Sep 2005 11:02:17 -0700 (PDT)
	(envelope-from hartzell)
Message-Id: <200509241802.j8OI2HIP001022@kong.alerce.com>
Date: Sat, 24 Sep 2005 11:02:17 -0700 (PDT)
From: George Hartzell <hartzell@alerce.com>
Reply-To: George Hartzell <hartzell@alerce.com>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: wpa_supplicant.conf man page should discuss WEP based setups.
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         86532
>Category:       docs
>Synopsis:       [patch] wpa_supplicant.conf(5): man page should discuss WEP based setups.
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    freebsd-doc
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          doc-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Sep 24 18:10:20 GMT 2005
>Closed-Date:    Sun Dec 25 22:46:06 GMT 2005
>Last-Modified:  Sun Dec 25 22:46:06 GMT 2005
>Originator:     George Hartzell
>Release:        FreeBSD 6.0-BETA5 i386
>Organization:
none
>Environment:
System: FreeBSD kong.alerce.com 6.0-BETA5 FreeBSD 6.0-BETA5 #1: Fri Sep 23 17:37:01 PDT 2005 root@kong.alerce.com:/usr/obj/usr/src/sys/KONG i386

Sony Vaio laptop, 6,0-BETA5

>Description:
	I just moved from 6.0BETA-1 to 6.0-BETA5 and finally switched from my old crufty
        setting of WEP keys and stuff in the ifconfig_ath0 line to a WPA and DHCLIENT based
        setup.

	I couldn't find any mention of how to configure wpa_supplicant for simple wep keys,
	although it's gone by on the mailing list a bunch of times.  Seems like it should
	be in the docs.

	Having it written down might head off a bunch of headaches and questions.

>How-To-Repeat:
	Set up a wep based wpa managed network as a first timer and try to find the
	instructions.

>Fix:

Someone w/ better info about wpa_supplicant should check out the text for
wep_key[0123], but here's a first cut at a patch.

*** wpa_supplicant.conf.5	2005/09/24 01:41:12	1.1
--- wpa_supplicant.conf.5	2005/09/24 02:03:05
***************
*** 396,399 ****
--- 396,403 ----
  By default these workarounds are enabled.
  String EAP conformance can be configured by setting this to 0.
+ .It Va wep_key0, wep_key1, wep_key2, wep_key3
+ The four WEP keys (quoted strings or hex digits).
+ .It Va wep_tx_keyidx
+ The index of the WEP key that should be used for transmitting.
  .El
  .Sh CERTIFICATES
***************
*** 494,497 ****
--- 498,516 ----
          ca_cert="/etc/cert/ca.pem"
          phase2="auth=MD5"
+ }
+ .Ed
+ .Pp
+ Shared WEP key connection (no WPA, no IEEE 802.1X)
+ .Bd -literal
+ ctrl_interface=/var/run/wpa_supplicant
+ ctrl_interface_group=wheel
+ network={
+ 	ssid="static-wep-test"
+ 	key_mgmt=NONE
+ 	wep_key0="abcde"
+ 	wep_key1=0102030405
+ 	wep_key2="1234567890123"
+ 	wep_tx_keyidx=0
+ 	priority=5
  }
  .Ed
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: wilko 
State-Changed-When: Sun Dec 25 22:44:30 UTC 2005 
State-Changed-Why:  
I happened to encounter the missing WEP example  
independently, and committed one to the man page. 

Thanks for the patch anyway. 


http://www.freebsd.org/cgi/query-pr.cgi?pr=86532 
>Unformatted:
