From owner-freebsd-stable@FreeBSD.ORG Wed Apr 19 22:03:27 2006 Return-Path: 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 8103216A456 for ; Wed, 19 Apr 2006 22:03:27 +0000 (UTC) (envelope-from isaac.waldron@gmail.com) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.231]) by mx1.FreeBSD.org (Postfix) with ESMTP id 47CD243D6B for ; Wed, 19 Apr 2006 22:03:09 +0000 (GMT) (envelope-from isaac.waldron@gmail.com) Received: by wproxy.gmail.com with SMTP id i12so266592wra for ; Wed, 19 Apr 2006 15:03:09 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=ZcnwUdhLP0/0rH1KXJnqbvT2ckW+VPUSntYmb1ImcSjwSQpboeUsqsS9KtggwcoB99wo0uO6hh6iRxn7f3PYK2hd+U5ZNLmxBMybeMtDfXwSxeGCxmuVj/CAxZF2e4PAWvx6kUe3LchAIpftsmPaxqNc2mFTT+9jj9Ht3I6dqS0= Received: by 10.54.156.4 with SMTP id d4mr95203wre; Wed, 19 Apr 2006 15:03:03 -0700 (PDT) Received: by 10.54.158.19 with HTTP; Wed, 19 Apr 2006 15:03:03 -0700 (PDT) Message-ID: <9c16502b0604191503u7891e5d6u17eaa3f5dc754c1e@mail.gmail.com> Date: Wed, 19 Apr 2006 18:03:03 -0400 From: "Isaac Waldron" To: freebsd-stable@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Subject: 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 19 Apr 2006 22:03:27 -0000 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=3D/var/run/wpa_supplicant ctrl_interface_group=3Dwheel network=3D{ =09ssid=3D"INTERNERD" =09scan_ssid=3D1 =09priority=3D1 =09key_mgmt=3DNONE =09wep_key0=3D75745E266D4247372840217E73 =09wep_tx_keyidx=3D0 } 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=3D'/var/run/wpa_supplicant' ctrl_interface_group=3D0 (from group name 'wheel') Line: 4 - start of a new network block ssid - hexdump_ascii(len=3D9): 49 4e 54 45 52 4e 45 52 44 INTERNERD scan_ssid=3D1 (0x1) priority=3D1 (0x1) key_mgmt: 0x4 wep_key0 - hexdump(len=3D13): 75 74 5e 26 6d 42 47 37 28 40 21 7e 73 wep_tx_keyidx=3D0 (0x0) Priority group 1 id=3D0 ssid=3D'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=3D0 EAPOL: External notification - portValid=3D0 Own MAC address: 00:09:5b:29:81:67 wpa_driver_bsd_set_wpa: enabled=3D1 wpa_driver_bsd_set_wpa_internal: wpa=3D3 privacy=3D1 wpa_driver_bsd_del_key: keyidx=3D0 wpa_driver_bsd_del_key: keyidx=3D1 wpa_driver_bsd_del_key: keyidx=3D2 wpa_driver_bsd_del_key: keyidx=3D3 wpa_driver_bsd_set_countermeasures: enabled=3D0 wpa_driver_bsd_set_drop_unencrypted: enabled=3D1 Setting scan request: 0 sec 100000 usec Added interface wi0 State: DISCONNECTED -> SCANNING Starting AP scan (specific SSID) Scan SSID - hexdump_ascii(len=3D9): 49 4e 54 45 52 4e 45 52 44 INTERNERD State: SCANNING -> ASSOCIATED Associated to a new BSS: BSSID=3D00: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=3DForceAuthorized Associated with 00:14:bf:00:2e:d4 WPA: Association event - clear replay counter EAPOL: External notification - portEnabled=3D0 EAPOL: External notification - portValid=3D0 EAPOL: External notification - portEnabled=3D1 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? Thanks, Isaac Waldron -- Isaac Waldron isaac.waldron@gmail.com mobile: 1-508-353-3453 aim: n1yzi