wifi-control-node icon indicating copy to clipboard operation
wifi-control-node copied to clipboard

Only supports interface names that start with wlan on linux

Open bfree-github opened this issue 8 years ago • 4 comments

Here's a quick fix to support any wifi interface name on linux:

linux.js.txt

The wifi interface name on my linux device is "wlp1s0", so searching for "DEVICE:\s+wl" works, but the solution I provided is more robust, and retrieves more info.

I have other fixes/enhancements that I'd be happy to work on, if you'd like to give me write access to this repository, or at least to a branch that I can work on.

Thanks - Bob

bfree-github avatar Oct 19 '16 01:10 bfree-github

Note - I only updated autoFindInterface; I'll need write access before I spend time updating the rest of the module.

bfree-github avatar Oct 19 '16 01:10 bfree-github

Nice! Well, I welcome any pull request that doesn't break anything. I'm usually too busy to maintain my open source stuff, unfortunately, so I'm not opposed to opening the repo to other admins. How about you submit a PR and we'll take it from there? Please note that this is a CoffeeScript project so contributions will have to change the CS to be accepted, not the JS.

msolters avatar Oct 21 '16 04:10 msolters

Cool - will do. Kinda swamped at the moment; I'll submit a PR when I come up for air.

Thanks!

bfree-github avatar Nov 03 '16 02:11 bfree-github

I'm also coming across this issue on linux machines. My laptop's wifi device name is wlp3s0 so I'm getting this error message:

"WiFiControl: You cannot scan for nearby WiFi networks without a valid wireless interface."

josephrocca avatar Dec 22 '16 02:12 josephrocca