I’m running OpenBSD on a computer which is connected via wireless to the network. It is a well supported NIC and I’ve had no problems with it from a hardware perspective.

Unfortunately my wireless access point occasionally loves to forget it’s settings. I then have to help it remember. However, in this intervening time my OpenBSD box drops the connection and then does not automatically reconnect. I have alleviated my problems by running this simple script in the background:

#!/bin/sh
while [ 1 ]
do
    ping -c1 192.168.1.254 > /dev/null
    if [ $? = 1 ]
    then
        sh /etc/netstart ral0 > /dev/null
    fi
    sleep 30
done

[Ping the access point. If there is no response attempt to reconnect.]

It seems to me to be a very suboptimal solution. Has anyone else come across a better way?

link|improve this question
feedback

1 Answer

I don't think I understand. You said your wireless AP likes to forget it's settings. What does this have to do with your NIC? Do you mean your NIC forgets the AP settings?

link|improve this answer
Sorry for being a bit free with my language. The problem stems from having an unreliable AP. For unknown reasons, it will turn off and come back on again. When this happens the NIC on the OpenBSD machine will disconnect. It doesn’t lose the connection settings but it doesn’t reconnect either. So the question is this: can the NIC detect when it’s disconnected from the AP and subsequently reconnect to it (if it is detected)? – casr Feb 15 '11 at 15:27
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.