Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re^2: Help with Lorcon XS library

by Bpl (Scribe)
on Jul 21, 2020 at 07:56 UTC ( [id://11119581]=note: print w/replies, xml ) Need Help??


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

Hi! I know that, I toggled the  lorcon_fin_driver because every time causes an error crash, could you please test in your computer if it works? it would be extremely usefull for me. I am using a quite old computer and the wireless chip is quite flawed (thanks to me :) ) Regards Edoardo

Replies are listed 'Best First'.
Re^3: Help with Lorcon XS library
by syphilis (Archbishop) on Jul 21, 2020 at 10:08 UTC
    could you please test in your computer if it works?

    No, I'm not prepared to go to those lengths.
    But it if you're prepared to try things and give us useful feedback on what's happening then I (or someone else) might be ble to come up with some helpful diagnosis.

    For example, what output do you get if you run:
    use strict; use warnings; use Net::Lorcon2 qw(:subs); my $driver = "iwlwifi"; 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; }
    If all goes well, it should produce no output.

    Update: Another one that might be helpful to run is the following (from the examples that ship with Net-Lorcon2-2.03 source):
    use strict; use warnings; use Net::Lorcon2 qw(:subs); my @cards = lorcon_list_drivers(); use Data::Dumper; print Dumper(\@cards);

    Cheers,
    Rob
      Hi, unfortunately the program dies (I've already done some test and i am not surprised) the die message is:  [-] Unable to find DRV for [iwlwifi] update Hi again, the problem persists only in the 2 functions ( lorcon_find_driver and  lorcon_create , some functions ( like the lorcon_list_drivers ) works properly while other which need the $context ( aka the  Net::Lorcon2::lorcon_create) crashes ( I think the problem is linked to the  lorcon_create. regards Edoardo M.
        some functions ( like the lorcon_list_drivers ) works properly

        I don't know much about Net::Lorcon2, but I'm guessing that the string that you assign to $driver must be the same as one of the strings listed by lorcon_list_drivers().
        What happens if you assign those strings (as shown by Dumper(\@cards)) to $driver ?
        Could you provide us with the output of Dumper(\@cards) from that second program I posted.

        Cheers,
        Rob

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11119581]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (5)
As of 2024-04-26 07:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found