Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

Suppose I am in an area with a lot of Wireless AP's for a particular SSID.

If I run the command

sudo iw dev wlan0 connect <ESSID>

How does iw decide which AP to connect to? It does not seem to be based on signal strength, since the one it connects to is not the one with the best signal strength.

share|improve this question
Do you have Ad-Hoc networks in mind? See: link –  user55518 Jan 11 at 1:07
No, just a normal network with multiple access points. –  merlin2011 Jan 11 at 2:16
I suspect this is hardware coded. –  user55518 Jan 11 at 9:29

1 Answer 1

up vote 2 down vote accepted

First Responder, but this happens at the hardware/firmware level and is not strictly a function of iw.

share|improve this answer
What standard determines this, if any? Can typical firmwares be tuned? –  Gilles Jan 11 at 21:06
No standard that I am aware of, just common practice. Most things network default to first responder, So most firmware follows suite. Typical firmware can not be tuned, but I have seen a very few that can be. usually in diagnostic or very high end cards. Most (even high end) just go with the defacto first resposnder. You can however use the mac or BSSID to connect to a specific AP if that is your goal. Most any card will support that. Keep in mind ESSID is for "entire networks" (groups of BSSIDs) so you should be able to float around APs that make up that ESS w/ out intervention (in theory) –  coteyr Jan 12 at 13:48

Your Answer


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.