sub read_airo_conf {
        open
(AIROCONF,"/proc/driver/aironet/".$fromconf{interface}."/Config") or die "Could not open /proc/driver/aironet/".$fromconf{interface}."/Config";
        while (<AIROCONF>)
        {
                chomp;
                if ($_ =~ /^([^:]+):\s+(.*)$/) {
                        $g_airoconfig{$1} = $2;
                }
        }
        close (AIROCONF);
        open (AIROSTATUS,"/proc/driver/aironet/".$fromconf{interface}."/Status") or die "Could not open /proc/driver/aironet/".$fromconf{interface}."/Status";
        while (<AIROSTATUS>) {
                chomp;
                if ($_!~ /driver version/i) {
                  if ($_ =~ /^([^:]+):\s+(.*)$/) {
                        $g_airoconfig{$1} = $2;
                  }
                }
        }
        #-- Calculations for proper percentage displaying, cisco dont use 100 as max value --#
        $g_airoconfig{'Signal Quality'} = ($g_airoconfig{'Signal Quality'} * 2.5);
        close (AIROSTATUS);
		
		#-- Checks if there is a new Network --#
			if ($g_last_values{essid} ne $g_airoconfig{SSID} && $g_airoconfig{SSID} ne "")
			{
 			   #print "New net found, old: $g_last_values{essid} new: $g_airoconfig{SSID} \n";
				system ($fromconf{c_newnetfound});
 			   #print "New net found, old: $g_last_values{essid} new: $g_airoconfig{SSID} \n";

			}
		#-- Checks if we lost the last Networkname --#
			if ($g_last_values{essid} ne $g_airoconfig{SSID} && $g_airoconfig{SSID} eq "")
			{
				#print "Lost the network";
				system ($fromconf{c_netlost});
			}
			$g_last_values{essid} = $g_airoconfig{SSID};
}			

