kern/163206: dhclient stopped working on wlan0 because of changes in CURRENT kernel between 2011-11-29 and 2011-12-12

Ralf Wenk IZ-FreeBSD0701 at hs-karlsruhe.de
Mon Dec 12 15:00:05 UTC 2011


>Number:         163206
>Category:       kern
>Synopsis:       dhclient stopped working on wlan0 because of changes in CURRENT kernel between 2011-11-29 and 2011-12-12
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Dec 12 15:00:03 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator:     Ralf Wenk
>Release:        FreeBSD 10.0-CURRENT
>Organization:
Hochschule Karlsruhe, University of Applied Sciences
>Environment:
FreeBSD IZ-T193196065251a 10.0-CURRENT FreeBSD 10.0-CURRENT #4: Mon Dec 12 10:11:00 CET 2011     root at IZ-T193196065251a:/usr/obj/usr/src/sys/GENERIC  i386
>Description:
After upgrading from a current world and kernel from 2011-11-29 to todays
version dhclient is now unable to aquire an IP address from an wlan0 interface.
It is working fine on an em0 interface with the same kernel.

The messages in /var/log/messages are

Dec 12 15:08:31 IZ-T193196065251a dhclient[1625]: wlan0: not found
Dec 12 15:08:31 IZ-T193196065251a dhclient[1625]: exiting.
Dec 12 15:08:31 IZ-T193196065251a dhclient[1626]: connection closed
Dec 12 15:08:31 IZ-T193196065251a dhclient[1626]: exiting.
Dec 12 15:08:31 IZ-T193196065251a root: /etc/rc.d/dhclient: WARNING: failed to start dhclient

Reverting the kernel to the old CURRENT version fixes the problem.
Because of successfully using world of today with an old kernel I think the
problem is caused by changes made to the kernel between the two dates.

Stopping the dhclient with "/etc/rc.d/dhclient stop wlan0" shows
  dhclient not running? (check /var/run/dhclient.wlan0.pid).
as expected. Starting with "/etc/rc.d/dhclient start wlan0" shows
  Starting dhclient.
  ifconfig: ioctl (SIOCAIFADDR): File exists
  wlan0: not found
  exiting.
  /etc/rc.d/dhclient: WARNING: failed to start dhclient

Adding "set -xv" to /sbin/dhclient-script leads to the 
  $IFCONFIG $interface inet alias 0.0.0.0 netmask 0.0.0.0 broadcast 255.255.255.255 up
line as the cause of the "ifconfig: ioctl (SIOCAIFADDR): File exists"
error message.

# ifconfig wlan0" 
wlan0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
        ether 00:22:5f:fa:85:0b
        nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
        media: IEEE 802.11 Wireless Ethernet OFDM/6Mbps mode 11g
        status: associated
        ssid HsKA-8021x channel 1 (2412 MHz 11g) bssid 0a:0b:6b:2b:2e:c6
        regdomain ETSI country DE indoor ecm authmode WPA2/802.11i privacy ON
        deftxkey UNDEF TKIP 2:128-bit txpower 30 bmiss 7 scanvalid 450 bgscan
        bgscanintvl 300 bgscanidle 250 roam:rssi 7 roam:rate 5 protmode CTS
        wme burst roaming MANUAL
#
>How-To-Repeat:
Set up interfaces in /etc/rc.conf as
ifconfig_em0="DHCP"
wlans_ath0="wlan0"
ifconfig_wlan0="WPA DHCP country Germany"

use a CURRENT kernel of today and than a CURRENT kernel at least of 2011-11-29.
>Fix:


>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the freebsd-bugs mailing list