in reply to Re^6: Help with Lorcon XS library
in thread Help with Lorcon XS library
print Net::Lorcon2::lorcon_create("wlo1", $driver); #where $driver c +an be madwifing or other it says: Net::Lorcon2::lorcon_create: driver is not a reference at -e line 3.
print Net::Lorcon2::lorcon_create("wlo1", \$driver); #where $driver + can be madwifing or other it says segmentation error (core dump created)
What happens if you do that ?my $driver = "madwifing"; my $if = "wlo1"; my $drv = lorcon_find_driver($driver); if (! $drv) { print STDERR "[-] Unable to find DRV for [$driver]\n"; exit 1; } my $lorcon = lorcon_create($if, $drv); if (! $lorcon) { print STDERR "[-] lorcon_create failed\n"; exit 1; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^8: Help with Lorcon XS library
by Bpl (Scribe) on Jul 21, 2020 at 12:47 UTC | |
by AnomalousMonk (Archbishop) on Jul 21, 2020 at 15:23 UTC | |
by Bpl (Scribe) on Jul 21, 2020 at 16:17 UTC | |
by syphilis (Archbishop) on Jul 22, 2020 at 01:59 UTC | |
by Bpl (Scribe) on Jul 22, 2020 at 03:56 UTC | |
| |
by AnomalousMonk (Archbishop) on Jul 21, 2020 at 16:36 UTC |