From owner-freebsd-hackers@FreeBSD.ORG Mon Nov 3 13:11:02 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 98ABD1065674 for ; Mon, 3 Nov 2008 13:11:02 +0000 (UTC) (envelope-from onemda@gmail.com) Received: from an-out-0708.google.com (an-out-0708.google.com [209.85.132.247]) by mx1.freebsd.org (Postfix) with ESMTP id 4A8DB8FC1B for ; Mon, 3 Nov 2008 13:11:02 +0000 (UTC) (envelope-from onemda@gmail.com) Received: by an-out-0708.google.com with SMTP id b6so14418ana.13 for ; Mon, 03 Nov 2008 05:11:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=aKGoC6LMojy8k+fR5nek5aKVzl/D22XZtfVA9XZdj2Y=; b=fJZ5+AP142sIbRMa46GQ8JLGGNhDiNks60p8jCI+XOB/pHC1vdEjMIFvVpaLGN0+d/ oeXrjkZoGEs2CoYu7/surNoF19y4ge5AJk9T3N8hpeGQ71bwMLtkE+iaKOPR8tfULh2E XaAWHhBsLdYbwEje66BwSlAWyjz8g+pERbe+Q= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=xIFzT4HEIAf5Aapkogh1goscTu5TSknKOGLdMEatzlxVzl6gWzhoGu5SfluZFprg3L kZNpbLPHp1Nv4YXLrwkOyE0YVVDsSvFmh/4pr86UkHKn68qPpd/PPe3vguDCfKS8m0/n bda+jMi+Fvho2NbEIOkW144LbznIZb9Zk7kGQ= Received: by 10.231.15.205 with SMTP id l13mr488iba.14.1225716398521; Mon, 03 Nov 2008 04:46:38 -0800 (PST) Received: by 10.231.11.72 with HTTP; Mon, 3 Nov 2008 04:46:38 -0800 (PST) Message-ID: <3a142e750811030446g47d8658cgd6d3cd0daba19c58@mail.gmail.com> Date: Mon, 3 Nov 2008 13:46:38 +0100 From: "Paul B. Mahol" To: yuri@rawbw.com In-Reply-To: <490EC51E.4070403@rawbw.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <490EC51E.4070403@rawbw.com> Cc: freebsd-hackers@freebsd.org Subject: Re: How to troubleshoot wireless problem? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 03 Nov 2008 13:11:02 -0000 On 11/3/08, Yuri wrote: > My FreeBSD is able to connect to WiFi WEP network 95% of time. > But 5% of time either ifconfig shown "not associated" status or dhclient > fails to get IP address or name resolution isn't functioning > after DHCP exchange is complete. Signal strength is -80:-95. > After a while I am able to connect again. > This happens with both ath0 and ral0 devices. > > In the meantime Linux box sitting next to FreeBSD box has > no problem connecting to the same WiFi network at all times. > > This makes me think that something in FreeBSD isn't working right. > > How can I troubleshoot this problem? > How stable is support for wireless networking in FreeBSD? > > I use this command line: > ifconfig wepmode on ssid my-ssid weptxkey 1 wepkey 0xMYKEY dhcp > on 7.1-PRERELEASE In wlan(4) it is explained in detail how to enable debuging. Also every driver have its own ways to toggle debug options. Note that wlan and driver modules must be compiled with debug enabled(at least it works in that way on CURRENT). Look in NOTES for explanation.