Skip to content

Commit 6e2b50f

Browse files
committed
pipe: when using playback, don't require wireless adapter
1 parent d00f548 commit 6e2b50f

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

pipe/linux/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ int main(int argc, const char **argv)
8484
return 1;
8585
}
8686

87-
if (!wireless_interface) {
87+
if (!wireless_interface && !playback_file) {
8888
nlprint("Must identify a wireless interface to use");
8989
return 1;
9090
}

pipe/linux/wpa.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -983,6 +983,8 @@ void *do_playback(void *data)
983983
int64_t timestamp;
984984
char buffer[4096];
985985

986+
nlprint("PLAYBACK STARTED");
987+
986988
while (!is_interrupted()) {
987989
if (!waiting) {
988990
// Read next timestamp

0 commit comments

Comments
 (0)