in reply to Re: Help with Lorcon XS library
in thread Help with Lorcon XS library

Hi again, finally I found a way for obtaining a "safe script", I added the function drv_madwifing_init from drv_madwfing.h
use Net::Lorcon2 qw( :subs ); my $drv = Net::Lorcon2::lorcon_find_driver( "madwifing" ); my $Lorcon = Net::Lorcon2::lorcon_create("wlo1", $drv); print drv_madwifing_init($Lorcon); print Net::Lorcon2::lorcon_open_inject($Lorcon);
It's seem that initializating the madwifing device there is no error ( intended as core dump), the output of the program is 1 and -1, this means that  drv_madwifing_init works, while lorcon_open_inject doesn't and it returns an error value ( still better than a core dump!) Regards Edoardo Mantovani.