This check was wrong for drivers which report RSSI as a percentage,
such as iwm(4) and iwx(4). Such drivers will now prefer 5GHz with
50% or greater RSSI, as was intended.
ok phessler@
-/* $OpenBSD: ieee80211_node.c,v 1.193 2022/03/19 15:20:32 stsp Exp $ */
+/* $OpenBSD: ieee80211_node.c,v 1.194 2022/03/19 15:21:13 stsp Exp $ */
/* $NetBSD: ieee80211_node.c,v 1.14 2004/05/09 09:18:47 dyoung Exp $ */
/*-
* (as long as it meets the minimum RSSI threshold) since the 5Ghz band
* is usually less saturated.
*/
- if (selbs5 && selbs5->ni_rssi > min_5ghz_rssi)
+ if (selbs5 && (*ic->ic_node_checkrssi)(ic, selbs5))
selbs = selbs5;
else if (selbs5 && selbs2)
selbs = (selbs5->ni_rssi >= selbs2->ni_rssi ? selbs5 : selbs2);