From owner-freebsd-stable@FreeBSD.ORG  Thu Apr 20 02:41:03 2006
Return-Path: <owner-freebsd-stable@FreeBSD.ORG>
X-Original-To: freebsd-stable@freebsd.org
Delivered-To: freebsd-stable@freebsd.org
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id C80AD16A402
	for <freebsd-stable@freebsd.org>; Thu, 20 Apr 2006 02:41:03 +0000 (UTC)
	(envelope-from sam@errno.com)
Received: from ebb.errno.com (ebb.errno.com [69.12.149.25])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 68B9E43D46
	for <freebsd-stable@freebsd.org>; Thu, 20 Apr 2006 02:41:03 +0000 (GMT)
	(envelope-from sam@errno.com)
Received: from [10.0.0.199] ([10.0.0.199]) (authenticated bits=0)
	by ebb.errno.com (8.13.6/8.12.6) with ESMTP id k3K2f2UX089545
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO);
	Wed, 19 Apr 2006 19:41:03 -0700 (PDT) (envelope-from sam@errno.com)
Message-ID: <4446F4BF.90405@errno.com>
Date: Wed, 19 Apr 2006 19:41:03 -0700
From: Sam Leffler <sam@errno.com>
Organization: Errno Consulting
User-Agent: Thunderbird 1.5 (Macintosh/20051201)
MIME-Version: 1.0
To: Isaac Waldron <isaac.waldron@gmail.com>
References: <9c16502b0604191503u7891e5d6u17eaa3f5dc754c1e@mail.gmail.com>
	<9c16502b0604191512ldeccd00r7e58dbf1ef120c43@mail.gmail.com>
In-Reply-To: <9c16502b0604191512ldeccd00r7e58dbf1ef120c43@mail.gmail.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Cc: freebsd-stable@freebsd.org
Subject: Re: wpa_supplicant and wi
X-BeenThere: freebsd-stable@freebsd.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Production branch of FreeBSD source code <freebsd-stable.freebsd.org>
List-Unsubscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-stable>, 
	<mailto:freebsd-stable-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-stable>
List-Post: <mailto:freebsd-stable@freebsd.org>
List-Help: <mailto:freebsd-stable-request@freebsd.org?subject=help>
List-Subscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-stable>,
	<mailto:freebsd-stable-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Thu, 20 Apr 2006 02:41:04 -0000

Isaac Waldron wrote:
> I should add that I'm running RELENG_6 updated and compiled on 4/19/2006.
> 
> On 4/19/06, Isaac Waldron <isaac.waldron@gmail.com> wrote:
>> I am using a Netgear MA401 with the wi driver, and am having trouble
>> using wpa_supplicant to set static WEP keys.  I have the wlan_wep.ko
>> module loaded with wlan and wi built into the kernel.  My
>> wpa_supplicant.conf looks like this:
>>
>> ctrl_interface=/var/run/wpa_supplicant
>> ctrl_interface_group=wheel
>>
>> network={
>>         ssid="INTERNERD"
>>         scan_ssid=1
>>         priority=1
>>         key_mgmt=NONE
>>         wep_key0=75745E266D4247372840217E73
>>         wep_tx_keyidx=0
>> }
>>
>> and wpa_supplicant -i wi0 -c /etc/wpa_supplicant.conf -d -d returns
>> the following:
>>
>> Initializing interface 'wi0' conf '/etc/wpa_supplicant.conf' driver
>> 'default' ctrl_interface 'N/A'
>> Configuration file '/etc/wpa_supplicant.conf' -> '/etc/wpa_supplicant.conf'
>> Reading configuration file '/etc/wpa_supplicant.conf'
>> ctrl_interface='/var/run/wpa_supplicant'
>> ctrl_interface_group=0 (from group name 'wheel')
>> Line: 4 - start of a new network block
>> ssid - hexdump_ascii(len=9):
>>      49 4e 54 45 52 4e 45 52 44                        INTERNERD
>> scan_ssid=1 (0x1)
>> priority=1 (0x1)
>> key_mgmt: 0x4
>> wep_key0 - hexdump(len=13): 75 74 5e 26 6d 42 47 37 28 40 21 7e 73
>> wep_tx_keyidx=0 (0x0)
>> Priority group 1
>>    id=0 ssid='INTERNERD'
>> Initializing interface (2) 'wi0'
>> EAPOL: SUPP_PAE entering state DISCONNECTED
>> EAPOL: KEY_RX entering state NO_KEY_RECEIVE
>> EAPOL: SUPP_BE entering state INITIALIZE
>> EAP: EAP entering state DISABLED
>> EAPOL: External notification - portEnabled=0
>> EAPOL: External notification - portValid=0
>> Own MAC address: 00:09:5b:29:81:67
>> wpa_driver_bsd_set_wpa: enabled=1
>> wpa_driver_bsd_set_wpa_internal: wpa=3 privacy=1
>> wpa_driver_bsd_del_key: keyidx=0
>> wpa_driver_bsd_del_key: keyidx=1
>> wpa_driver_bsd_del_key: keyidx=2
>> wpa_driver_bsd_del_key: keyidx=3
>> wpa_driver_bsd_set_countermeasures: enabled=0
>> wpa_driver_bsd_set_drop_unencrypted: enabled=1
>> Setting scan request: 0 sec 100000 usec
>> Added interface wi0
>> State: DISCONNECTED -> SCANNING
>> Starting AP scan (specific SSID)
>> Scan SSID - hexdump_ascii(len=9):
>>      49 4e 54 45 52 4e 45 52 44                        INTERNERD
>> State: SCANNING -> ASSOCIATED
>> Associated to a new BSS: BSSID=00:14:bf:00:2e:d4
>> No keys have been configured - skip key clearing
>> Network configuration found for the current AP
>> WPA: clearing AP WPA IE
>> WPA: clearing AP RSN IE
>> WPA: clearing own WPA/RSN IE
>> EAPOL: External notification - portControl=ForceAuthorized
>> Associated with 00:14:bf:00:2e:d4
>> WPA: Association event - clear replay counter
>> EAPOL: External notification - portEnabled=0
>> EAPOL: External notification - portValid=0
>> EAPOL: External notification - portEnabled=1
>> EAPOL: SUPP_PAE entering state S_FORCE_AUTH
>> EAPOL: SUPP_BE entering state IDLE
>> Cancelling authentication timeout
>> State: ASSOCIATED -> COMPLETED
>>
>> No keys are set on the wi0 interface apparently, as ifconfig reports
>> deftxkey UNDEF and no  configured keys.  In other outputs from
>> wpa_supplicant that I've seen, there are lines beginning with
>> wpa_driver_bsd_key_set that appear to be key setting.
>>
>> Does anyone have this working with a MA401 that could help me out?

Should work; I'll check on it.

	Sam