Skip to content

Commit 306aee1

Browse files
committed
update nl80211-ng, add list for -b, implement channel set during startup.
1 parent bed8247 commit 306aee1

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ path = "src/main.rs"
2424
[dependencies]
2525
libwifi = { version = "0.3.1", path = "libs/libwifi" }
2626
pcap-file = { version = "2.0.0", path = "libs/pcap-file" }
27-
nl80211-ng = ">=0.5.1"
27+
nl80211-ng = ">=0.5.2"
2828
byteorder = "1.5.0"
2929
libc = "0.2.149"
3030
nix = { version = "0.27.1", features = [

src/main.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ struct Arguments {
114114
#[arg(short, long, use_value_delimiter = true, action = clap::ArgAction::Append)]
115115
/// Optional - Channel to scan. Will use "-c 1,6,11" if none specified.
116116
channel: Vec<String>,
117-
#[arg(short, long, name = "2 | 5 | 6 | 60")]
117+
#[arg(short, long, name = "2 | 5 | 6 | 60", use_value_delimiter = true, action = clap::ArgAction::Append)]
118118
/// Optional - Entire band to scan - will include all channels interface can support.
119119
band: Vec<u8>,
120120
#[arg(short, help_heading = "Targeting", name = "Target MAC/SSID")]
@@ -795,6 +795,10 @@ impl OxideRuntime {
795795
netlink.set_interface_up(idx).ok();
796796
netlink.set_powersave_off(idx).ok();
797797

798+
if let Err(e) = set_interface_chan(idx, hop_channels[0].1, hop_channels[0].0) {
799+
eprintln!("{}", e);
800+
}
801+
798802
// Setup OUI Database
799803
let oui_db = OuiDatabase::new();
800804
println!("💲 OUI Records Imported: {}", oui_db.record_count());

0 commit comments

Comments
 (0)