From owner-freebsd-wireless@FreeBSD.ORG Sat Oct 29 02:36:11 2011 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AB4B0106566C for ; Sat, 29 Oct 2011 02:36:11 +0000 (UTC) (envelope-from sendtomatt@gmail.com) Received: from mail-iy0-f182.google.com (mail-iy0-f182.google.com [209.85.210.182]) by mx1.freebsd.org (Postfix) with ESMTP id 76DB18FC14 for ; Sat, 29 Oct 2011 02:36:11 +0000 (UTC) Received: by iaky10 with SMTP id y10so7288456iak.13 for ; Fri, 28 Oct 2011 19:36:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=PYii4eURNOW9LGgi/52poepZgrJH6IUopovQm6p0DXE=; b=uKukJQqWf5fsJu0Kq05nMZKwiDGFzkRNK2Ew/yOkSsCIfFevZYiILh/94yzQbE8Bmu trRW6+m7a/nAJy53flPpobbje6XE5iNji3AnN6Z2B933CzUCPBeZMcH1r8qxjYYqz87h 0yR7090t7ZsV2Ab2Of2kB1bRv5ZUrimLyZRts= Received: by 10.68.20.134 with SMTP id n6mr7501291pbe.16.1319855770507; Fri, 28 Oct 2011 19:36:10 -0700 (PDT) Received: from [10.7.7.229] ([75.111.38.94]) by mx.google.com with ESMTPS id ml4sm28736323pbc.0.2011.10.28.19.36.08 (version=SSLv3 cipher=OTHER); Fri, 28 Oct 2011 19:36:09 -0700 (PDT) Message-ID: <4EABACDB.4030808@gmail.com> Date: Sat, 29 Oct 2011 00:35:55 -0700 From: matt User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.20) Gecko/20111018 Lightning/1.0b3pre Thunderbird/3.1.12 MIME-Version: 1.0 To: "Sergey A. Osokin" References: <20111025193738.GE95451@FreeBSD.org> In-Reply-To: <20111025193738.GE95451@FreeBSD.org> Content-Type: text/plain; charset=KOI8-R Content-Transfer-Encoding: 7bit Cc: freebsd-wireless@FreeBSD.ORG Subject: Re: iwn(4) problem X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 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: Sat, 29 Oct 2011 02:36:11 -0000 On 10/25/11 12:37, Sergey A. Osokin wrote: > Hi. > > I have ThinkPad X1 laptop with iwn(4) network card. > > %uname -spr > FreeBSD 9.0-RC1 amd64 > > % dmesg > iwn0: mem 0xf2500000-0xf2501fff irq 17 at device 0.0 on pci3 > > >From time to time it works well, i.e. on my job, but currently it doesn't work > with my small home WiFi/ADSL router D-Link G-604T. > Also, in my home network I have two different devices: Galaxy Tab and MacBook Pro 15" and > these devices are works well, but ThinkPad with FreeBSD 9.0-RC1 can't connect to WiFi router :-( > > Also, I tried to use Ubuntu Linux 11.10 LiveCD and the laptop works well with > home WiFi network. > > $ ifconfig iwn0 > iwn0: flags=8843 metric 0 mtu 2290 > ether 8c:a9:82:bd:41:a0 > nd6 options=29 > media: IEEE 802.11 Wireless Ethernet autoselect mode 11g > status: associated > $ ifconfig wlan0 > wlan0: flags=8843 metric 0 mtu 1500 > ether 8c:a9:82:bd:41:a0 > nd6 options=29 > media: IEEE 802.11 Wireless Ethernet autoselect (autoselect) > status: no carrier > ssid "" channel 5 (2432 Mhz 11g) > country US authmode WPA privacy ON deftxkey UNDEF txpower 14 bmiss 10 > scanvalid 450 bgscan bgscanintvl 300 bgscanidle 250 roam:rssi 7 > roam:rate 5 protmode CTS wme roaming MANUAL bintval 200 > > $ ifconfig wlan0 list scan > ... > ozznet 00:11:95:94:cb:b4 5 54M -73:-95 200 EPSB WPA > > In /etc/wpa_supplicant.conf I have two network entries (for home and for job) with > psk keys. > > $ more /etc/rc.conf > ... > wlans_iwn0="wlan0" > ifconfig_wlan0="WPA DHCP" > > More information available upon request. > Run something like this (it's trying to flush routing table, down the interface, and associate. Also, simpler wpa_supplicant.conf is better than complex! Make sure psks are actually right :). ifconfig wlan0 destroy route flush mv /etc/resolv.conf /etc/resolv.old killall wpa_supplicant killall dhclient ifconfig wlan0 create wlandev iwn0 ifconfig wlan0 up sleep 1 ifconfig wlan0 scan wpa_supplicant -i wlan0 -c /etc/wpa_supplicant.conf -B sleep 4 dhclient wlan0 I had the same card daily in FreeBSD since early 2010. Worked perfectly. It makes me think it's probably not the card. I actually had a script using dialog for various network configurations (home, work) that would clear network configs and reconfigure the machine for various roles. Matt