I'm curious what software (package, utility in bin's) handle interface parameters in /etc/network/interfaces and decides to connect to the specified wireless net.
I use wifi usb stick dlink DWL-110 attached to wlan0 with ndiswrapper driver.
Sometimes wlan0 sees my wifi net - iwlist wlan0 scan shows it, but does not connect to it - iwconfig shows AP Not-Associated, until I replug the stick.
Neither reinserting module with ndiswrapper, not ifdown/ifup or restarting networking helps.
That is why I need to know what OS entity handles connection/reconnection to wireless net.
EDIT: shame on me, I use wireless-tool package with wep encryption