Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things

wpa and wpa2-psk

by zakkotron (Initiate)
on Jun 29, 2011 at 17:55 UTC ( #912004=perlquestion: print w/replies, xml ) Need Help??

zakkotron has asked for the wisdom of the Perl Monks concerning the following question:

Dear perlmonks,

I want to write a script that connects me with my wireless network.It uses mixed mode ie wpa and wpa2-psk together.

Any help is greatly appreciated

Replies are listed 'Best First'.
Re: wpa and wpa2-psk
by philipbailey (Deacon) on Jun 29, 2011 at 19:38 UTC

    You haven't given us much to go on. You might like to consider the following steps:

    • Figure out what operating system you are using.
    • Manually perform the steps to connect to your wireless network.
    • Perform some searches into code available. I found 2 modules on CPAN with a search on "WPA", for example.
    • Convert those steps into a script.
    • Come back should you have specific problems to solve.

    Sane operating systems tend to come with scripts suitable to connect to networks, needing only some editing of a configuration file. I suspect Windows would be harder to script, but maybe some work with Win32::OLE or indeed PowerShell might do the trick.

    Also look at How (Not) To Ask A Question.

      thanks for the answer but tell me what can i do in linux(ubuntu) not windows

Re: wpa and wpa2-psk
by zentara (Archbishop) on Jun 30, 2011 at 14:38 UTC

      wpa-supplicant wont work because it cant configure in mixed mode ie it can setup wpa or wpa2-psk individually.

      i had already checked this but thanks for the help

        After googling for ubuntu mixed mode wireless it seems there may be a bug, involving the kernel wireless drivers not being able to handle mixed mode. I don't think Perl can overcome incomplete drivers.

        I'm not really a human, but I play one on earth.
        Old Perl Programmer Haiku ................... flash japh

Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://912004]
Approved by ikegami
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (5)
As of 2022-05-26 09:00 GMT
Find Nodes?
    Voting Booth?
    Do you prefer to work remotely?

    Results (93 votes). Check out past polls.