mirror of
				https://github.com/Telecominfraproject/wlan-lanforge-scripts.git
				synced 2025-10-31 18:58:01 +00:00 
			
		
		
		
	associate_ap: progress output, some more graceful waiting to make station creation more predictable
This commit is contained in:
		| @@ -1368,12 +1368,22 @@ sub doAdd { | |||||||
|    #print "## doAdd: sta_wiphy[$::sta_wiphy]\n"; |    #print "## doAdd: sta_wiphy[$::sta_wiphy]\n"; | ||||||
|    if ($::num_stations > 0 && defined $::sta_wiphy) { |    if ($::num_stations > 0 && defined $::sta_wiphy) { | ||||||
|       my %results2 = (); |       my %results2 = (); | ||||||
|  |       print "creating stations:"; | ||||||
|  |       my $i = 0; | ||||||
|       for my $sta_name (sort(keys %::sta_names)) { |       for my $sta_name (sort(keys %::sta_names)) { | ||||||
|          die("misconfiguration! ") if( ref($sta_name) eq "HASH"); |          die("misconfiguration! ") if( ref($sta_name) eq "HASH"); | ||||||
|          my $ip = $::sta_names{$sta_name}; |          my $ip = $::sta_names{$sta_name}; | ||||||
|  |          print " $sta_name"; | ||||||
|          new_wifi_station( $sta_name, $ip, \%results2, $::wifi_mode, 0); |          new_wifi_station( $sta_name, $ip, \%results2, $::wifi_mode, 0); | ||||||
|  |          if (($i % 10) == 9) { | ||||||
|  |             $::utils->sleep_ms(120); | ||||||
|  |          } | ||||||
|  |          else { | ||||||
|  |             $::utils->sleep_ms(30); | ||||||
|  |          } | ||||||
|  |          $i++; | ||||||
|       } |       } | ||||||
|  |       print "done\n"; | ||||||
|    } |    } | ||||||
|    elsif (defined $::sta_wiphy) { |    elsif (defined $::sta_wiphy) { | ||||||
|       print "Creating virtual radio: $::sta_wiphy.\n"; |       print "Creating virtual radio: $::sta_wiphy.\n"; | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Jed Reynolds
					Jed Reynolds