From owner-freebsd-bugs@FreeBSD.ORG Sun May 13 20:40:02 2012 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CC75A106564A for ; Sun, 13 May 2012 20:40:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 9F40B8FC1B for ; Sun, 13 May 2012 20:40:02 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q4DKe2dx026873 for ; Sun, 13 May 2012 20:40:02 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q4DKe2Sj026872; Sun, 13 May 2012 20:40:02 GMT (envelope-from gnats) Resent-Date: Sun, 13 May 2012 20:40:02 GMT Resent-Message-Id: <201205132040.q4DKe2Sj026872@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, "Christopher J. Ruwe" Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 203FF106566B for ; Sun, 13 May 2012 20:38:17 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22]) by mx1.freebsd.org (Postfix) with ESMTP id 0137F8FC0C for ; Sun, 13 May 2012 20:38:17 +0000 (UTC) Received: from red.freebsd.org (localhost [127.0.0.1]) by red.freebsd.org (8.14.4/8.14.4) with ESMTP id q4DKcGcu004431 for ; Sun, 13 May 2012 20:38:16 GMT (envelope-from nobody@red.freebsd.org) Received: (from nobody@localhost) by red.freebsd.org (8.14.4/8.14.4/Submit) id q4DKcGjS004430; Sun, 13 May 2012 20:38:16 GMT (envelope-from nobody) Message-Id: <201205132038.q4DKcGjS004430@red.freebsd.org> Date: Sun, 13 May 2012 20:38:16 GMT From: "Christopher J. Ruwe" To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: kern/167847: dlink dwl-122g e crashes(?) when trying wap2 crypto X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 13 May 2012 20:40:02 -0000 >Number: 167847 >Category: kern >Synopsis: dlink dwl-122g e crashes(?) when trying wap2 crypto >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sun May 13 20:40:02 UTC 2012 >Closed-Date: >Last-Modified: >Originator: Christopher J. Ruwe >Release: 9-stable >Organization: >Environment: FreeBSD dijkstra.cruwe.de 9.0-STABLE FreeBSD 9.0-STABLE #3: Wed Feb 8 22:39:10 CET 2012 root@dijkstra.cruwe.de:/usr/obj/usr/home/cjr/media/src/freebsd/9/sys/DIJKSTRA amd64 >Description: A usb wifi dongle, dlink g-122g revision e, works using the ural module, which apparently loads if_run.ko and gives run0 as an interface. It is possible to use the dongle as a wifi ap from several wifi clients with these lines in /etc/rc.conf: wlans_run0="wlan0" create_args_wlan0="wlanmode hostap" ifconfig_wlan0="inet 192.168.3.1 netmask 255.255.255.0 ssid bsdap mode 11g" When trying to encrypt wlan traffic with WPA2, using either ifconfig ... authmode wpa or hostapd, it is neither possible to connect to the wifi ap nor to see the wifi ap with the usual tools. The system appears to be under load, other network traffic gets very slow and setting the dongle in unencrypted mode does not change the situation. The issue resolves when manually removing the usb dongle. Having manually removed the usb dongle, it is possible to connect unencrypted again. I interpret this as crashing of the if_run driver or the associated wlan-modules. My hostapd.conf is as follows (comments taken out): File Edit Options Buffers Tools Help interface=wlan0 logger_syslog=-1 logger_syslog_level=2 logger_stdout=-1 logger_stdout_level=2 dump_file=/tmp/hostapd.dump ctrl_interface=/var/run/hostapd ctrl_interface_group=0 ssid=bsdap country_code=US hw_mode=g channel=60 beacon_int=100 dtim_period=2 max_num_sta=255 rts_threshold=2347 fragm_threshold=2346 macaddr_acl=0 auth_algs=1 ignore_broadcast_ssid=0 wmm_enabled=1 wmm_ac_bk_cwmin=4 wmm_ac_bk_cwmax=10 wmm_ac_bk_aifs=7 wmm_ac_bk_txop_limit=0 wmm_ac_bk_acm=0 wmm_ac_be_aifs=3 wmm_ac_be_cwmin=4 wmm_ac_be_cwmax=10 wmm_ac_be_txop_limit=0 wmm_ac_be_acm=0 wmm_ac_vi_aifs=2 wmm_ac_vi_cwmin=3 wmm_ac_vi_cwmax=4 wmm_ac_vi_txop_limit=94 wmm_ac_vi_acm=0 wmm_ac_vo_aifs=2 wmm_ac_vo_cwmin=2 wmm_ac_vo_cwmax=3 wmm_ac_vo_txop_limit=47 wmm_ac_vo_acm=0 eapol_key_index_workaround=0 own_ip_addr=127.0.0.1 wpa=3 wpa_passphrase=secretkey wpa_key_mgmt=WPA-PSK wpa_pairwise=TKIP CCMP >How-To-Repeat: kldload ural ifconfig wlan0 create wlandev run0 wlanmode ap ifconfig wlan0 inet 192.168.3.1 netmask 255.255.255.0 ssid bsdap. Connect to see that run0 is working. Then ifconfig wlan0 destroy ifconfig wlan0 create wlandev run0 wlanmode ap ifconfig wlan0 inet 192.168.3.1 netmask 255.255.255.0 ssid bsdap country DE authmode wpa or alternatively /etc/rc.d/hostapd onestart or hostapd -ddK /etc/hostapd.conf >Fix: >Release-Note: >Audit-Trail: >Unformatted: