CC3000 and WEP #3975
Replies: 1 comment
-
Posted at 2014-07-24 by DrAzzy If you have control over the network, you should under no circumstances run a wifi network using WEP - you might as well not "secure" it at all; WEP was blown wide open years ago, and is now trivial to break into. The CC3000 supports it, but the module does not: In /libs/network/cc3000/jswrap_cc3000.c
So it looks like if any key is supplied, it uses WPA2. I just changed that to WLAN_SEC_WEP and kicked off a build to test with This does NOT have the bigram changes, and I didn't bother changing compiler flags, so you can't save() with it - but that should be enough to test whether that's all that's needed to make it work with WEP. Posted at 2014-07-25 by @gfwilliams As @drazzy says - while the CC3000 supports WEP, Espruino just sets it up for WPA2. It wouldn't be too difficult to add the option, but so far you're the only person to ask for it :) Posted at 2014-07-25 by Ollie There's no need to add WEP on my account. But is it just WPA2? I can't use WPA2 since it's a very old router I'm setting up - I've got WPA and WEP. I suspect looking at the code that @drazzy posted it is just later standard. Posted at 2014-07-25 by DrAzzy It's WPA2 only, there's also a WLAN_SEC_WPA defined right next to the other options - but per the code above, the module always chooses either unsecured or WPA2. Posted at 2014-07-25 by Ollie Ok thanks for confirming @drazzy. @gfwilliams, one observation is that supporting other options can't hurt, with WPA2 as default. I know not everyone has a crappy old router they want to use, but not everyone can be on WPA2 either I imagine. I suspect I can upgrade my router firmware, but it's more 'friction' when perhaps it could just be an another argument in wlan.connect( Just a thought, and thanks again for clearing up the current position both. Posted at 2014-07-25 by @gfwilliams Yes, I've just added a bug for this. At the time of implementation it was really just one less thing to write/test so it got left out. It shouldn't be a big deal to add. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Posted at 2014-07-24 by Ollie
I think the board supports it, but does the cc3000 module allow this. Example is WPA. I had a look through the Github repo for clues but nothing jumped out at me.
Beta Was this translation helpful? Give feedback.
All reactions