author | max <max> | 2003-01-23 02:21:57 (UTC) |
---|---|---|
committer | max <max> | 2003-01-23 02:21:57 (UTC) |
commit | 5383c984ad15bde0300a6ca4559b0df52fe695b0 (patch) (side-by-side diff) | |
tree | 12ac9b23d45e5d8144a952343bbac3fb0cf58899 /noncore/net/wellenreiter/libwellenreiter/source/cardmode.cc | |
parent | c464d34970bedca56a518310deef7ce08474033c (diff) | |
download | opie-5383c984ad15bde0300a6ca4559b0df52fe695b0.zip opie-5383c984ad15bde0300a6ca4559b0df52fe695b0.tar.gz opie-5383c984ad15bde0300a6ca4559b0df52fe695b0.tar.bz2 |
hostap monitor command
Diffstat (limited to 'noncore/net/wellenreiter/libwellenreiter/source/cardmode.cc') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/net/wellenreiter/libwellenreiter/source/cardmode.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/noncore/net/wellenreiter/libwellenreiter/source/cardmode.cc b/noncore/net/wellenreiter/libwellenreiter/source/cardmode.cc index 7362f14..d462488 100644 --- a/noncore/net/wellenreiter/libwellenreiter/source/cardmode.cc +++ b/noncore/net/wellenreiter/libwellenreiter/source/cardmode.cc @@ -58,2 +58,9 @@ int card_into_monitormode (pcap_t **orighandle, char *device, int cardtype) wl_logerr("Got a host-ap card, nothing is implemented now"); + char hostapcmd[250]; + snprintf(hostapcmd, sizeof(hostapcmd) -1, "%s %s monitor 2", IWPRIV_PATH, device); + if (system(hostapcmd) !=0) + { + wl_logerr("Could not set %s in raw mode, check cardtype", device); + return 0; + } } |