[−][src]Crate wireless_regdb
Read a wireless regdb, and convert it to a binary firmware file.
Inspired by the python code from kernel.googlesource.com/pub/scm/linux/kernel/git/sforshee/wireless-regdb
Example
let lexer = wireless_regdb::lexer::TokType::parse("db.txt").unwrap(); let db = wireless_regdb::RegDB::from_lexer(lexer).unwrap(); let bin_db = wireless_regdb::Binary::from_regdb(&db).unwrap(); bin_db.write_file("regulatory.db").unwrap();
Re-exports
pub use crate::lexer::TokType; |
Modules
lexer | Lexer to create a TokenStream( |
Structs
Binary | Binary representation of the regulatory Database |
Country | Contry definiton in the Regulatory Database |
Flags | Flags for a Freqency to regulato special behavior |
FrequencyBand | Freqency entry |
RegDB | The regulatory database with wmmrules and countries |
WmmRule | Regulatory rules for a region. |
WmmRuleItem | Item of a |
Enums
DfsRegion | Dfs region Definiton |