Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I want to develop a script which connects frequently and automatically to open wifi networks. I am using the nmcli tool, which seems to be stable.

nmcli device wifi connect "$ssid" iface "$iface" --timeout 20

However, the timeout exception is thrown quite often. This tool does not provide any information but the exceeding of the timeout. Is there some kind of verbose mode, which would tell me precisely, how long every part of the connection process (say DHCP etc...) does take?

Furthermore I see differences in the duration of the connection process between my build-in and an usb wifi interface (second needs longer).

Is this a driver issue which I cannot optimize or might there a chance to speed things up?

share|improve this question
    
Welcome to Ask Ubuntu! It's difficult to tell what is being asked here. This is ambiguous, vague, incomplete, overly broad or rhetorical and cannot be reasonably answered in its current form. Please be a little bit more specific or detailed about whay you're trying to accomplish, or take a look at What kind of questions should I not ask here? –  Braiam Aug 29 '13 at 13:57
add comment

1 Answer 1

The speed of the DHCP process differs with speed of connection, how far you are away from the antenna, and how many other people are connected to the network. Therefore, it would require a VERY complex program to determine those factors and put them into use. Also, what form of USB is your adapter(2.0, 3.0), and what type of laptop do you have(and how old)?

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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