From owner-freebsd-questions@FreeBSD.ORG Mon May 14 17:14:55 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 1E616106564A for ; Mon, 14 May 2012 17:14:55 +0000 (UTC) (envelope-from cjr@cruwe.de) Received: from cruwe.de (cruwe.de [188.40.164.98]) by mx1.freebsd.org (Postfix) with ESMTP id 96D658FC14 for ; Mon, 14 May 2012 17:14:54 +0000 (UTC) Received: from cruwe.de (unknown [127.0.0.4]) by cruwe.de (Postfix) with ESMTP id 3870D143FB for ; Mon, 14 May 2012 17:14:47 +0000 (UTC) Received: by cruwe.de (Postfix, from userid 65534) id 1A0B7143FA; Mon, 14 May 2012 17:14:47 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on mail.cruwe.de X-Spam-Level: X-Spam-Status: No, score=-1.0 required=4.0 tests=ALL_TRUSTED autolearn=unavailable version=3.3.2 Received: from dijkstra.cruwe.de (p5B379A3B.dip.t-dialin.net [91.55.154.59]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by cruwe.de (Postfix) with ESMTPSA id 54F0E143F8 for ; Mon, 14 May 2012 17:14:44 +0000 (UTC) Date: Mon, 14 May 2012 19:14:42 +0200 From: "Christopher J. Ruwe" To: freebsd-questions@freebsd.org Message-ID: <20120514191442.505a0a08@dijkstra.cruwe.de> In-Reply-To: References: X-Mailer: Claws Mail 3.8.0 (GTK+ 2.24.6; amd64-portbld-freebsd9.0) Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Virus-Scanned: ClamAV on mail.cruwe.de using ClamSMTP Subject: Re: dlink dwl-122g e1 on 9-stable, working only partially? (or not at all?) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 May 2012 17:14:55 -0000 On Sun, 13 May 2012 23:09:34 -0600 PseudoCylon wrote: > > ------------------------------ > > > > Message: 11 > > Date: Sun, 13 May 2012 01:21:30 +0200 > > From: "Christopher J. Ruwe" > > Subject: Re: dlink dwl-122g e1 on 9-stable, working only partially? > > =C2=A0 =C2=A0 =C2=A0 =C2=A0(or not at all?) > > To: freebsd-questions@freebsd.org > > Message-ID: <20120513012130.64d78c1f@dijkstra.cruwe.de> > > Content-Type: text/plain; charset=3DUS-ASCII > > > > On Sat, 12 May 2012 14:49:18 +0200 > > "Christopher J. Ruwe" wrote: > > > >> Currently I am fighting with (against?) a dlink dwl-g122 usb wlan > >> dongle. The casing is claiming the thing to be of H/W-version E1, > >> F/W-version 5.00, which I interpret as hardware and firmware. > >> > >> I am running 9-stable (FreeBSD ritchie.cruwe.de 9.0-STABLE FreeBSD > >> 9.0-STABLE #8 r235064: Fri May 11 21:32:52 CEST 2012 > >> cjr@ritchie.cruwe.de:/usr/obj/usr/src/sys/RITCHIE =C2=A0amd64) and > >> admittedly, dwl-g122 is not included in the hw-compatibility list > >> for 9.0. > >> > >> I am also aware that others have been unsuccessful, though some > >> time back, to get dlw-g122 e running > >> (http://forums.freebsd.org/showthread.php?t=3D27123). > >> > >> However, I am somewhat successful in getting the dongle recognized > >> by if_run.ko, though not to work as I would like to: > >> > >> dmesg gives then > >> > >> [...] > >> ugen0.3: at usbus0 > >> run0: on > >> usbus0 run0: MAC/BBP RT3070 (rev 0x0201), RF RT2020 (MIMO 1T1R), > >> address b8:a3:86:97:c1:ec ieee80211_load_module: load the > >> wlan_amrr module by hand for now. wlan0: Ethernet address: > >> b8:a3:86:97:c1:ec run0: firmware RT2870 ver. 0.236 loaded > >> ieee80211_load_module: load the wlan_amrr module by hand for now. > >> wlan0: Ethernet address: b8:a3:86:97:c1:ec > >> I have no explanation for the multiple occurrences, I have been > >> trying for some time now, though. > >> >=20 > Was wlan_amrr compiled into kernel? Nope, using the module. BTW, loading the if_run module gives ieee80211_load_module: load the wlan_amrr module by hand for now. Did exactly that, i.e., loaded the wlam_amrr by hand. Do you think I might fare better by using in-kernel drivers instead of modules? =20 > >> > >> sudo ifconfig wlan0 create wlandev run0 wlanmode hostap > >> sudo ifconfig wlan0 inet 192.168.3.1 netmask 255.255.255.0 ssid > >> bsdap channel - > >> >=20 > If you want to use WPA, you need to run > # /etc/rc.d/hostapd onestart Amongst other things, I also did that. >=20 > > OK, update on the situation: I can get wlan to work in AP-mode, I > > must not enable WPA, though. Having enabled hostapd for one time > > kills my wlan and requires a complete reboot. > > >=20 > Did it panic? Can you post back trace? No, it did not panic. After trying to enable wpa, the systems becomes very sluggish on the network side and recovers upon pulling the dongle. I interpret that as some kind of crashing the driver. I would be happy to provide a back trace, I do not know how, though. Where do I need to look to learn that? Thanks and cheers, Christopher