On Wed, Feb 16, 2005 at 01:48:35PM +0100, martin f krafft wrote:

> One of my cards is a WLAN card, and it does not support the
> SIOCGMIIPHY ioctl. Thus, guessnet says:
>   Link beat detection (mii) failed:
>   Operation not supported SIOCGMIIPHY failed 
> However, this causes the disconnected test to be true, which is
> wrong. It should only be true if the test was successful and the
> link was not detected. If the test failed, then it should be assumed
> that a link exists.

If the network card doesn't support MII, then you should avoid using the
"missing-cable".  If you are using the stanzas for different network
interfaces, you can specify the list of active stanzas in the "mapping"
section, by just putting the space-separated list of names after a "map"
directive, such as in:

mapping eth0
        script /usr/sbin/guessnet-ifupdown
        map default: auto
        # Only look for the home, work, work1 and club profiles
        map home work work1 club

After all, if link-beat is not supported that test does not make sense
anyway.

I do agree that the test should never succeed when link-beat detection
doesn't work, though: please leave this bug open.


Thanks,

Enrico a bit overworked

--
GPG key: 1024D/797EBFAB 2000-12-05 Enrico Zini <[EMAIL PROTECTED]>

Attachment: signature.asc
Description: Digital signature

Reply via email to