1 unstable release

0.1.0 Oct 22, 2020

#595 in Unix APIs

26 downloads per month

MirOS license

42KB
1K SLoC

wireless-regdb


lib.rs:

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();

Dependencies

~250KB