]> git.ipfire.org Git - thirdparty/hostap.git/commit - wpa_supplicant/scan.c
Prefer 5 GHz networks over 2.4 GHz networks
authorGary Morain <gmorain@chromium.org>
Fri, 5 Aug 2011 23:23:12 +0000 (16:23 -0700)
committerJouni Malinen <j@w1.fi>
Sun, 30 Oct 2011 19:08:21 +0000 (21:08 +0200)
commit577db0aedd9461b8d0beb5d6fc323970cfa60b07
tree405902faf5bc9ec295e4e104ab01dc7999b4fa87
parentfbc72d32c68b68364ce55b4d4836f77242c478a2
Prefer 5 GHz networks over 2.4 GHz networks

In scan.c, merge a channel's noise value into the scan results. When
comparing scan results, compute the signal-to-noise ratio and use it
when available. Prefer a 5 GHz network if its SNR is really big (> 30)
or if its SNR is relatively close to the other network's.
src/drivers/driver_nl80211.c
wpa_supplicant/scan.c