Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 13 May 2012 20:38:16 GMT
From:      "Christopher J. Ruwe" <cjr@cruwe.de>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   kern/167847: dlink dwl-122g e crashes(?) when trying wap2 crypto
Message-ID:  <201205132038.q4DKcGjS004430@red.freebsd.org>
Resent-Message-ID: <201205132040.q4DKe2Sj026872@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201205132038.q4DKcGjS004430>