diff --git a/net/iwconfig.sh.BSD.in b/net/iwconfig.sh.BSD.in
index 3a276cd..813fd2f 100644
a
|
b
|
iwconfig_connect_preferred() |
414 | 414 | [ $# = 0 ] && eval set -- $(_flatten_array "preferred_aps") |
415 | 415 | [ $# = 0 ] && return 1 |
416 | 416 | |
417 | | local ssid= i=0 mode= mac= caps= freq= chan= |
| 417 | local ssid= i= mode= mac= caps= freq= chan= |
418 | 418 | for ssid; do |
| 419 | i=0 |
419 | 420 | while [ ${i} -le ${APS} ] ; do |
420 | 421 | eval e=\$SSID_${i} |
421 | 422 | if [ "${e}" = "${ssid}" ] ; then |
… |
… |
iwconfig_defaults() |
484 | 485 | |
485 | 486 | iwconfig_configure() |
486 | 487 | { |
487 | | local x APS |
| 488 | local x= APS=-1 |
488 | 489 | eval SSID=\$ssid_${IFVAR} |
489 | 490 | |
490 | 491 | # Setup ad-hoc mode? |
diff --git a/net/iwconfig.sh.Linux.in b/net/iwconfig.sh.Linux.in
index 1610cba..a0fb517 100644
a
|
b
|
iwconfig_defaults() |
610 | 610 | |
611 | 611 | iwconfig_configure() |
612 | 612 | { |
613 | | local x= APS= |
| 613 | local x= APS=-1 |
614 | 614 | eval SSID=\$ssid_${IFVAR} |
615 | 615 | |
616 | 616 | # Support old variable |