From owner-freebsd-wireless@FreeBSD.ORG Tue Aug 27 22:46:00 2013 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id DA262953 for ; Tue, 27 Aug 2013 22:46:00 +0000 (UTC) (envelope-from gnn@neville-neil.com) Received: from vps.hungerhost.com (vps.hungerhost.com [216.38.53.176]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id AB0E4289C for ; Tue, 27 Aug 2013 22:46:00 +0000 (UTC) Received: from ip-64-134-103-239.public.wayport.net ([64.134.103.239]:18618 helo=punk.neville-neil.com) by vps.hungerhost.com with esmtpsa (TLSv1:DHE-RSA-AES256-SHA:256) (Exim 4.80.1) (envelope-from ) id 1VES0M-0000SV-VD for freebsd-wireless@freebsd.org; Tue, 27 Aug 2013 18:44:55 -0400 Message-ID: <521D2BAC.5070604@neville-neil.com> Date: Tue, 27 Aug 2013 18:43:56 -0400 From: George Neville-Neil User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:17.0) Gecko/20130819 Thunderbird/17.0.8 MIME-Version: 1.0 To: freebsd-wireless@freebsd.org Subject: Re: patch for intel centrino ? References: <000601cea157$3fbc8830$bf359890$@info> <404C99D3-8829-40C9-9222-08B3398CF3AA@freebsd.org> <000c01cea307$c5324e30$4f96ea90$@info> <002801cea337$3d0c7b40$b72571c0$@info> <329B55B0-F515-4612-BCF5-1D9A9A47BD77@freebsd.org> In-Reply-To: <329B55B0-F515-4612-BCF5-1D9A9A47BD77@freebsd.org> X-Enigmail-Version: 1.5.1 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - vps.hungerhost.com X-AntiAbuse: Original Domain - freebsd.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - neville-neil.com X-Get-Message-Sender-Via: vps.hungerhost.com: authenticated_id: gnn@neville-neil.com X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Aug 2013 22:46:00 -0000 On 08/27/13 12:11, George Neville-Neil wrote: > > On Aug 27, 2013, at 11:08 , "Cedric GROSS" wrote: > >>> -----Message d'origine----- De : George Neville-Neil >>> [mailto:gnn@freebsd.org] Envoyé : mardi 27 août 2013 16:23 À : >>> Cedric GROSS Cc : freebsd-wireless@freebsd.org; 'Adrian Chadd' >>> Objet : Re: patch for intel centrino ? >>> >>> >>> On Aug 27, 2013, at 5:28 , "Cedric GROSS" >>> wrote: >>> >>>>> De : George Neville-Neil [mailto:gnn@freebsd.org] Envoyé : >>>>> mardi 27 août 2013 03:21 À : Adrian Chadd Cc : Cedric >>>>> GROSS; freebsd-wireless@freebsd.org Objet : Re: patch for >>>>> intel centrino ? >>>>> >>>>> >>>>> On Aug 25, 2013, at 7:41 , Adrian Chadd >>>>> wrote: >>>>> >>>>>> Hi! >>>> >>>> Hello George, >>>> >>>>> http://people.freebsd.org/~gnn/iwn.diff >>>> >>>> You don't use correct firmware for your NIC. It's should be a >>>> 2000 >>> not 2030. >>>>> >>>>> If y'all can look at that and make comments that would be >>>>> helpful. >>>>> >>>> >>>> Try to get correct firmware and test it again. >>>> >>> (http://wireless.kernel.org/en/users/Drivers/iwlwifi?action=AttachFile& >>> >>> do=ge >>>> t&target=iwlwifi-2000-ucode-18.168.6.1.tgz) >>>> >>>> You will need to uncompress it and then uucode firmware, >>>> create >>> module >>>> (sys/modules/iwnfw) and so on. >>> >>> With the 2000 firmware I get a firmware crash: >>> >>> Aug 27 10:20:12 punk kernel: iwn0: iwn_intr: fatal firmware >>> error Aug 27 10:20:12 punk kernel: firmware error log: Aug 27 >>> 10:20:12 punk kernel: error type = "UNKNOWN" (0x00000038) >>> Aug 27 10:20:13 punk kernel: iwn0: iwn_config: could not >>> configure valid TX chains, error 35 Aug 27 10:20:13 punk >>> kernel: iwn0: iwn_init_locked: could not configure device, >>> error 35 >> >> Hum.. I nearly sure is because your NIC don't have BT. >> >> Set advanced_bt_coexist to false within iwn2000_base_params. May >> be it will not run also but iwn cannot skip BT config for the >> moment. If setting parameter to false doesn't change crash, try >> to comment /* Configure bluetooth coexistence. */ bloc code in >> iwn_config. >> >> I will do a patch for that later. >> > > I had to #if 0 out the code but now something is happening and the > fw is not crashing. I still cannot associate but am tracking that > down via debug from wpa_supplicant. It does look like it tries to > do it, but it just fails The AP is an Apple Extreme. > > > Best, George > > wpa_driver_bsd_associate: ssid 'XXX' wpa ie len 22 pairwise 3 group > 3 key mgmt 1 wpa_driver_bsd_set_drop_unencrypted: enabled=1 > wpa_driver_bsd_set_auth_alg alg 0x1 authmode 1 > wpa_driver_bsd_associate: set PRIVACY 1 Setting authentication > timeout: 10 sec 0 usec EAPOL: External notification - EAP > success=0 EAPOL: Supplicant port status: Unauthorized EAPOL: > External notification - EAP fail=0 EAPOL: Supplicant port status: > Unauthorized EAPOL: External notification - portControl=Auto EAPOL: > Supplicant port status: Unauthorized Authentication with > c8:bc:c8:ff:43:c5 timed out. BSSID c8:bc:c8:ff:43:c5 blacklist > count incremented to 2 No keys have been configured - skip key > clearing State: ASSOCIATING -> DISCONNECTED OK, I left work's network to try this out in a Starbucks which has open WiFi and then authenticates with the web. It is working from here. I'll try it next on a network that has WPA-PSK again. It might just be that my MAC was not registered on the work network. Cedric, if you can update your code and also include the proper module for iwnfw2000 that would be good. I can add the module to the tree if others want, but I'm not committing any code as Adrian is working with you on that. Best, George