summaryrefslogtreecommitdiff
blob: fc9cb9826ec2c9b1c0b021a4b1e44d56e0a2977c (plain)
1
2
3
4
5
6
7
8
9
10
11
--- lib/rcscripts/net.modules.d/iwconfig	(revision 1770)
+++ /lib/rccscripts/net.modules.d/iwconfig	(working copy)
@@ -832,7 +832,7 @@
 		[[ ${unique_ap} != no ]] && iwconfig_strip_associated ${iface}
 
 		iwconfig_connect_preferred ${iface} && return 0
-		[[ ${associate_order} == forcepreferred ]] && iwconfig_force_preferred ${iface} && return 0
+		[[ ${associate_order} == forcepreferred || ${associate_order} == forceany ]] && iwconfig_force_preferred ${iface} && return 0
 		[[ ${associate_order} == any || ${associate_order} == forceany ]] && iwconfig_connect_not_preferred ${iface} && return 0
 	fi