OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
From: Steve Beattie (stevewirex.net)
Date: Fri Feb 22 2002 - 19:19:48 CST

  • Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

    Hello,

    I'm trying to get a ZCOMAX AirRunner/XI-300 (prism2 based) working in IBSS
    mode with the 2.2 kernel and pcmcia-cs drivers. The orinoco 0.8 driver
    included in pcmcia-cs >= 3.1.29 sort of works -- it works enough to give
    me connectivity to my DSL line; however, transferring large amounts of
    data causes the driver to fall over without any error messages, and the
    only way it will start to work again is to reload the driver.

    I took the orinoco 0.9b drivers and merged them into the pcmcia-cs 3.1.30
    package, while attempting to keep David Hinds' small changes intact.
    Alas, I've run into a problem. In orinoco.c::orinoco_ioctl(), before
    performing the switch based on the passed in ioctl, there's a test to
    see if the hardware is ready:

            if (! netif_device_present(dev))
                    return -ENODEV;

    This used to be (in the 0.8 driver):

            if (!priv->hw_ready)
                    return -ENODEV;

    Unfortunately, this change appears to break the pcmcia-cs scripts, as
    when the card is inserted, I get messages like:

    Feb 20 07:46:33 lizaveta cardmgr[2013]: + /sbin/iwconfig eth1 mode ad-hoc
    Feb 20 07:46:33 lizaveta cardmgr[2013]: + SIOCSIWMODE: No such device
    Feb 20 07:46:34 lizaveta cardmgr[2013]: + /sbin/iwconfig eth1 rate auto
    Feb 20 07:46:34 lizaveta cardmgr[2013]: + SIOCSIWRATE: No such device
    Feb 20 07:46:34 lizaveta cardmgr[2013]: + /sbin/iwconfig eth1 key off
    Feb 20 07:46:34 lizaveta cardmgr[2013]: + SIOCSIWENCODE(19): No such device

    However, I don't get "No such device" errors if I run iwconfig manually
    after cardmgr has finished setting up the device; alas, I can't get
    iwconfig to get the ZCOMAX card to change frequency channels and it
    defaults to a different channel than the rest of my 802.11b devices are
    using. I did test it with a orinoco silver card and I get the same errors
    reported from cardmgr, but the default settings the silver card chooses
    ends up working with the other wireless cards and the driver appears to
    work fine with it (unfortunately I need to use the ZCOMAX card).

    Simple hacks, like adding "sleep 5" to the beginning of the
    pcmcia/wireless script, didn't help. Changing orinoco_ioctl() to use the
    (!priv->hw_ready) doesn't work because the hw_ready element no longer
    exists.

    Any ideas? More details provided on request. Thanks in advance.

    -- 
    Steve Beattie                               Don't trust programmers? 
    <stevewirex.net>                         Complete StackGuard distro at
    http://NxNW.org/~steve/                            immunix.org
      www.personaltelco.net -- overthrowing QWest, one block at a time.
    

    -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org

    iD8DBQE8du4yquBH+DuYavMRAtafAJ0cyKv2DMP1YdN5T+M7D03kPEUEdQCfXoGP n1fH8X3qOq0CPGocRQLT91w= =Znb5 -----END PGP SIGNATURE-----