wlan0 (hostap_pci) doesn't start on boot

Hi,
I have a XI-626 wireless card in OpenSuse 11.1. It does not start on boot, I always have to do ifup wlan0, which always works fine. This is ifcfg-wlan0:
BOOTPROTO=‘dhcp4’
BROADCAST=’’
ETHTOOL_OPTIONS=’’
INTERFACETYPE=‘wlan’
IPADDR=’’
MTU=‘1500’
NAME=‘Prism 2.5 Wavelan chipset’
NETMASK=’’
NETWORK=’’
REMOTE_IPADDR=’’
STARTMODE=‘auto’
USERCONTROL=‘no’
WIRELESS_AP=’’
WIRELESS_AUTH_MODE=‘open’
WIRELESS_BITRATE=‘auto’
WIRELESS_CA_CERT=’’
WIRELESS_CHANNEL=’’
WIRELESS_CLIENT_CERT=’’
WIRELESS_CLIENT_KEY=’’
WIRELESS_CLIENT_KEY_PASSWORD=’’
WIRELESS_DEFAULT_KEY=‘0’
WIRELESS_EAP_AUTH=’’
WIRELESS_EAP_MODE=’’
WIRELESS_ESSID=‘voxor’
WIRELESS_FREQUENCY=’’
WIRELESS_KEY=’’
WIRELESS_KEY_0=‘s:deleted, not for public’
WIRELESS_KEY_1=’’
WIRELESS_KEY_2=’’
WIRELESS_KEY_3=’’
WIRELESS_KEY_LENGTH=‘128’
WIRELESS_MODE=‘Managed’
WIRELESS_NICK=’’
WIRELESS_NWID=’’
WIRELESS_PEAP_VERSION=’’
WIRELESS_POWER=‘no’
WIRELESS_WPA_ANONID=’’
WIRELESS_WPA_IDENTITY=’’
WIRELESS_WPA_PASSWORD=’’
WIRELESS_WPA_PSK=’’
PREFIXLEN=‘24’

Relevant parts of dmesg.msg (debug=yes):
*[size=]
<6>vendor=10de device=005c
<6>hostap_pci 0000:05:06.0: PCI INT A -> Link[APC1] -> GSI 16 (level, low) -> IRQ 16
<6>hostap_pci: Registered netdevice wifi0
<7>wifi0: Original COR value: 0x0
<6>dib0700: loaded with support for 7 different device-types
<6>dvb-usb: found a ‘Pinnacle PCTV 73e’ in warm state.
<6>dvb-usb: will pass the complete MPEG2 transport stream to the software demuxer.
<6>DVB: registering new adapter (Pinnacle PCTV 73e)
<4>ACPI: PCI Interrupt Link [APCJ] enabled at IRQ 22
<6>Intel ICH 0000:00:04.0: PCI INT A -> Link[APCJ] -> GSI 22 (level, low) -> IRQ 22
<7>Intel ICH 0000:00:04.0: setting latency timer to 64
<7>prism2_hw_init: initialized in 196 ms
<6>wifi0: NIC: id=0x8013 v1.0.0
<6>wifi0: PRI: id=0x15 v1.1.1
<6>wifi0: STA: id=0x1f v1.8.0
<6>wifi0: Intersil Prism2.5 PCI: mem=0xc3000000, irq=16
<7>wifi0: registered netdevice wlan0


Starting HAL daemondone
start

  • Modifications by localfs filter:
    PHYSICAL_IFACES => eth0 + wlan0 = eth0 wlan0
    NOT_PHYSICAL_IFACES => + =
    MANDATORY_DEVICES => eth0 + wlan0 = eth0 wlan0
    MANDATORY_SLAVES => + =
    VIRTUAL_IFACES => + =
    CONFIG =
    INTERFACE =
    AVAILABLE_IFACES = eth0
    PHYSICAL_IFACES = eth0
    BONDING_IFACES =
    VLAN_IFACES =
    DIALUP_IFACES =
    TUNNEL_IFACES =
    BRIDGE_IFACES =
    SLAVE_IFACES =
    MANDATORY_DEVICES = eth0 NSC
    VIRTUAL_IFACES =
    SKIP =
    start order : eth0 ; eth0 NSC ;
    Setting up (localfs) network interfaces:
    lo -o rc onboot

    lo
    lo lo -o rc onboot
    unknown option rc ignored
    ‘lo’ is not wireless, exiting
    lo IP address: 127.0.0.1/8
    Handling Index <>:
    IPADDR = 127.0.0.1
    PREFIXLEN = 8
    CHECK_DUPLICATE_IP = no
    IP address: 127.0.0.2/8
    Handling Index <_2>:
    IPADDR = 127.0.0.2
    PREFIXLEN = 8
    CHECK_DUPLICATE_IP = no
    lo lo -o rc onboot
    calling: ip route replace to 127/8 dev lo —> OK
    lo lo -o rc onboot
    unknown option rc
    No services to handle for ‘lo lo’
    executing additional global start script if-up.d/SuSEfirewall2
    lo returned 0
    doneeth0 -o rc onboot

    eth0 device: nVidia Corporation CK804 Ethernet Controller (rev a3)
    eth0 eth0 -o rc onboot
    unknown option rc ignored
    ‘eth0’ is not wireless, exiting
    eth0 IP address: 192.168.6.1/24
    Handling Index <>:
    IPADDR = 192.168.6.1
    PREFIXLEN = 24
    CHECK_DUPLICATE_IP = no
    eth0 eth0 -o rc onboot
    calling: ip route replace to 169.254.0.0/16 dev eth0 —> OK
    eth0 eth0 -o rc onboot
    unknown option rc
    No services to handle for ‘eth0 eth0’
    executing additional global start script if-up.d/SuSEfirewall2
    eth0 returned 0
    done… still waiting for hotplug devices:
    SUCCESS_IFACES= lo eth0
    MANDATORY_DEVICES=eth0 NSC
    … final
    SUCCESS_IFACES= lo eth0
    MANDATORY_DEVICES=
    FAILED=0
    noiface -o rc onboot
    [/size]
    So it was first registered as netdevice wlan0 and then is not available at interface startup?
    Manual ifup is always ok:
    *ifup wlan0
    wlan0

    wlan0 device: Intersil Corporation Prism 2.5 Wavelan chipset (rev 01)
    wlan0 wlan0
    prefer wpa_supplicant: no
    warning: debug mode logs your encryption keys!
    run_iw_tool() config mode Managed
    run_iw_tool() config nick ultra
    run_iw_tool() config key off
    run_iw_tool() config key open ok_deleted
    run_iw_tool() config essid voxor
    run_iw_tool() config ap any
    wlan0 wlan0
    Activating interface wlan0
    Starting DHCP4 client on wlan0Starting dhcp client: /sbin/dhcpcd --netconfig -L -E -HHH -c /etc/sysconfig/network/scripts/dhcpcd-hook -t “0” -h “ultra” wlan0
    . . .
    wlan0 IP address: 172.16.1.19/24
    DHCP4: STARTED=yes STATUS=0
    DHCP6: STARTED=no STATUS=5
    wlan0 wlan0

Thanks*

What is the STARTMODE of your wired Interface eth0?

The same as wifi, here is the ifcfg-eth0:
*BOOTPROTO=‘static’
BROADCAST=’’
ETHTOOL_OPTIONS=’’
IPADDR=‘192.168.6.1/24’
MTU=’’
NAME=‘CK804 Ethernet Controller’
NETWORK=’’
REMOTE_IPADDR=’’
STARTMODE='auto’
USERCONTROL=‘no’
PREFIXLEN=‘24’
*

Try changing eth0 to “ifplugd”.

Try adding

DHCLIENT_PRIMARY_DEVICE=yes

to ifcfg-wlan0.

Hi Akoellh,
I tried as you wrote, then also wlan0 with ifplugd, but ifplugd with wlan0 does not even start. Looks like ifcfg file is not processed?

Hi, I tried moving the card to another slot, setting wlan0 as mandatory device and wait for interfaces to 60, but it does not help. Any ideas? It is strange cos it worked in 10.3 (with one exception, the card was in Master mode).