From owner-freebsd-net@FreeBSD.ORG Fri Apr 25 06:54:25 2008 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4B583106564A for ; Fri, 25 Apr 2008 06:54:25 +0000 (UTC) (envelope-from sepherosa@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 EDE368FC1A for ; Fri, 25 Apr 2008 06:54:24 +0000 (UTC) (envelope-from sepherosa@gmail.com) Received: by an-out-0708.google.com with SMTP id c14so991240anc.13 for ; Thu, 24 Apr 2008 23:54:24 -0700 (PDT) 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:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=G2UV48nK8n0K/iSdTy2WuWgxI9xDrXrZyC3auxAd7xI=; b=Q8+BtJOux9TrQ23lpqsx40Ht5Y7w+pdijVQy9/vpldX6CMnmxlailVkbEs8yb4qT77GWY/QwWNymPRDBI0t5EYknkw/mOdxFDyLU1ja26tYJZtmZyZmGVPiqNrUXz4VBq2QF0McjRj15zBK4b6m9soETEFXO+jYuxdce+YGlACs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=Knc54fzwUYDws4pB8qX4S8kBWsmlEWldo/DKB1n9PQEmgX33A4T/X2S8/258MBFGm9vLD9UR523pafxOAzeuYnJl2kH4q0J6tcfUZgZeAYILJIttrCdWtUh2ALmIwSCFwkKL0w4j0AyzsUp31XDz8qpNZgfUN2pwZoZw53e+jg0= Received: by 10.101.70.5 with SMTP id x5mr6965526ank.93.1209106464080; Thu, 24 Apr 2008 23:54:24 -0700 (PDT) Received: by 10.100.48.5 with HTTP; Thu, 24 Apr 2008 23:54:23 -0700 (PDT) Message-ID: Date: Fri, 25 Apr 2008 14:54:23 +0800 From: "Sepherosa Ziehau" To: freebsd-net In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: Subject: Re: Connecting P1i to FreeBSD X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 25 Apr 2008 06:54:25 -0000 On Fri, Apr 25, 2008 at 7:41 AM, Ivan Voras wrote: > Hi, > > I'd like to connect SE P1i (a "smartphone" device) to FreeBSD, in any > possible way, via wireless (WLAN). The symptoms are that it just reports > "Connection failed" no matter what I do. > > Acquired data so far: > > 0) I'm trying adhoc mode without any authorization, for now, just to get it > working > 1) The same wifi adapter (USB, D-Link DWL-G122) works ok with Windows XP > with adhoc mode (i.e. the device connects/associates to the computer, can > exchange network traffic, etc; in Windows I can bridge the wifi device to > the network card, etc. - in effect, no problems) > 2) There's no way the same devices succeeds in talking when the wifi > adapter is on FreeBSD. The adapter is run via the rum driver. > 2a) The "scan network" action on the device lists the WLAN SSID on the > computer; also "ifconfig rum0 list sta" on FreeBSD shows the device's MAC. > 3) A third machine, a laptop, can connect to the FreeBSD machine, > everything works. > 3a) Apparently SE P1i is quirky with its WLAN support, but somehow it knows > how to talk to Windows. > > Here's a debug trace from the FreeBSD machine (wlandebug -i rum0 +debug > +scan +assoc +node +xrate +rate +input +output +auth) during the > unsuccessful connection attempt. The "...1d" MAC is from the P1i. > > rum0: received probe_req from 00:1c:a4:75:63:1d rssi 27 > rum0: [00:1c:a4:75:63:1d] recv probe req > rum0: ieee80211_ref_node (ieee80211_send_mgmt:1574) > 0xc250b000<00:1c:a4:75:63:1d> refcnt 3 > [00:1c:a4:75:63:1d] send probe_resp on channel 6 > rum0: received probe_req from 00:1c:a4:75:63:1d rssi 27 > rum0: [00:1c:a4:75:63:1d] recv probe req > rum0: ieee80211_ref_node (ieee80211_send_mgmt:1574) > 0xc250b000<00:1c:a4:75:63:1d> refcnt 3 > [00:1c:a4:75:63:1d] send probe_resp on channel 6 > rum0: received probe_req from 00:1c:a4:75:63:1d rssi 25 > rum0: [00:1c:a4:75:63:1d] recv probe req > rum0: ieee80211_ref_node (ieee80211_send_mgmt:1574) > 0xc250b000<00:1c:a4:75:63:1d> refcnt 3 > [00:1c:a4:75:63:1d] send probe_resp on channel 6 > rum0: received probe_req from 00:1c:a4:75:63:1d rssi 25 > rum0: [00:1c:a4:75:63:1d] recv probe req > rum0: ieee80211_ref_node (ieee80211_send_mgmt:1574) > 0xc250b000<00:1c:a4:75:63:1d> refcnt 3 > [00:1c:a4:75:63:1d] send probe_resp on channel 6 > rum0: received probe_req from 00:1c:a4:75:63:1d rssi 25 > rum0: [00:1c:a4:75:63:1d] recv probe req > rum0: ieee80211_ref_node (ieee80211_send_mgmt:1574) > 0xc250b000<00:1c:a4:75:63:1d> refcnt 3 > [00:1c:a4:75:63:1d] send probe_resp on channel 6 > rum0: received probe_req from 00:1c:a4:75:63:1d rssi 25 > rum0: [00:1c:a4:75:63:1d] recv probe req > rum0: ieee80211_ref_node (ieee80211_send_mgmt:1574) > 0xc250b000<00:1c:a4:75:63:1d> refcnt 3 > [00:1c:a4:75:63:1d] send probe_resp on channel 6 > rum0: received probe_req from 00:1c:a4:75:63:1d rssi 25 > rum0: [00:1c:a4:75:63:1d] recv probe req > rum0: ieee80211_ref_node (ieee80211_send_mgmt:1574) > 0xc250b000<00:1c:a4:75:63:1d> refcnt 3 > [00:1c:a4:75:63:1d] send probe_resp on channel 6 > rum0: received probe_req from 00:1c:a4:75:63:1d rssi 25 > rum0: [00:1c:a4:75:63:1d] recv probe req > rum0: ieee80211_ref_node (ieee80211_send_mgmt:1574) > 0xc250b000<00:1c:a4:75:63:1d> refcnt 3 > [00:1c:a4:75:63:1d] send probe_resp on channel 6 > rum0: [00:1c:a4:75:63:1d] probe station due to inactivity > rum0: [00:1c:a4:75:63:1d] send null data frame on channel 6, pwr mgt dis > rum0: [00:1c:a4:75:63:1d] probe station due to inactivity > rum0: [00:1c:a4:75:63:1d] send null data frame on channel 6, pwr mgt dis > rum0: [00:1c:a4:75:63:1d] station timed out due to inactivity (refcnt 1) > rum0: [00:1c:a4:75:63:1d] station with aid 0 leaves > rum0: node_reclaim: remove 0xc250b000<00:1c:a4:75:63:1d> from neighbor > table, refcnt 1 > rum0: _ieee80211_free_node 0xc250b000<00:1c:a4:75:63:1d> in table > > The last 8 messages appear long after the device itself has stopped trying > and declared it unconnectable. > > I don't know enough of wifi implementation to draw solid conclusions but > this seems to me like the device is ignoring information given to it by the > FreeBSD-run adapter and is retrying several times until it gives up. > > Here's ifconfig for rum0: > > rum0: flags=108843 > metric 0 mtu 1500 > ether 00:1c:f0:9d:08:b3 > inet 10.0.0.3 netmask 0xffffff00 broadcast 10.0.0.255 > media: IEEE 802.11 Wireless Ethernet autoselect (autoselect > ) > status: associated > ssid C1 channel 6 (2437 Mhz 11g) bssid 9a:04:a0:16:24:54 > authmode OPEN privacy OFF txpower 50 scanvalid 60 bgscan > bgscanintvl 300 bgscanidle 250 roam:rssi11g 7 roam:rate11g 5 > protmode CTS > > here's "ifconfig rum0 list sta": > > ADDR AID CHAN RATE RSSI IDLE TXSEQ RXSEQ CAPS FLAG > 00:1c:f0:9d:08:b3 0 6 1M 15.5 0 0 80 I A > 00:1c:a4:75:63:1d 0 6 1M 14.5 0 2 96 A Are you sure that your device works under IBSS mode? BTW, it looks like you have third machine that is equipped with wireless device, so would you please grab a 802_11 tap when your device tries to connect to rum on your freebsd box: tcpdump -ni your_third_wlan_iface -y ieee802_11 -w dump.bin Best Regards, sephe -- Live Free or Die