Sorry but I post the wrong piece of code..
Code:
mike@mike-laptop:~$ iwconfig
lo no wireless extensions.
eth0 no wireless extensions.
eth1 IEEE 802.11g ESSID:"OpenWrt"
Mode:Managed Frequency:2.432 GHz Access Point: 00:14:Bla:bla:bla
Bit Rate:48 Mb/s Tx-Power=20 dBm Sensitivity=8/0
Retry limit:7 RTS thr:off Fragment thr:off
Power Management:off
Link Quality=95/100 Signal level=-10 dBm Noise level=-91 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:5
pan0 no wireless extensions.
mike@mike-laptop:~$ iwconfig eth1 ap auto
Error for wireless request "Set AP Address" (8B14) :
SET failed on device eth1 ; Operation not permitted.
mike@mike-laptop:~$ iwconfig eth1 ap any
Error for wireless request "Set AP Address" (8B14) :
SET failed on device eth1 ; Operation not permitted.
as you can see it is still not working.
Thanks for your reply but also thanks for your last question:
I'm using CLI because I've noticed that with NetworkManager when I lose the network connection it tries to reconnect for let say 30 seconds; if it does not succeed it give up and it will try again in let say 2 minutes.
In the software I would like to develop I need some way to suggest him to try an association, whenever I know that there is one available, with the best AP.
If you know any other technique, please let me know.
Thanks again for your reply.
Mike