Skip to content
This repository has been archived by the owner on Aug 11, 2020. It is now read-only.

Is it possible add a secured scheme without knowing the security type in advance ? #36

Closed
LiorKirsch opened this issue Apr 16, 2014 · 3 comments

Comments

@LiorKirsch
Copy link

Let say I know the network name and the password in advance but I am not sure exactly what type of security it uses (WEP or WPA).

Is it possible to add such a scheme without providing the security type ?
Than let the computer identify the security type when it scans and recognize the network.

Thanks
Lior

  • I noticed that by default it uses WEP.
    Another way to do this is to leave it as WEP and than if you find that the network type is WPA change the scheme.
@rockymeza
Copy link
Owner

Hey @LiorKirsch,

I'm having a little trouble understanding what it is that you are doing, but have you seen the configuration function in wifi/scheme.py? I think it might do what you are thinking, but I'm not sure.

Are you trying to save a scheme before getting a Cell object? I suppose we could make that possible, but it would mean changing how wifi saves things completely--which is something I'm not completely opposed to. I was wondering if we could get rid of the whole saving a scheme requirement altogether.

@LiorKirsch
Copy link
Author

:)
I forgot I made a change to my code.

In my case I have a bunch of network names and password in advanced and I wanted to add the schemes even if I am not around the cell.
So I created a dummy cell and sent it to a scheme

newCell = wifi.Cell.from_string( dummy_network_string)
scheme = wifi.Scheme.for_cell(network_interface, name, newCell, passkey=passkey_ascii)

This is exactly like you said I wanted to save a scheme without getting a Cell object.

I guess what I will do now is instead of the saving the scheme in advance is to store the (SSID,PASS) somewhere until I scan for the cell, only than I will add the scheme.

Many thanks,
Lior

@rockymeza
Copy link
Owner

This is a good use case that is not at all easy with the code as it is now.
I'm going to be very busy for the next couple of weeks, but I want to think
about how to support this well. I'm going to keep thinking about this for
a while, k?

-rocky

:)
I forgot I made a change to my code.

In my case I have a bunch of network names and password in advanced and I
wanted to add the schemes even if I am not around the cell.
So I created a dummy cell and sent it to a scheme

newCell = wifi.Cell.from_string( dummy_network_string)
scheme = wifi.Scheme.for_cell(network_interface, name, newCell,
passkey=passkey_ascii)

This is exactly like you said I wanted to save a scheme without getting a
Cell object.

I guess what I will do now is instead of the saving the scheme in advance
is to store the (SSID,PASS) somewhere until I scan for the cell, only than
I will add the scheme.

Many thanks,
Lior


Reply to this email directly or view it on
GitHubhttps://github.com//issues/36#issuecomment-40864198
.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants