]> git.ipfire.org Git - ipfire-2.x.git/blobdiff - html/cgi-bin/wlanap.cgi
wlanap.cgi: Access db.txt in place of using regdbdump on regulatory.bin
[ipfire-2.x.git] / html / cgi-bin / wlanap.cgi
index eba5fe774e14e04b40461dd03d46b35bf566bbba..5eb34d651a035c268baee59c43a9e711658ea11e 100644 (file)
@@ -312,8 +312,11 @@ if ( $channel =~ /\d+/ ){push(@temp,$channel + 0);}
 push(@channellist, @temp);
 }
 
-my @countrylist_cmd = `regdbdump /usr/lib/crda/regulatory.bin 2>/dev/null`;
 # get available country codes
+open(FILE, “</lib/firmware/regulatorydb.txt”);
+my @countrylist_cmd = <FILE>;
+close(FILE);
+
 
 my @temp = "00";
 foreach (@countrylist_cmd){